|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jdt.internal.core.JavaModelManager
public class JavaModelManager
The JavaModelManager
manages instances of IJavaModel
.
IElementChangedListener
s register with the JavaModelManager
,
and receive ElementChangedEvent
s for all IJavaModel
s.
The single instance of JavaModelManager
is available from
the static method JavaModelManager.getJavaModelManager()
.
Nested Class Summary | |
---|---|
static class |
JavaModelManager.CompilationParticipants
|
static class |
JavaModelManager.EclipsePreferencesListener
Update the classpath variable cache |
static class |
JavaModelManager.PerProjectInfo
|
static class |
JavaModelManager.PerWorkingCopyInfo
|
Field Summary | |
---|---|
java.lang.ThreadLocal |
abortOnMissingSource
|
static java.lang.String |
ANNOTATION_PROCESSOR_MANAGER_EXTPOINT_ID
Name of the extension point for contributing the Java 6 annotation processor manager |
static int |
BATCH_INITIALIZATION_FINISHED
|
static int |
BATCH_INITIALIZATION_IN_PROGRESS
|
int |
batchContainerInitializations
|
BatchInitializationMonitor |
batchContainerInitializationsProgress
|
static java.lang.String |
COMPILATION_PARTICIPANT_EXTPOINT_ID
Name of the extension point for contributing a compilation participant |
JavaModelManager.CompilationParticipants |
compilationParticipants
|
static java.lang.String |
COMPLETION_PERF
|
static IClasspathContainer |
CONTAINER_INITIALIZATION_IN_PROGRESS
|
static java.lang.String |
CONTAINER_INITIALIZER_PERF
|
java.util.Hashtable |
containerInitializersCache
|
java.util.HashMap |
containers
Classpath containers pool |
static java.lang.String |
CP_CONTAINER_PREFERENCES_PREFIX
|
static java.lang.String |
CP_ENTRY_IGNORE
|
static org.eclipse.core.runtime.IPath |
CP_ENTRY_IGNORE_PATH
|
static boolean |
CP_RESOLVE_VERBOSE
|
static boolean |
CP_RESOLVE_VERBOSE_ADVANCED
|
static boolean |
CP_RESOLVE_VERBOSE_FAILURE
|
static java.lang.String |
CP_USERLIBRARY_PREFERENCES_PREFIX
|
static java.lang.String |
CP_VARIABLE_PREFERENCES_PREFIX
|
static java.lang.String |
CPCONTAINER_INITIALIZER_EXTPOINT_ID
Name of the extension point for contributing classpath container initializers |
static java.lang.String |
CPVARIABLE_INITIALIZER_EXTPOINT_ID
Name of the extension point for contributing classpath variable initializers |
static java.lang.String |
DELTA_LISTENER_PERF
|
DeltaProcessingState |
deltaState
Holds the state used for delta processing. |
java.util.HashMap |
deprecatedVariables
|
static java.lang.String |
FORMATTER_EXTPOINT_ID
Name of the extension point for contributing a source code formatter |
IndexManager |
indexManager
|
static int |
NEED_BATCH_INITIALIZATION
|
static int |
NO_BATCH_INITIALIZATION
|
static ICompilationUnit[] |
NO_WORKING_COPY
|
static boolean |
PERF_CONTAINER_INITIALIZER
|
static boolean |
PERF_VARIABLE_INITIALIZER
|
org.eclipse.core.runtime.preferences.IEclipsePreferences[] |
preferencesLookup
|
java.util.HashMap |
previousSessionContainers
|
java.util.HashMap |
previousSessionVariables
|
java.util.HashSet |
readOnlyVariables
|
static java.lang.String |
RECONCILE_PERF
|
java.util.Map |
rootPathToAttachments
|
static java.lang.String |
SELECTION_PERF
|
static java.lang.String |
TRUE
|
static org.eclipse.core.runtime.IPath |
VARIABLE_INITIALIZATION_IN_PROGRESS
Special value used for recognizing ongoing initialization and breaking initialization cycles |
static java.lang.String |
VARIABLE_INITIALIZER_PERF
|
java.util.HashMap |
variables
Classpath variables pool |
java.util.HashSet |
variablesWithInitializer
|
static boolean |
VERBOSE
|
JavaWorkspaceScope |
workspaceScope
|
static boolean |
ZIP_ACCESS_VERBOSE
|
Method Summary | |
---|---|
java.lang.String |
cacheToString(java.lang.String prefix)
|
void |
cacheZipFiles()
Starts caching ZipFiles. |
void |
closeZipFile(java.util.zip.ZipFile zipFile)
|
void |
configurePluginDebugOptions()
Configure the plugin with respect to option settings defined in ".options" file |
static boolean |
conflictsWithOutputLocation(org.eclipse.core.runtime.IPath folderPath,
JavaProject project)
Returns whether the given full path (for a package) conflicts with the output location of the given project. |
IClasspathContainer |
containerGet(IJavaProject project,
org.eclipse.core.runtime.IPath containerPath)
|
IClasspathContainer |
containerGetDefaultToPreviousSession(IJavaProject project,
org.eclipse.core.runtime.IPath containerPath)
|
void |
containerPut(IJavaProject project,
org.eclipse.core.runtime.IPath containerPath,
IClasspathContainer container)
|
boolean |
containerPutIfInitializingWithSameEntries(org.eclipse.core.runtime.IPath containerPath,
IJavaProject[] projects,
IClasspathContainer[] respectiveContainers)
|
void |
containerRemove(IJavaProject project)
|
void |
contentTypeChanged(org.eclipse.core.runtime.content.IContentTypeManager.ContentTypeChangeEvent event)
|
static IJavaElement |
create(IFile file,
IJavaProject project)
Returns the Java element corresponding to the given file, its project being the given project. |
static IJavaElement |
create(IFolder folder,
IJavaProject project)
Returns the package fragment or package fragment root corresponding to the given folder, its parent or great parent being the given project. |
static IJavaElement |
create(IResource resource,
IJavaProject project)
Returns the Java element corresponding to the given resource, or null if unable to associate the given resource
with a Java element. |
AbstractAnnotationProcessorManager |
createAnnotationProcessorManager()
|
static IClassFile |
createClassFileFrom(IFile file,
IJavaProject project)
Creates and returns a class file element for the given .class file,
its project being the given project. |
static ICompilationUnit |
createCompilationUnitFrom(IFile file,
IJavaProject project)
Creates and returns a compilation unit element for the given .java
file, its project being the given project. |
static IPackageFragmentRoot |
createJarPackageFragmentRootFrom(IFile file,
IJavaProject project)
Creates and returns a handle for the given JAR file, its project being the given project. |
static IJavaElement |
determineIfOnClasspath(IResource resource,
IJavaProject project)
Returns the package fragment root represented by the resource, or the package fragment the given resource is located in, or null
if the given resource is not on the classpath of the given project. |
int |
discardPerWorkingCopyInfo(CompilationUnit workingCopy)
|
void |
doneSaving(ISaveContext context)
Tells this participant that the workspace save operation is now complete and it is free to go about its normal business. |
static void |
doNotUse()
|
void |
flushZipFiles()
Flushes ZipFiles cache if there are no more clients. |
boolean |
forceBatchInitializations(boolean initAfterLoad)
|
IClasspathContainer |
getClasspathContainer(org.eclipse.core.runtime.IPath containerPath,
IJavaProject project)
|
java.util.Hashtable |
getDefaultOptions()
|
org.eclipse.core.runtime.preferences.IEclipsePreferences |
getDefaultPreferences()
Get default eclipse preference for JavaCore plugin. |
DeltaProcessor |
getDeltaProcessor()
|
static DeltaProcessingState |
getDeltaState()
|
IJavaElement |
getExistingElement(IJavaElement element)
Returns the existing element in the cache that is equal to the given element. |
static ExternalFoldersManager |
getExternalManager()
|
static IndexManager |
getIndexManager()
|
java.lang.Object |
getInfo(IJavaElement element)
Returns the info for the element. |
org.eclipse.core.runtime.preferences.IEclipsePreferences |
getInstancePreferences()
Get workspace eclipse preference for JavaCore plug-in. |
JavaModel |
getJavaModel()
Returns the handle to the active Java Model. |
static JavaModelManager |
getJavaModelManager()
Returns the singleton JavaModelManager |
java.lang.Object |
getLastBuiltState(IProject project,
org.eclipse.core.runtime.IProgressMonitor monitor)
Returns the last built state for the given project, or null if there is none. |
java.lang.String |
getOption(java.lang.String optionName)
|
java.util.Hashtable |
getOptions()
|
JavaModelManager.PerProjectInfo |
getPerProjectInfo(IProject project,
boolean create)
|
JavaModelManager.PerProjectInfo |
getPerProjectInfoCheckExistence(IProject project)
|
JavaModelManager.PerWorkingCopyInfo |
getPerWorkingCopyInfo(CompilationUnit workingCopy,
boolean create,
boolean recordUsage,
IProblemRequestor problemRequestor)
|
IClasspathContainer |
getPreviousSessionContainer(org.eclipse.core.runtime.IPath containerPath,
IJavaProject project)
Returns a persisted container from previous session if any. |
org.eclipse.core.runtime.IPath |
getPreviousSessionVariable(java.lang.String variableName)
Returns a persisted container from previous session if any |
static java.lang.String[] |
getRegisteredContainerIDs()
Returns the name of the container IDs for which an CP container initializer is registered through an extension point |
static java.lang.String[] |
getRegisteredVariableNames()
Returns the name of the variables for which an CP variable initializer is registered through an extension point |
java.util.HashMap |
getTemporaryCache()
Returns the temporary cache for newly opened elements for the current thread. |
static UserLibraryManager |
getUserLibraryManager()
|
ICompilationUnit[] |
getWorkingCopies(WorkingCopyOwner owner,
boolean addPrimary)
|
JavaWorkspaceScope |
getWorkspaceScope()
|
java.util.zip.ZipFile |
getZipFile(org.eclipse.core.runtime.IPath path)
Returns the open ZipFile at the given path. |
boolean |
hasTemporaryCache()
|
void |
initializePreferences()
Initialize preferences lookups for JavaCore plug-in. |
char[] |
intern(char[] array)
|
java.lang.String |
intern(java.lang.String s)
|
boolean |
isClasspathBeingResolved(IJavaProject project)
|
void |
loadVariablesAndContainers()
|
void |
prepareToSave(ISaveContext context)
Tells this participant that the workspace is about to be saved. |
static void |
recreatePersistedContainer(java.lang.String propertyName,
java.lang.String containerString,
boolean addToContainerValues)
|
void |
rememberScope(AbstractSearchScope scope)
Remembers the given scope in a weak set (so no need to remove it: it will be removed by the garbage collector) |
java.lang.Object |
removeInfoAndChildren(JavaElement element)
|
void |
removePerProjectInfo(JavaProject javaProject)
|
void |
resetProjectOptions(JavaProject javaProject)
|
void |
resetProjectPreferences(JavaProject javaProject)
|
void |
resetTemporaryCache()
|
void |
rollback(ISaveContext context)
Tells this participant to rollback its important state. |
void |
saving(ISaveContext context)
Tells this participant to save its important state because the workspace is being saved, as described in the supplied save context. |
void |
secondaryTypeAdding(java.lang.String path,
char[] typeName,
char[] packageName)
Add a secondary type in temporary indexing cache for a project got from given path. |
java.util.Map |
secondaryTypes(IJavaProject project,
boolean waitForIndexes,
org.eclipse.core.runtime.IProgressMonitor monitor)
Get all secondary types for a project and store result in per project info cache. |
void |
secondaryTypesRemoving(IFile file,
boolean cleanIndexCache)
Remove from secondary types cache all types belonging to a given file. |
void |
setClasspathBeingResolved(IJavaProject project,
boolean classpathIsResolved)
|
void |
setLastBuiltState(IProject project,
java.lang.Object state)
Sets the last built state for the given project, or null to reset it. |
void |
setOptions(java.util.Hashtable newOptions)
|
void |
shutdown()
|
void |
startup()
|
org.eclipse.core.runtime.IPath |
variableGet(java.lang.String variableName)
|
java.lang.String[] |
variableNames()
|
void |
variablePreferencesPut(java.lang.String variableName,
org.eclipse.core.runtime.IPath variablePath)
|
void |
variablePut(java.lang.String variableName,
org.eclipse.core.runtime.IPath variablePath)
|
boolean |
variablePutIfInitializingWithSameValue(java.lang.String[] variableNames,
org.eclipse.core.runtime.IPath[] variablePaths)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.util.HashMap variables
public java.util.HashSet variablesWithInitializer
public java.util.HashMap deprecatedVariables
public java.util.HashSet readOnlyVariables
public java.util.HashMap previousSessionVariables
public java.util.HashMap containers
public java.util.HashMap previousSessionContainers
public static final int NO_BATCH_INITIALIZATION
public static final int NEED_BATCH_INITIALIZATION
public static final int BATCH_INITIALIZATION_IN_PROGRESS
public static final int BATCH_INITIALIZATION_FINISHED
public int batchContainerInitializations
public BatchInitializationMonitor batchContainerInitializationsProgress
public java.util.Hashtable containerInitializersCache
public JavaWorkspaceScope workspaceScope
public java.util.Map rootPathToAttachments
public static final java.lang.String CP_VARIABLE_PREFERENCES_PREFIX
public static final java.lang.String CP_CONTAINER_PREFERENCES_PREFIX
public static final java.lang.String CP_USERLIBRARY_PREFERENCES_PREFIX
public static final java.lang.String CP_ENTRY_IGNORE
public static final org.eclipse.core.runtime.IPath CP_ENTRY_IGNORE_PATH
public static final java.lang.String TRUE
public static final java.lang.String CPVARIABLE_INITIALIZER_EXTPOINT_ID
public static final java.lang.String CPCONTAINER_INITIALIZER_EXTPOINT_ID
public static final java.lang.String FORMATTER_EXTPOINT_ID
public static final java.lang.String COMPILATION_PARTICIPANT_EXTPOINT_ID
public static final java.lang.String ANNOTATION_PROCESSOR_MANAGER_EXTPOINT_ID
public static final org.eclipse.core.runtime.IPath VARIABLE_INITIALIZATION_IN_PROGRESS
public static final IClasspathContainer CONTAINER_INITIALIZATION_IN_PROGRESS
public static final java.lang.String COMPLETION_PERF
public static final java.lang.String SELECTION_PERF
public static final java.lang.String DELTA_LISTENER_PERF
public static final java.lang.String VARIABLE_INITIALIZER_PERF
public static final java.lang.String CONTAINER_INITIALIZER_PERF
public static final java.lang.String RECONCILE_PERF
public static boolean PERF_VARIABLE_INITIALIZER
public static boolean PERF_CONTAINER_INITIALIZER
public static final ICompilationUnit[] NO_WORKING_COPY
public final org.eclipse.core.runtime.preferences.IEclipsePreferences[] preferencesLookup
public final JavaModelManager.CompilationParticipants compilationParticipants
public java.lang.ThreadLocal abortOnMissingSource
public DeltaProcessingState deltaState
public IndexManager indexManager
public static boolean VERBOSE
public static boolean CP_RESOLVE_VERBOSE
public static boolean CP_RESOLVE_VERBOSE_ADVANCED
public static boolean CP_RESOLVE_VERBOSE_FAILURE
public static boolean ZIP_ACCESS_VERBOSE
Method Detail |
---|
public static boolean conflictsWithOutputLocation(org.eclipse.core.runtime.IPath folderPath, JavaProject project)
public IClasspathContainer containerGet(IJavaProject project, org.eclipse.core.runtime.IPath containerPath)
public IClasspathContainer containerGetDefaultToPreviousSession(IJavaProject project, org.eclipse.core.runtime.IPath containerPath)
public void containerPut(IJavaProject project, org.eclipse.core.runtime.IPath containerPath, IClasspathContainer container)
public void containerRemove(IJavaProject project)
public boolean containerPutIfInitializingWithSameEntries(org.eclipse.core.runtime.IPath containerPath, IJavaProject[] projects, IClasspathContainer[] respectiveContainers)
public static IJavaElement create(IResource resource, IJavaProject project)
null
if unable to associate the given resource
with a Java element.
The resource must be one of:
IJavaProject
.java
file - the element returned is the corresponding ICompilationUnit
.class
file - the element returned is the corresponding IClassFile
.jar
, a .zip
file, etc.) - the element returned is the corresponding IPackageFragmentRoot
IPackageFragmentRoot
or IPackageFragment
IJavaModel
Creating a Java element has the side effect of creating and opening all of the element's parents if they are not yet open.
public static IJavaElement create(IFile file, IJavaProject project)
null
if unable to associate the given file
with a Java element.
The file must be one of:
.java
file - the element returned is the corresponding ICompilationUnit
.class
file - the element returned is the corresponding IClassFile
.jar
, a .zip
file, etc.) - the element returned is the corresponding IPackageFragmentRoot
Creating a Java element has the side effect of creating and opening all of the element's parents if they are not yet open.
public static IJavaElement create(IFolder folder, IJavaProject project)
null
if unable to associate the given folder with a Java element.
Note that a package fragment root is returned rather than a default package.
Creating a Java element has the side effect of creating and opening all of the element's parents if they are not yet open.
public static IClassFile createClassFileFrom(IFile file, IJavaProject project)
.class
file,
its project being the given project. Returns null
if unable
to recognize the class file.
public static ICompilationUnit createCompilationUnitFrom(IFile file, IJavaProject project)
.java
file, its project being the given project. Returns null
if unable
to recognize the compilation unit.
public static IPackageFragmentRoot createJarPackageFragmentRootFrom(IFile file, IJavaProject project)
null
if unable to create a JAR package fragment root.
(for example, if the JAR file represents a non-Java resource)
public static IJavaElement determineIfOnClasspath(IResource resource, IJavaProject project)
null
if the given resource is not on the classpath of the given project.
public void cacheZipFiles()
public void closeZipFile(java.util.zip.ZipFile zipFile)
public void configurePluginDebugOptions()
public AbstractAnnotationProcessorManager createAnnotationProcessorManager()
public int discardPerWorkingCopyInfo(CompilationUnit workingCopy) throws JavaModelException
JavaModelException
public void doneSaving(ISaveContext context)
ISaveParticipant
Note: This method is called by the platform; it is not intended to be called directly by clients.
doneSaving
in interface ISaveParticipant
context
- the save context objectISaveParticipant
public void flushZipFiles()
public boolean forceBatchInitializations(boolean initAfterLoad)
public IClasspathContainer getClasspathContainer(org.eclipse.core.runtime.IPath containerPath, IJavaProject project) throws JavaModelException
JavaModelException
public DeltaProcessor getDeltaProcessor()
public static DeltaProcessingState getDeltaState()
public static ExternalFoldersManager getExternalManager()
public static IndexManager getIndexManager()
public java.lang.Object getInfo(IJavaElement element)
public IJavaElement getExistingElement(IJavaElement element)
public org.eclipse.core.runtime.preferences.IEclipsePreferences getInstancePreferences()
public java.util.Hashtable getDefaultOptions()
public org.eclipse.core.runtime.preferences.IEclipsePreferences getDefaultPreferences()
public final JavaModel getJavaModel()
public static final JavaModelManager getJavaModelManager()
public java.lang.Object getLastBuiltState(IProject project, org.eclipse.core.runtime.IProgressMonitor monitor)
public java.lang.String getOption(java.lang.String optionName)
public java.util.Hashtable getOptions()
public JavaModelManager.PerProjectInfo getPerProjectInfo(IProject project, boolean create)
public JavaModelManager.PerProjectInfo getPerProjectInfoCheckExistence(IProject project) throws JavaModelException
JavaModelException
public JavaModelManager.PerWorkingCopyInfo getPerWorkingCopyInfo(CompilationUnit workingCopy, boolean create, boolean recordUsage, IProblemRequestor problemRequestor)
public IClasspathContainer getPreviousSessionContainer(org.eclipse.core.runtime.IPath containerPath, IJavaProject project)
public org.eclipse.core.runtime.IPath getPreviousSessionVariable(java.lang.String variableName)
public java.util.HashMap getTemporaryCache()
public static java.lang.String[] getRegisteredVariableNames()
public static java.lang.String[] getRegisteredContainerIDs()
public static UserLibraryManager getUserLibraryManager()
public ICompilationUnit[] getWorkingCopies(WorkingCopyOwner owner, boolean addPrimary)
public JavaWorkspaceScope getWorkspaceScope()
public java.util.zip.ZipFile getZipFile(org.eclipse.core.runtime.IPath path) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
- If unable to create/open the ZipFilepublic boolean hasTemporaryCache()
public void initializePreferences()
public char[] intern(char[] array)
public java.lang.String intern(java.lang.String s)
public boolean isClasspathBeingResolved(IJavaProject project)
public void setClasspathBeingResolved(IJavaProject project, boolean classpathIsResolved)
public void loadVariablesAndContainers() throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public void prepareToSave(ISaveContext context)
ISaveParticipant
saving
will be next, followed by either doneSaving
or rollback
depending on whether the workspace
save was successful.
Note: This method is called by the platform; it is not intended to be called directly by clients.
prepareToSave
in interface ISaveParticipant
context
- the save context objectISaveParticipant
public static void recreatePersistedContainer(java.lang.String propertyName, java.lang.String containerString, boolean addToContainerValues)
public void rememberScope(AbstractSearchScope scope)
public java.lang.Object removeInfoAndChildren(JavaElement element) throws JavaModelException
JavaModelException
public void removePerProjectInfo(JavaProject javaProject)
public void resetProjectOptions(JavaProject javaProject)
public void resetProjectPreferences(JavaProject javaProject)
public static final void doNotUse()
public void resetTemporaryCache()
public void rollback(ISaveContext context)
ISaveParticipant
Note: This method is called by the platform; it is not intended to be called directly by clients.
rollback
in interface ISaveParticipant
context
- the save context objectISaveParticipant
public void saving(ISaveContext context) throws org.eclipse.core.runtime.CoreException
ISaveParticipant
Note: This method is called by the platform; it is not intended to be called directly by clients.
The basic contract for this method is the same for full saves, snapshots and project saves: the participant must absolutely guarantee that any important user data it has gathered will not be irrecoverably lost in the event of a crash. The only difference is in the space-time tradeoffs that the participant should make.
save
(if not saved immediately).
The Java IDE would likely save computed image builder state on full saves,
because this would allow the Java IDE to be restarted later and not
have to recompile the world at that time. On the other hand, the Java
IDE would not save the image builder state on a snapshot because
that information is non-essential; in the unlikely event of a crash,
the image should be rebuilt either from scratch or from the last saved
state.
The following snippet shows how a plug-in participant would write its important state to a file whose name is based on the save number for this save operation.
Plugin plugin = ...; // known int saveNumber = context.getSaveNumber(); String saveFileName = "save-" + Integer.toString(saveNumber); File f = plugin.getStateLocation().append(saveFileName).toFile(); plugin.writeImportantState(f); context.map(new Path("save"), new Path(saveFileName)); context.needSaveNumber(); context.needDelta(); // optionalWhen the plug-in is reactivated in a subsequent workspace session, it needs to re-register to participate in workspace saves. When it does so, it is handed back key information about what state it had last saved. If it's interested, it can also ask for a resource delta describing all resource changes that have happened since then, if this information is still available. The following snippet shows what a participant plug-in would need to do if and when it is reactivated:
IWorkspace ws = ...; // known Plugin plugin = ...; // known ISaveParticipant saver = ...; // known ISavedState ss = ws.addSaveParticipant(plugin, saver); if (ss == null) { // activate for very first time plugin.buildState(); } else { String saveFileName = ss.lookup(new Path("save")); File f = plugin.getStateLocation().append(saveFileName).toFile(); plugin.readImportantState(f); IResourceChangeListener listener = new IResourceChangeListener() { public void resourceChanged(IResourceChangeEvent event) { IResourceDelta delta = event.getDelta(); if (delta != null) { // fast reactivation using delta plugin.updateState(delta); } else { // slower reactivation without benefit of delta plugin.rebuildState(); } }; ss.processResourceChangeEvents(listener); }
saving
in interface ISaveParticipant
context
- the save context object
org.eclipse.core.runtime.CoreException
- if this method failsISaveParticipant
public void secondaryTypeAdding(java.lang.String path, char[] typeName, char[] packageName)
INDEXED_SECONDARY_TYPES
and value a map with same structure than
secondary types cache itself.
secondaryTypes(IJavaProject, boolean, IProgressMonitor)
public java.util.Map secondaryTypes(IJavaProject project, boolean waitForIndexes, org.eclipse.core.runtime.IProgressMonitor monitor) throws JavaModelException
INDEXED_SECONDARY_TYPES
and value is a map containing all secondary types created during indexing.
When this key is in cache and indexing is finished, returned map is merged
with the value of this special key. If indexing is not finished and caller does
not wait for the end of indexing, returned map is the current secondary
types cache content which may be invalid...
project
- Project we want get secondary types from
JavaModelException
public void secondaryTypesRemoving(IFile file, boolean cleanIndexCache)
file
- File to removepublic void setLastBuiltState(IProject project, java.lang.Object state)
public void setOptions(java.util.Hashtable newOptions)
public void startup() throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public void shutdown()
public org.eclipse.core.runtime.IPath variableGet(java.lang.String variableName)
public java.lang.String[] variableNames()
public void variablePut(java.lang.String variableName, org.eclipse.core.runtime.IPath variablePath)
public void variablePreferencesPut(java.lang.String variableName, org.eclipse.core.runtime.IPath variablePath)
public boolean variablePutIfInitializingWithSameValue(java.lang.String[] variableNames, org.eclipse.core.runtime.IPath[] variablePaths)
public void contentTypeChanged(org.eclipse.core.runtime.content.IContentTypeManager.ContentTypeChangeEvent event)
contentTypeChanged
in interface org.eclipse.core.runtime.content.IContentTypeManager.IContentTypeChangeListener
public java.lang.String cacheToString(java.lang.String prefix)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |