Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 482577 | Differences between
and this patch

Collapse All | Expand All

(-)a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/PDEUIMessages.java (+4 lines)
Lines 790-795 Link Here
790
790
791
	// Plug-in Manifest Editor ########################
791
	// Plug-in Manifest Editor ########################
792
792
793
	public static String ManifestEditor_AddingSourcePages;
794
795
	public static String ManifestEditor_SettingActivePage;
796
793
	public static String ManifestEditor_DetailExtensionPointSection_title;
797
	public static String ManifestEditor_DetailExtensionPointSection_title;
794
	public static String ManifestEditor_DetailExtensionPointSection_new;
798
	public static String ManifestEditor_DetailExtensionPointSection_new;
795
	public static String ManifestEditor_DetailExtensionPointSection_newExtensionPoint;
799
	public static String ManifestEditor_DetailExtensionPointSection_newExtensionPoint;
(-)a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/plugin/ManifestEditor.java (-4 / +33 lines)
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.jobs.JobChangeAdapter;
21
import org.eclipse.core.runtime.preferences.IEclipsePreferences;
22
import org.eclipse.core.runtime.preferences.IEclipsePreferences;
22
import org.eclipse.jface.action.IToolBarManager;
23
import org.eclipse.jface.action.IToolBarManager;
23
import org.eclipse.jface.preference.IPreferenceStore;
24
import org.eclipse.jface.preference.IPreferenceStore;
Lines 42-47 Link Here
42
import org.eclipse.ui.*;
43
import org.eclipse.ui.*;
43
import org.eclipse.ui.ide.FileStoreEditorInput;
44
import org.eclipse.ui.ide.FileStoreEditorInput;
44
import org.eclipse.ui.part.FileEditorInput;
45
import org.eclipse.ui.part.FileEditorInput;
46
import org.eclipse.ui.progress.UIJob;
45
import org.eclipse.ui.views.properties.IPropertySheetPage;
47
import org.eclipse.ui.views.properties.IPropertySheetPage;
46
import org.osgi.service.prefs.BackingStoreException;
48
import org.osgi.service.prefs.BackingStoreException;
47
49
Lines 452-460 Link Here
452
		} catch (PartInitException e) {
454
		} catch (PartInitException e) {
453
			PDEPlugin.logException(e);
455
			PDEPlugin.logException(e);
454
		}
456
		}
455
		addSourcePage(BundleInputContext.CONTEXT_ID);
457
456
		addSourcePage(PluginInputContext.CONTEXT_ID);
458
		UIJob addSourcePageJob = new UIJob(PDEUIMessages.ManifestEditor_AddingSourcePages) {
457
		addSourcePage(BuildInputContext.CONTEXT_ID);
459
			@Override
460
			public IStatus runInUIThread(IProgressMonitor monitor) {
461
				addSourcePage(BundleInputContext.CONTEXT_ID);
462
				addSourcePage(PluginInputContext.CONTEXT_ID);
463
				addSourcePage(BuildInputContext.CONTEXT_ID);
464
				return Status.OK_STATUS;
465
			}
466
		};
467
		addSourcePageJob.addJobChangeListener(new JobChangeAdapter() {
468
			@Override
469
			public void done(org.eclipse.core.runtime.jobs.IJobChangeEvent event) {
470
				UIJob job = new UIJob(PDEUIMessages.ManifestEditor_SettingActivePage) {
471
					@Override
472
					public IStatus runInUIThread(IProgressMonitor monitor) {
473
						String pageToShow = computeInitialPageId();
474
						// have a check here
475
						if (pageToShow != null)
476
							setActivePage(pageToShow);
477
						return Status.OK_STATUS;
478
					}
479
				};
480
				job.setSystem(true);
481
				job.schedule();
482
			}
483
		});
484
		addSourcePageJob.schedule();
485
486
458
	}
487
	}
459
488
460
	private boolean isSourcePageID(String pageID) {
489
	private boolean isSourcePageID(String pageID) {
(-)a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/pderesources.properties (+2 lines)
Lines 275-280 Link Here
275
FeatureOutlinePage_discoverUrls = Sites to Visit
275
FeatureOutlinePage_discoverUrls = Sites to Visit
276
276
277
###### Plug-in Manifest Editor ########################
277
###### Plug-in Manifest Editor ########################
278
ManifestEditor_AddingSourcePages=Adding Source Pages
279
ManifestEditor_SettingActivePage=Setting Active Page
278
ManifestEditor_DetailExtensionPointSection_title = All Extension Points
280
ManifestEditor_DetailExtensionPointSection_title = All Extension Points
279
ManifestEditor_DetailExtensionPointSection_new = Add...
281
ManifestEditor_DetailExtensionPointSection_new = Add...
280
ManifestPackageRenameParticipant_packageRename=Rename packages referenced in plug-in manifest files
282
ManifestPackageRenameParticipant_packageRename=Rename packages referenced in plug-in manifest files

Return to bug 482577