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.

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