mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 18:26:01 +02:00
Cosmetics.
This commit is contained in:
parent
f531f2f4d8
commit
e9b3224eaa
1 changed files with 5 additions and 11 deletions
|
@ -567,9 +567,6 @@ public class CUIPlugin extends AbstractUIPlugin {
|
||||||
GlobalBuildConsoleManager.startGlobalConsole();
|
GlobalBuildConsoleManager.startGlobalConsole();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void start(BundleContext context) throws Exception {
|
public void start(BundleContext context) throws Exception {
|
||||||
super.start(context);
|
super.start(context);
|
||||||
|
@ -606,10 +603,10 @@ public class CUIPlugin extends AbstractUIPlugin {
|
||||||
|
|
||||||
// A workaround for black console bug 320723.
|
// A workaround for black console bug 320723.
|
||||||
BuildConsolePreferencePage.initDefaults(getPreferenceStore());
|
BuildConsolePreferencePage.initDefaults(getPreferenceStore());
|
||||||
//initialize ContentAssistMatcherPreference
|
// Initialize ContentAssistMatcherPreference.
|
||||||
ContentAssistPreference.getInstance();
|
ContentAssistPreference.getInstance();
|
||||||
|
|
||||||
// start make-ui plugin, such that it can check for project conversions.
|
// Start make.ui plug-in, such that it can check for project conversions.
|
||||||
Job job= new Job(Messages.CUIPlugin_jobStartMakeUI) {
|
Job job= new Job(Messages.CUIPlugin_jobStartMakeUI) {
|
||||||
@Override
|
@Override
|
||||||
protected IStatus run(IProgressMonitor monitor) {
|
protected IStatus run(IProgressMonitor monitor) {
|
||||||
|
@ -618,7 +615,7 @@ public class CUIPlugin extends AbstractUIPlugin {
|
||||||
if (bundle != null) {
|
if (bundle != null) {
|
||||||
switch (bundle.getState()) {
|
switch (bundle.getState()) {
|
||||||
case Bundle.RESOLVED:
|
case Bundle.RESOLVED:
|
||||||
case Bundle.STARTING: // because make.ui uses lazy activation, we need to start it.
|
case Bundle.STARTING: // Because make.ui uses lazy activation, we need to start it.
|
||||||
bundle.start(Bundle.START_TRANSIENT);
|
bundle.start(Bundle.START_TRANSIENT);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -633,9 +630,6 @@ public class CUIPlugin extends AbstractUIPlugin {
|
||||||
job.schedule();
|
job.schedule();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void stop(BundleContext context) throws Exception {
|
public void stop(BundleContext context) throws Exception {
|
||||||
CDTContextActivator.getInstance().uninstall();
|
CDTContextActivator.getInstance().uninstall();
|
||||||
|
@ -823,7 +817,7 @@ public class CUIPlugin extends AbstractUIPlugin {
|
||||||
return result.toArray(new IEditorPart[result.size()]);
|
return result.toArray(new IEditorPart[result.size()]);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Returns an array of all instanciated editors.
|
* Returns an array of all instantiated editors.
|
||||||
*/
|
*/
|
||||||
public static IEditorPart[] getInstanciatedEditors() {
|
public static IEditorPart[] getInstanciatedEditors() {
|
||||||
List<IEditorPart> result= new ArrayList<IEditorPart>(0);
|
List<IEditorPart> result= new ArrayList<IEditorPart>(0);
|
||||||
|
|
Loading…
Add table
Reference in a new issue