Skip to content

Commit 00fd063

Browse files
committed
The String PROJECT_OPEN_NEW_PERSPECTIVE = "PROJECT_OPEN_NEW_PERSPECTIVE"
in IWorkbenchPreferenceConstants interface is deprecated and marked for removal and hence it can be replaced with public static final String PROJECT_OPEN_NEW_PERSPECTIVE = "PROJECT_OPEN_NEW_PERSPECTIVE" present in IDE.Preferences.
1 parent 0368ee5 commit 00fd063

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

bundles/org.eclipse.ui/META-INF/MANIFEST.MF

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)",
1212
org.eclipse.swt;bundle-version="[3.128.0,4.0.0)";visibility:=reexport,
1313
org.eclipse.jface;bundle-version="[3.34.0,4.0.0)";visibility:=reexport,
1414
org.eclipse.ui.workbench;bundle-version="[3.130.0,4.0.0)";visibility:=reexport,
15-
org.eclipse.core.expressions;bundle-version="[3.4.0,4.0.0)"
15+
org.eclipse.core.expressions;bundle-version="[3.4.0,4.0.0)",
16+
org.eclipse.ui.ide;bundle-version="3.22.600"
1617
Bundle-RequiredExecutionEnvironment: JavaSE-17
1718
Automatic-Module-Name: org.eclipse.ui
1819
Require-Capability: eclipse.swt;filter:="(image.format=svg)"

bundles/org.eclipse.ui/src/org/eclipse/ui/internal/UIPreferenceInitializer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import org.eclipse.core.runtime.preferences.InstanceScope;
2828
import org.eclipse.swt.SWT;
2929
import org.eclipse.ui.IWorkbenchPreferenceConstants;
30+
import org.eclipse.ui.ide.IDE;
3031
import org.eclipse.ui.keys.IBindingService;
3132
import org.osgi.service.prefs.BackingStoreException;
3233

@@ -53,7 +54,7 @@ public void initializeDefaultPreferences() {
5354
IWorkbenchPreferenceConstants.OPEN_PERSPECTIVE_REPLACE);
5455

5556
// Deprecated but kept for backwards compatibility
56-
node.put(IWorkbenchPreferenceConstants.PROJECT_OPEN_NEW_PERSPECTIVE,
57+
node.put(IDE.Preferences.PROJECT_OPEN_NEW_PERSPECTIVE,
5758
IWorkbenchPreferenceConstants.OPEN_PERSPECTIVE_REPLACE);
5859

5960
// Although there is no longer any item on the preference pages

0 commit comments

Comments
 (0)