public class ExternalAnnotationTracker
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
registerClassFile(IPath annotationBase,
IPath relativeAnnotationPath,
ClassFile classFile)
Register a ClassFile, to which the annotation attachment 'annotationBase' applies.
|
void |
resourceChanged(IResourceChangeEvent event)
Listen to resource change events concerning external annotations, that potentially affect a cached ClassFile.
|
static void |
unregisterClassFile(IPath annotationBase,
IPath relativeAnnotationPath)
Unregister a class file that is being closed.
|
public static void registerClassFile(IPath annotationBase,
IPath relativeAnnotationPath,
ClassFile classFile)
annotationBase - the path of the annotation attachment (workspace absolute)relativeAnnotationPath - path corresponding to the qualified name of the main type of the class file.
The path is relative to 'annotationBase'.
When appending the file extension for annotation files it points to the annotation file
that would correspond to the given class file. The annotation file may or may not yet exist.classFile - the ClassFile to register.public static void unregisterClassFile(IPath annotationBase,
IPath relativeAnnotationPath)
annotationBase - path of the corresponding annotation attachment (workspace absolute)relativeAnnotationPath - path of the annotation file that would correspond to the given class file.public void resourceChanged(IResourceChangeEvent event)