Community
Participate
Working Groups
The launch shortcut for JUnit plug-in tests appears for all JUnit tests, regardless of whether they live in a plug-in project. It would be nice to have this test performed up front (if fast enough), to avoid having the optional available. When invoked, it fails with "Could not determinte plugin ID - project is not a plugin".
Fixed. by adding <test property="org.eclipse.debug.ui.projectNature" value="org.eclipse.pde.PluginNature"/> to the launchShortcuts extension. I have considered using PDE tester, instead of relying on org.eclipse.debug.ui, but the fact that testers are not used unless they are already loaded means that without PDE opened the tester would not run. org.eclipse.debug.ui is loaded much easier.
We intend this property tester to be used as API, so you're plug-in does not need to be loaded for the test to work.
Great. I did not see it in documenation, but we are already using it in other places of PDE manifest. Thanks for clarification.