-
Notifications
You must be signed in to change notification settings - Fork 211
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
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.
@@ -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?
The
PROJECT_OPEN_NEW_PERSPECTIVE
constant in the IWorkbenchPreferenceConstants interface is deprecated and marked for removal. It should be replaced with the equivalentPROJECT_OPEN_NEW_PERSPECTIVE
constant available in IDE.Preferences