svm
svm

Reputation: 161

Addition of items to the "NEW" button in eclipse toolbar

I'm developing a custom project plugin wizard.

Currently the custom project wizard option shows up when I press "CTRL+N"

Or when I navigate from toolbar "New -> (drop down list) -> other.

Instead I want my selection to my newprojectwizard in the dropdown list that is generated for the "New" button on toolbar.

We see that the new button on toolbar has the following format.

A list of perspective controlled options.

Dotted lines and "Example" Dotted line and "other"

I want to put my custom project wizard either in the section along with "example" or "other"

Any help or code snippet highly appreciated.

enter image description here

Upvotes: 1

Views: 196

Answers (1)

greg-449
greg-449

Reputation: 111142

Use the org.eclipse.ui.perspectiveExtensions extension point to add to the top level new menu. The newWizardShortcut adds the shortcut.

For example:

<extension point="org.eclipse.ui.perspectiveExtensions">
  <perspectiveExtension targetID="org.eclipse.pde.ui.PDEPerspective">
     <newWizardShortcut id="org.eclipse.pde.ds.ui.wizard"/>
  </perspectiveExtension>
</extension> 

Upvotes: 2

Related Questions