Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » perspective Shortcut
perspective Shortcut [message #329523] Thu, 26 June 2008 23:03 Go to next message
Eclipse User
Originally posted by: prasad.chand.gmail.com

Hi All,

I wish to add the perspective i've created to the menu in "Open
Perspective" in java perspective...rather than having to click "Other"
and then select my perspective.

My plugin.xml looks like this
.....
<perspectiveExtension
targetID="my.perspective.id">
<perspectiveShortcut
id="org.eclipse.jdt.ui.JavaPerspective">
</perspectiveShortcut>
</perspectiveExtension>

Yet I do not get the shortcut in the menu.Can someone please clarify
this situation?

Thanks in advance,
Prasad
Re: perspective Shortcut [message #329543 is a reply to message #329523] Fri, 27 June 2008 14:18 Go to previous messageGo to next message
Eclipse User
Originally posted by: eclipse-news.rizzoweb.com

Prasad Chand wrote:
> Hi All,
>
> I wish to add the perspective i've created to the menu in "Open
> Perspective" in java perspective...rather than having to click "Other"
> and then select my perspective.
>
> My plugin.xml looks like this
> ....
> <perspectiveExtension
> targetID="my.perspective.id">
> <perspectiveShortcut
> id="org.eclipse.jdt.ui.JavaPerspective">
> </perspectiveShortcut>
> </perspectiveExtension>
>
> Yet I do not get the shortcut in the menu.Can someone please clarify
> this situation?

I think you have to two IDs mixed up. The perspectiveExtension targetID
is the perspective that you are targeting to put a shortcut in, so
should be the Java Perspective ID. The perspectiveShortcut id is the id
of the plugin you want a shortcut to, so should be your perspective's id.

Hope this helps,
Eric
Re: perspective Shortcut [message #329550 is a reply to message #329543] Fri, 27 June 2008 16:50 Go to previous message
Eclipse User
Originally posted by: prasad.chand.gmail.com

Thanks it works fine now. I should have figured this out from the
structure of the tags in plugin.xml


Eric Rizzo wrote:
> Prasad Chand wrote:
>> Hi All,
>>
>> I wish to add the perspective i've created to the menu in "Open
>> Perspective" in java perspective...rather than having to click "Other"
>> and then select my perspective.
>>
>> My plugin.xml looks like this
>> ....
>> <perspectiveExtension
>> targetID="my.perspective.id">
>> <perspectiveShortcut
>> id="org.eclipse.jdt.ui.JavaPerspective">
>> </perspectiveShortcut>
>> </perspectiveExtension>
>>
>> Yet I do not get the shortcut in the menu.Can someone please clarify
>> this situation?
>
> I think you have to two IDs mixed up. The perspectiveExtension targetID
> is the perspective that you are targeting to put a shortcut in, so
> should be the Java Perspective ID. The perspectiveShortcut id is the id
> of the plugin you want a shortcut to, so should be your perspective's id.
>
> Hope this helps,
> Eric
Previous Topic:How does the Eclipse project test it's GUI?
Next Topic:Folding a list
Goto Forum:
  


Current Time: Sun Oct 26 04:34:09 GMT 2014

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

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