perspective Shortcut [message #329523] |
Thu, 26 June 2008 23:03 |
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 |
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 |
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
|
|
|
Powered by
FUDForum. Page generated in 0.04696 seconds