Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » [SOLVED]add own top level new wizard entry to package explorers "New " context menu
icon1.gif  [SOLVED]add own top level new wizard entry to package explorers "New " context menu [message #649883] Thu, 20 January 2011 20:22 Go to next message
Lars Heinemann is currently offline Lars HeinemannFriend
Messages: 21
Registered: January 2011
Junior Member

Hi,

I am currently struggling to get an entry for my new wizard into the context menu of the package explorer. The wizard is displayed if selecting New -> Other inside the Java Perspective, but I would like to have it top level like "new Interface or new Class". In the project explorer it is displayed top level already. So I am a bit puzzled why not in the Package Explorer.

Can somebody give me a hint how I can do this?

Many thanks in advance,
Lars

[Updated on: Fri, 21 January 2011 18:40]

Report message to a moderator

Re: add own top level new wizard entry to package explorers "New " context menu [message #650022 is a reply to message #649883] Fri, 21 January 2011 13:46 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Perspectives control the shortcuts for wizards and views. You can use
org.eclipse.ui.perspectiveExtensions extension to add your wizard to new.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: add own top level new wizard entry to package explorers "New " context menu [message #650026 is a reply to message #649883] Fri, 21 January 2011 13:54 Go to previous messageGo to next message
Lars Heinemann is currently offline Lars HeinemannFriend
Messages: 21
Registered: January 2011
Junior Member

Hi Paul,

thanks for your answer.

I already did that and the wizard is shown when selecting the
"New -> Other" item. But I'd rather like it to be "New -> MyWizard" directly instead of using the "Other" item.
Re: add own top level new wizard entry to package explorers "New " context menu [message #650053 is a reply to message #650026] Fri, 21 January 2011 14:28 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

On 01/21/2011 08:54 AM, Lars Heinemann wrote:
> Hi Paul,
>
> thanks for your answer.
>
> I already did that and the wizard is shown when selecting the "New ->
> Other" item. But I'd rather like it to be "New -> MyWizard" directly
> instead of using the "Other" item.
>

You added a perspective extension to contribute the shortcut to the Java
perspective? Then reset the perspective if you already had that
perspective open.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: add own top level new wizard entry to package explorers "New " context menu [message #650107 is a reply to message #649883] Fri, 21 January 2011 18:39 Go to previous message
Lars Heinemann is currently offline Lars HeinemannFriend
Messages: 21
Registered: January 2011
Junior Member

Paul,

you saved my day Wink
Thank you very much. Resetting the perspective finally did the trick. Thats a bit odd though but at least it works now.

Many thanks,
Lars
Previous Topic:The server does not support version 3.0 of the J2EE Web module specification
Next Topic:Debug memory in Java
Goto Forum:
  


Current Time: Thu Mar 28 12:42:14 GMT 2024

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

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

Back to the top