Search code examples
eclipseeclipse-pluginrcp

Associate newWizard with nature of selected project


I am trying to add a contribution to the org.eclipse.ui.newWizards extension point so that the entry in the new-menu is only shown, when the selected project has a certain nature.

Is this possible only by declarative use of this extension point? I already look for an attribute like <enabledwhen>of a menu's action but the wizard's extension point does not seem to offer this possibility.

Any ideas to achieve the said behaviour is welcome.


Solution

  • This is not supported. New wizards always appear everywhere.

    The only thing that can be controlled is the 'shortcuts' which appear in the top level of the New menu which can be configured according to the perspective using the org.eclipse.ui.perspectiveExtensions extension point.