Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » "New" Sub Menu entries(How to add a custom file type wizzard to the "New"-Sub Menu)
"New" Sub Menu entries [message #632250] Tue, 12 October 2010 09:52 Go to next message
Chris  is currently offline Chris
Messages: 44
Registered: April 2010
Member
Hi,

hopefully, this is a quick one: I have written an Editor for a custom file type. it's currently hooked up to the "Code Gestalt" category in the "New" Dialog. Here is the corresponding piece from plugin.xml:
   <extension
         point="org.eclipse.ui.newWizards">
      <category
            id="edu.rwth.hci.codegestalt"
            name="Code Gestalt">
      </category>
      <wizard
            category="edu.rwth.hci.codegestalt"
            class="edu.rwth.hci.codegestalt.wizard.CgtWizard"
            icon="icons/CgtNew16.png"
            id="edu.rwth.hci.codegestalt.wizard.CgtWizard"
            name="Code Gestalt Diagram">
         <description>
            Create a Code Gestalt Diagram.
         </description>
      </wizard>
   </extension>


I'd like to make it visible in the "File->New" submenu (Alt+Shift+N). I tried to add the wizard to org.ecplipse.ui.Basic (the General Category), but that was a dead end.

How must I proceed?

Regards,
Chris
Re: "New" Sub Menu entries [message #632383 is a reply to message #632250] Tue, 12 October 2010 17:49 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.
Messages: 621
Registered: July 2009
Senior Member
On 12/10/10 3:22 PM, Chris wrote:
> I'd like to make it visible in the "File->New" submenu (Alt+Shift+N).

You need to extend "org.eclipse.ui.perspectiveExtensions" and provide
the newWizardShortcut

--
- Prakash
Platform UI Team, IBM

www.eclipse-tips.com
Re: "New" Sub Menu entries [message #632499 is a reply to message #632383] Wed, 13 October 2010 08:56 Go to previous message
Chris  is currently offline Chris
Messages: 44
Registered: April 2010
Member
Thanks. I didn't see it first, I had to reset the perspective, now it just works fine.

However, something is a bit strange: When I open "Customize perspective->Shortcuts", I see my Plug-In listed with an empty check box in front of it, but when I click it, the associated file tyoe is not shown on the right as with the other entries. Also the check box cannot be toggled.

Regards,
Chris
Previous Topic:Launching a Wizard from the toolbar
Next Topic:Mark Occurrences
Goto Forum:
  


Current Time: Tue Sep 16 19:35:22 GMT 2014

Powered by FUDForum. Page generated in 0.04040 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software