-
Notifications
You must be signed in to change notification settings - Fork 215
Replace PROJECT_OPEN_NEW_PERSPECTIVE Constant with IDE.Preferences Equivalent #2971
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
@@ -12,7 +12,8 @@ Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)", | |||
org.eclipse.swt;bundle-version="[3.128.0,4.0.0)";visibility:=reexport, | |||
org.eclipse.jface;bundle-version="[3.34.0,4.0.0)";visibility:=reexport, | |||
org.eclipse.ui.workbench;bundle-version="[3.130.0,4.0.0)";visibility:=reexport, | |||
org.eclipse.core.expressions;bundle-version="[3.4.0,4.0.0)" | |||
org.eclipse.core.expressions;bundle-version="[3.4.0,4.0.0)", | |||
org.eclipse.ui.ide;bundle-version="3.22.600" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This adds cyclic dependency
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the presence of cyclic dependencies discouraged ?; is it okay to add the bundle requirement in the Import-Package instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we would want to make an IDE-independent part depend on the IDE all of a sudden, even if it were allowed (and it's not allowed.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@merks Do you have any suggestions to go about this fix?
Can this be removed now? , as the effective preference used by the Eclipse IDE is the one under org.eclipse.ui.ide, not the one in org.eclipse.ui? I don’t think the deprecated one (IWorkbenchPreferenceConstants.PROJECT_OPEN_NEW_PERSPECTIVE) no longer influences current project-opening behaviour. |
Yes I doubt it’s relevant |
ba478d0
to
06018c8
Compare
I’ve pushed the changes again — is this good to go now? |
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. Fixup : effective preference used by the Eclipse IDE is the one under org.eclipse.ui.ide, not the one in org.eclipse.ui. deprecated IWorkbenchPreferenceConstants.PROJECT_OPEN_NEW_PERSPECTIVE no longer influences current project-opening behaviour.
The effective preference used by Eclipse is now under
org.eclipse.ui.ide.
The deprecated constant (
IWorkbenchPreferenceConstants.PROJECT_OPEN_NEW_PERSPECTIVE
)from
org.eclipse.ui
no longer affects the current project-opening behavior.