super.start(context);
// JavaCore.start(this, context);
- final JavaModelManager manager = JavaModelManager.getJavaModelManager();
+ final JavaModelManager modelManager = JavaModelManager.getJavaModelManager();
try {
- manager.configurePluginDebugOptions();
+ modelManager.configurePluginDebugOptions();
// request state folder creation (workaround 19885)
// JavaCore.getPlugin().getStateLocation();
// manager.loadVariablesAndContainers();
final IWorkspace workspace = ResourcesPlugin.getWorkspace();
- workspace.addResourceChangeListener(manager.deltaState, IResourceChangeEvent.PRE_BUILD | IResourceChangeEvent.POST_BUILD
+ workspace.addResourceChangeListener(modelManager.deltaState, IResourceChangeEvent.PRE_BUILD | IResourceChangeEvent.POST_BUILD
| IResourceChangeEvent.POST_CHANGE | IResourceChangeEvent.PRE_DELETE | IResourceChangeEvent.PRE_CLOSE);
// startIndexing();
- ISavedState savedState = workspace.addSaveParticipant(PHPeclipsePlugin.this, manager);
+ ISavedState savedState = workspace.addSaveParticipant(PHPeclipsePlugin.this, modelManager);
// process deltas since last activated in indexer thread so that indexes are up-to-date.
// see https://bugs.eclipse.org/bugs/show_bug.cgi?id=38658
// see https://bugs.eclipse.org/bugs/show_bug.cgi?id=59937
workspace.run(new IWorkspaceRunnable() {
public void run(IProgressMonitor progress) throws CoreException {
- ISavedState savedState = workspace.addSaveParticipant(PHPeclipsePlugin.this, manager);
+ ISavedState savedState = workspace.addSaveParticipant(PHPeclipsePlugin.this, modelManager);
if (savedState != null) {
// the event type coming from the saved state is always POST_AUTO_BUILD
// force it to be POST_CHANGE so that the delta processor can handle it
- manager.deltaState.getDeltaProcessor().overridenEventType = IResourceChangeEvent.POST_CHANGE;
- savedState.processResourceChangeEvents(manager.deltaState);
+ modelManager.deltaState.getDeltaProcessor().overridenEventType = IResourceChangeEvent.POST_CHANGE;
+ savedState.processResourceChangeEvents(modelManager.deltaState);
}
}
}, monitor);
processSavedState.setPriority(Job.SHORT); // process asap
processSavedState.schedule();
} catch (RuntimeException e) {
- manager.shutdown();
+ modelManager.shutdown();
throw e;
}