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

All Superinterfaces:
JavaResourceNode, Model

public interface JpaCompilationUnit
extends JavaResourceNode

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.


Method Summary
 AnnotationEditFormatter getAnnotationEditFormatter()
           
 JpaAnnotationProvider getAnnotationProvider()
           
 org.eclipse.jdt.core.ICompilationUnit getCompilationUnit()
           
 CommandExecutorProvider getModifySharedDocumentCommandExecutorProvider()
           
 void javaElementChanged(org.eclipse.jdt.core.ElementChangedEvent event)
          JDT has fired an event indicating a Java element has changed.
 java.util.Iterator<JavaResourcePersistentType> persistableTypes()
           
 void resolveTypes()
          Resolve type information that could be dependent on other files being added/removed.
 void resourceModelChanged()
          Called (via a hook in change notification) whenever anything in the JPA compilation unit changes.
 
Methods inherited from interface org.eclipse.jpt.core.resource.java.JavaResourceNode
getFile, getJpaCompilationUnit, 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
 

Method Detail

getCompilationUnit

org.eclipse.jdt.core.ICompilationUnit getCompilationUnit()

persistableTypes

java.util.Iterator<JavaResourcePersistentType> persistableTypes()

getAnnotationProvider

JpaAnnotationProvider getAnnotationProvider()

getModifySharedDocumentCommandExecutorProvider

CommandExecutorProvider getModifySharedDocumentCommandExecutorProvider()

getAnnotationEditFormatter

AnnotationEditFormatter getAnnotationEditFormatter()

resourceModelChanged

void resourceModelChanged()
Called (via a hook in change notification) whenever anything in the JPA compilation unit changes. Forwarded to the JPA file and on to various listeners (namely the JPA project).


resolveTypes

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


javaElementChanged

void javaElementChanged(org.eclipse.jdt.core.ElementChangedEvent event)
JDT has fired an event indicating a Java element has changed. If it is related to the compilation unit, update it with the changed Java source code.