mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-18 21:55:45 +02:00
Call the startup and shutdown methods of the managers
This commit is contained in:
parent
e77cef039e
commit
6b356aa170
1 changed files with 19 additions and 5 deletions
|
@ -52,6 +52,8 @@ public class CCorePlugin extends Plugin {
|
||||||
private static ResourceBundle fgResourceBundle;
|
private static ResourceBundle fgResourceBundle;
|
||||||
|
|
||||||
private CDescriptorManager fDescriptorManager;
|
private CDescriptorManager fDescriptorManager;
|
||||||
|
private CoreModel fCoreModel;
|
||||||
|
private IndexModel fIndexModel;
|
||||||
|
|
||||||
// -------- static methods --------
|
// -------- static methods --------
|
||||||
|
|
||||||
|
@ -113,8 +115,16 @@ public class CCorePlugin extends Plugin {
|
||||||
*/
|
*/
|
||||||
public void shutdown() throws CoreException {
|
public void shutdown() throws CoreException {
|
||||||
super.shutdown();
|
super.shutdown();
|
||||||
|
if (fDescriptorManager != null) {
|
||||||
fDescriptorManager.shutdown();
|
fDescriptorManager.shutdown();
|
||||||
}
|
}
|
||||||
|
if (fIndexModel != null) {
|
||||||
|
fIndexModel.shutdown();
|
||||||
|
}
|
||||||
|
if (fCoreModel != null) {
|
||||||
|
fCoreModel.shutdown();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see Plugin#startup
|
* @see Plugin#startup
|
||||||
|
@ -123,9 +133,13 @@ public class CCorePlugin extends Plugin {
|
||||||
super.startup();
|
super.startup();
|
||||||
|
|
||||||
// Fired up the model.
|
// Fired up the model.
|
||||||
getCoreModel();
|
fCoreModel = CoreModel.getDefault();
|
||||||
|
fCoreModel.startup();
|
||||||
|
|
||||||
// Fired up the indexer. It should delay itself for 10 seconds
|
// Fired up the indexer. It should delay itself for 10 seconds
|
||||||
getIndexModel();
|
fIndexModel = IndexModel.getDefault();
|
||||||
|
fIndexModel.startup();
|
||||||
|
|
||||||
fDescriptorManager = new CDescriptorManager();
|
fDescriptorManager = new CDescriptorManager();
|
||||||
fDescriptorManager.startup();
|
fDescriptorManager.startup();
|
||||||
|
|
||||||
|
@ -206,11 +220,11 @@ public class CCorePlugin extends Plugin {
|
||||||
}
|
}
|
||||||
|
|
||||||
public CoreModel getCoreModel() {
|
public CoreModel getCoreModel() {
|
||||||
return CoreModel.getDefault();
|
return fCoreModel;
|
||||||
}
|
}
|
||||||
|
|
||||||
public IndexModel getIndexModel() {
|
public IndexModel getIndexModel() {
|
||||||
return IndexModel.getDefault();
|
return fIndexModel;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ICDescriptor getCProjectDescription(IProject project) throws CoreException {
|
public ICDescriptor getCProjectDescription(IProject project) throws CoreException {
|
||||||
|
|
Loading…
Add table
Reference in a new issue