Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Problem with perspectiveExtensions extensionpoint(Problem with perspectiveExtensions extensionpoint)
Problem with perspectiveExtensions extensionpoint [message #664596] Mon, 11 April 2011 10:23 Go to next message
vinay  is currently offline vinay Friend
Messages: 26
Registered: March 2011
Junior Member
I am using perspectiveExtensions extension point as follows :

<extension
point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension
targetID="*">
<newWizardShortcut
id="id of new wizard">
</newWizardShortcut>
</perspectiveExtension>
</extension>

I want it to be applicable for all perspectives.When I launch this plugin from plugin.xml it works fine but if I export the plugin and put it in plugins folder of eclipse and launch eclipse ,
it doesn't work for JavaEE perspective. I cant see my wizard in JavaEE.

Please guide me.
Thanks in advance.
Re: Problem with perspectiveExtensions extensionpoint [message #664617 is a reply to message #664596] Mon, 11 April 2011 11:55 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

On 04/11/2011 06:23 AM, vinay wrote:

> I want it to be applicable for all perspectives.When I launch this
> plugin from plugin.xml it works fine but if I export the plugin and put
> it in plugins folder of eclipse and launch eclipse ,
> it doesn't work for JavaEE perspective. I cant see my wizard in JavaEE.

You can't just add a plugin to the eclipse/plugins folder, so you
installed it, right?

If you install it properly and you open a workspace that's already
created, you might have to reset your perspective in order to see it.

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/helios/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm


Re: Problem with perspectiveExtensions extensionpoint [message #665390 is a reply to message #664617] Thu, 14 April 2011 14:09 Go to previous messageGo to next message
vinay  is currently offline vinay Friend
Messages: 26
Registered: March 2011
Junior Member
Thanks Paul. Reset of perspective works.

But what I observe is : when I install my plugin and restart eclipse my wizard gets added in File->new menu for all perspectives except the one which was active before restart of eclipse.

How to reset that active perspective programatically when eclipse is being launched after restart, so that user doesn't have to reset that active perspective manually?
Re: Problem with perspectiveExtensions extensionpoint [message #665485 is a reply to message #665390] Thu, 14 April 2011 18:47 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

On 04/14/2011 10:09 AM, vinay wrote:
>
> How to reset that active perspective programatically when eclipse is
> being launched after restart, so that user doesn't have to reset that
> active perspective manually?

In an RCP app you can use some of the WorkbenchAdvisor or
WorkbenchWindowAdvisor methods to modify the WorkbenchWindows after
they've been restored but before they've been shown.

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/helios/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm


Previous Topic:Create and set a target platform programatically
Next Topic:operators highlighting
Goto Forum:
  


Current Time: Thu Apr 18 00:39:56 GMT 2024

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

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

Back to the top