-
Notifications
You must be signed in to change notification settings - Fork 56
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
Unify nature checks and reuse existing constants from core.natures.PDE #941
base: master
Are you sure you want to change the base?
Unify nature checks and reuse existing constants from core.natures.PDE #941
Conversation
Test Results 194 files - 97 194 suites - 97 21m 28s ⏱️ - 34m 23s For more details on these failures, see this check. Results for commit 5be7b7d. ± Comparison against base commit a42910f. This pull request removes 2626 tests.
♻️ This comment has been updated with latest results. |
2a5a5f3
to
940a8a9
Compare
I have now taken this as an opportunity to replace all occurrences of PDE nature and builder literals by the corresponding constants in the Additionally I moved the I also contemplate to rename the What's the opinion of the others? Keep one central class for all nature and builder ids and |
I would appreciate if we could delay such cleanups/unification until the pending PRs are merged so they don't get delayed/distorted by rebase conflicts, for me central classes tend to be convoluted by more and more unrelated stuff over time so I think keeping it on the project classes seems good. |
private boolean acceptProject(IProject project) throws CoreException { | ||
if (project == null) { | ||
return false; | ||
} | ||
return (project.hasNature(JavaCore.NATURE_ID) && project.hasNature("org.eclipse.pde.PluginNature")) //$NON-NLS-1$ | ||
return project.hasNature(JavaCore.NATURE_ID) && PDE.hasPluginNature(project) |
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 think we should have also a isJavaPluginNature(...) that checks for java+plugin nature).
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 assume you mean hasJavaPluginNature...
@HannesWell still relevant? |
940a8a9
to
534e1d5
Compare
e8ea3a7
to
92378a0
Compare
Implemented that now which makes the PDE class obsolete since all methods and constants have been moved to the corresponding Now I just have to find out, why the tests are failing... |
92378a0
to
eed8a92
Compare
eed8a92
to
5be7b7d
Compare
No description provided.