org.eclipse.jpt.jpa.core.resource.java
Interface JavaResourceCompilationUnit

All Superinterfaces:
JavaResourceNode, JavaResourceNode.Root, JptResourceModel, Model
All Known Subinterfaces:
JavaResourcePackageInfoCompilationUnit

public interface JavaResourceCompilationUnit
extends JavaResourceNode.Root

Dali resource for JDT compilation unit. Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.

Since:
2.2
Version:
2.3

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.core.resource.java.JavaResourceNode
JavaResourceNode.Root
 
Field Summary
 
Fields inherited from interface org.eclipse.jpt.jpa.core.resource.java.JavaResourceNode.Root
PERSISTENT_TYPES_COLLECTION
 
Method Summary
 org.eclipse.jdt.core.dom.CompilationUnit buildASTRoot()
          Build an AST for the compilation unit with its bindings resolved.
 AnnotationEditFormatter getAnnotationEditFormatter()
          Return the JPA project's annotation formatter.
 org.eclipse.jdt.core.ICompilationUnit getCompilationUnit()
          Return the corresponding JDT compilation unit.
 CommandExecutor getModifySharedDocumentCommandExecutor()
          This allows the resource model to modify the Java source code on the UI thread when it is executing on another thread.
 void resolveTypes()
          Resolve type information that could be dependent on other files being added/removed.
 void synchronizeWithJavaSource()
          Something in Java has changed (typically either the compilation unit's source code or the Java classpath); synchronize the compilation unit's state with the Java source code etc.
 
Methods inherited from interface org.eclipse.jpt.jpa.core.resource.java.JavaResourceNode.Root
getAnnotationProvider, persistentTypes, resourceModelChanged
 
Methods inherited from interface org.eclipse.jpt.jpa.core.resource.java.JavaResourceNode
getFile, getJavaResourceCompilationUnit, getParent, getRoot, getTextRange, initialize, synchronizeWith
 
Methods inherited from interface org.eclipse.jpt.common.utility.model.Model
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, addTreeChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener, removeTreeChangeListener
 
Methods inherited from interface org.eclipse.jpt.common.core.JptResourceModel
addResourceModelListener, getResourceType, removeResourceModelListener
 

Method Detail

getCompilationUnit

org.eclipse.jdt.core.ICompilationUnit getCompilationUnit()
Return the corresponding JDT compilation unit.


getAnnotationEditFormatter

AnnotationEditFormatter getAnnotationEditFormatter()
Return the JPA project's annotation formatter. This is used to make any manipulated annotations reasonably readable after being written to the Java source file.


getModifySharedDocumentCommandExecutor

CommandExecutor getModifySharedDocumentCommandExecutor()
This allows the resource model to modify the Java source code on the UI thread when it is executing on another thread.


resolveTypes

void resolveTypes()
Resolve type information that could be dependent on other files being added/removed.


synchronizeWithJavaSource

void synchronizeWithJavaSource()
Something in Java has changed (typically either the compilation unit's source code or the Java classpath); synchronize the compilation unit's state with the Java source code etc.


buildASTRoot

org.eclipse.jdt.core.dom.CompilationUnit buildASTRoot()
Build an AST for the compilation unit with its bindings resolved.