|
Lines 17-23
Link Here
|
| 17 |
import org.eclipse.core.filesystem.EFS; |
17 |
import org.eclipse.core.filesystem.EFS; |
| 18 |
import org.eclipse.core.filesystem.IFileStore; |
18 |
import org.eclipse.core.filesystem.IFileStore; |
| 19 |
import org.eclipse.core.resources.*; |
19 |
import org.eclipse.core.resources.*; |
| 20 |
import org.eclipse.core.runtime.CoreException; |
20 |
import org.eclipse.core.runtime.*; |
| 21 |
import org.eclipse.core.runtime.preferences.IEclipsePreferences; |
21 |
import org.eclipse.core.runtime.preferences.IEclipsePreferences; |
| 22 |
import org.eclipse.jface.action.IToolBarManager; |
22 |
import org.eclipse.jface.action.IToolBarManager; |
| 23 |
import org.eclipse.jface.preference.IPreferenceStore; |
23 |
import org.eclipse.jface.preference.IPreferenceStore; |
|
Lines 42-47
Link Here
|
| 42 |
import org.eclipse.ui.*; |
42 |
import org.eclipse.ui.*; |
| 43 |
import org.eclipse.ui.ide.FileStoreEditorInput; |
43 |
import org.eclipse.ui.ide.FileStoreEditorInput; |
| 44 |
import org.eclipse.ui.part.FileEditorInput; |
44 |
import org.eclipse.ui.part.FileEditorInput; |
|
|
45 |
import org.eclipse.ui.progress.UIJob; |
| 45 |
import org.eclipse.ui.views.properties.IPropertySheetPage; |
46 |
import org.eclipse.ui.views.properties.IPropertySheetPage; |
| 46 |
import org.osgi.service.prefs.BackingStoreException; |
47 |
import org.osgi.service.prefs.BackingStoreException; |
| 47 |
|
48 |
|
|
Lines 452-460
Link Here
|
| 452 |
} catch (PartInitException e) { |
453 |
} catch (PartInitException e) { |
| 453 |
PDEPlugin.logException(e); |
454 |
PDEPlugin.logException(e); |
| 454 |
} |
455 |
} |
| 455 |
addSourcePage(BundleInputContext.CONTEXT_ID); |
456 |
|
| 456 |
addSourcePage(PluginInputContext.CONTEXT_ID); |
457 |
String pageToShow = computeInitialPageId(); |
| 457 |
addSourcePage(BuildInputContext.CONTEXT_ID); |
458 |
if (pageToShow.equals(BundleInputContext.CONTEXT_ID) || pageToShow.equals(BundleInputContext.CONTEXT_ID) |
|
|
459 |
|| pageToShow.equals(BuildInputContext.CONTEXT_ID)) { |
| 460 |
addSourcePage(BundleInputContext.CONTEXT_ID); |
| 461 |
addSourcePage(PluginInputContext.CONTEXT_ID); |
| 462 |
addSourcePage(BuildInputContext.CONTEXT_ID); |
| 463 |
return; |
| 464 |
} |
| 465 |
UIJob addSourcePageJob = new UIJob(PDEUIMessages.ManifestEditor_AddSourcePage) { // to extern |
| 466 |
@Override |
| 467 |
public IStatus runInUIThread(IProgressMonitor monitor) { |
| 468 |
addSourcePage(BundleInputContext.CONTEXT_ID); |
| 469 |
addSourcePage(PluginInputContext.CONTEXT_ID); |
| 470 |
addSourcePage(BuildInputContext.CONTEXT_ID); |
| 471 |
return Status.OK_STATUS; |
| 472 |
} |
| 473 |
}; |
| 474 |
addSourcePageJob.schedule(); |
| 458 |
} |
475 |
} |
| 459 |
|
476 |
|
| 460 |
private boolean isSourcePageID(String pageID) { |
477 |
private boolean isSourcePageID(String pageID) { |