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

All Superinterfaces:
JavaResourceNode, JavaResourceNode.Root, JpaResourceModel, Model

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.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.core.resource.java.JavaResourceNode
JavaResourceNode.Root
 
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 update()
          Something in Java has changed (typically either the compilation unit's source code or the Java classpath); update the JPA compilation unit's state to be in synch with the source code etc.
 
Methods inherited from interface org.eclipse.jpt.core.resource.java.JavaResourceNode.Root
getAnnotationProvider, persistentTypes, resourceModelChanged
 
Methods inherited from interface org.eclipse.jpt.core.resource.java.JavaResourceNode
getFile, getJavaResourceCompilationUnit, getRoot, getTextRange, initialize, update
 
Methods inherited from interface org.eclipse.jpt.utility.model.Model
addCollectionChangeListener, addCollectionChangeListener, addListChangeListener, addListChangeListener, addPropertyChangeListener, addPropertyChangeListener, addStateChangeListener, addTreeChangeListener, addTreeChangeListener, removeCollectionChangeListener, removeCollectionChangeListener, removeListChangeListener, removeListChangeListener, removePropertyChangeListener, removePropertyChangeListener, removeStateChangeListener, removeTreeChangeListener, removeTreeChangeListener
 
Methods inherited from interface org.eclipse.jpt.core.JpaResourceModel
addResourceModelListener, 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.


update

void update()
Something in Java has changed (typically either the compilation unit's source code or the Java classpath); update the JPA compilation unit's state to be in synch with the source code etc.


buildASTRoot

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