Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Plug-in like a project-wizard
Plug-in like a project-wizard [message #537054] Tue, 01 June 2010 08:04 Go to next message
José is currently offline José
Messages: 31
Registered: March 2010
Member
Hello, I'm developed a plug-in from eclipse and I want it to appear in the file/new/project wizard... now it appears on the file/new/other....is there anyway to change it?...

Thank you very much!
Re: Plug-in like a project-wizard [message #537148 is a reply to message #537054] Tue, 01 June 2010 13:06 Go to previous messageGo to next message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

José wrote:
> Hello, I'm developed a plug-in from eclipse and I want it to appear in
> the file/new/project wizard... now it appears on the
> file/new/other....is there anyway to change it?...

You need to add your wizard as a new shortcut. Either in the
PerspectiveFactory if you own it or using
org.eclipse.ui.perspectiveExtensions if you are contributing to an
existing perspective.

Don't forget to reset the perspective to see the changes when developing.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
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: Plug-in like a project-wizard [message #537388 is a reply to message #537054] Wed, 02 June 2010 09:41 Go to previous messageGo to next message
José is currently offline José
Messages: 31
Registered: March 2010
Member
Thank you for the anwer, but how can I add my wizard as shortcut?

Thank you again!
Re: Plug-in like a project-wizard [message #537432 is a reply to message #537388] Wed, 02 June 2010 12:39 Go to previous messageGo to next message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

José wrote:
> Thank you for the anwer, but how can I add my wizard as shortcut?

From my post: "Either in the PerspectiveFactory if you own it or using
org.eclipse.ui.perspectiveExtensions if you are contributing to an
existing perspective.

Don't forget to reset the perspective to see the changes when developing. "

for information on both you can check out http://help.eclipse.org >
Platform Plug-in Developer Guide

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
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: Plug-in like a project-wizard [message #537660 is a reply to message #537054] Thu, 03 June 2010 09:48 Go to previous messageGo to next message
José is currently offline José
Messages: 31
Registered: March 2010
Member
I haven't found perspectivefactory on the help, but maybe it has to be with the next I'm going to say

<plugin>

<extension
id="wizard"
name="try"
point="org.eclipse.ui.newWizards">
<category
name="tryWizard"
id="wizard.category1">
</category>
<wizard
name="Your try APP"
icon="icons/wizard.gif"
category="wizard.category1"
class="com.argos.framework.TryWizard"
id="wizard.wizard1">
<description>
Make your APP
</description>
</wizard>
</extension>

</plugin>

I have the next code in the plugin.xml file. Like I have read on the help that you give me, I think I should add something like this:


<perspective
id="org.eclipse.ui.resourcePerspective"
name="Resource"
class="org.eclipse.ui.internal.ResourcePerspective"
icon="icons/MyIcon.gif">
</perspective>


inside the extension section, am I right?. I have seen in this example, resoursePerspective is access by the menu Window. What would it be for appear in the File/new/project?

Thank you so much, and I'm sorry for asking how to do the shortcut, I had misunderstanded you.

[Updated on: Thu, 03 June 2010 09:53]

Report message to a moderator

Re: Plug-in like a project-wizard [message #537694 is a reply to message #537660] Thu, 03 June 2010 11:59 Go to previous messageGo to next message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

José wrote:
> I have the next code in the plugin.xml file. Like I have read on the
> help that you give me, I think I should add something like this:
> <extension point="org.eclipse.ui.perspectives">
> <perspective id="org.eclipse.ui.resourcePerspective"
> name="Resource"
> class="org.eclipse.ui.internal.ResourcePerspective"
> icon="icons/MyIcon.gif"> </perspective> </extension>


If you write your own perspective, you would use
org.eclipse.ui.perspectives. If you want to contribute to an existing
perspective, like org.eclipse.ui.resourcePerspective, then you need to
use org.eclipse.ui.perspectiveExtensions which can contribute just the
shortcut.

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
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: Plug-in like a project-wizard [message #537797 is a reply to message #537054] Thu, 03 June 2010 16:39 Go to previous message
José is currently offline José
Messages: 31
Registered: March 2010
Member
Thank you!

I have gotten it
Previous Topic:How to "lock" workspace?
Next Topic:Updating Status bar like TextEditor does
Goto Forum:
  


Current Time: Mon Sep 22 08:33:27 GMT 2014

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

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