Community
Participate
Working Groups
1. Start with a fresh eclipse installation and an empty workspace. 2. Create a plugin project (e.g. "MyProject") 3. Add a dependency to org.eclipse.core.resources plugin 4. Go to the "Extension" Tab, click "Add". Search in the list for "org.eclipse.core.resources.builders" 5. Select the available "Project Builder and Nature" Template 6. Leave everything as is and click finish 7. Through the LaunchConfiguration start a new eclipse with the new plugin 8. Create an empty project in the new workspace 9. Try to add the SampleNature - this does not work. The menu entry in the Configure submenu is not available.
I should add: Tested with Eclipse 4.3.1, 4.3.2Rc4a and 4.4.0 M5 The Menu-item does not show up in any of the eclipse installations.
Reproduced on I20140218-0800. I tested it also on 3.8.2 and it contains a different template without command. I'm not sure what is the correct behaviour here. Moving to UI for comment.
Szymon, that template should have been contributed by o.e.core.resources (although it might live in the PDE repo). What does o.e.core.resources expect to do in that scenario? PW
eclipse.pde.ui/ui/org.eclipse.pde.ui.templates/src/org/eclipse/pde/internal/ui/templates/ide/BuilderTemplate.java The change was added for bug 395795 The Configure menu change might not work on all projects because it has an instanceof check in the visibleWhen instead of <adapt ...><test ...></adapt> PW
The usual scenario is that it is nature that is added or removed via menu and builders associated with this nature are added or removed via IProjectNature#configure/deconfigure. The thing that got changed in bug 395795 is that now the label says about enabling/disabling builder but it actually adds/removes nature. The hint with <adapt ...><test ...></adapt> fixes the problem. Thanks Paul!
Fix in Gerrit: https://git.eclipse.org/r/#/c/23119/ Moving to PDE for review.
http://git.eclipse.org/c/pde/eclipse.pde.ui.git/commit/?id=4a88d9d8535a978e2ab47ee3e247fdf753fced10 Fixed in master
Note that in a separate commit I updated the manifest version for the template bundle as it hadn't been modified for 4.4.