Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Get rid of Other...
Get rid of Other... [message #511713] Tue, 02 February 2010 15:55 Go to next message
Dirk Hoffmann is currently offline Dirk HoffmannFriend
Messages: 163
Registered: July 2009
Senior Member
Hi,

I guess this has been asked a hundred times already.

Just it is so hard to search for it so I'm asking again:

How can I manage to have my perspectives, views, etc. be placed directly
under "Window->Open Perspective", "Window->Show View" as opposed to
under "Other...".

Thanks and Regards,
Dirk
Re: Get rid of Other... [message #511883 is a reply to message #511713] Wed, 03 February 2010 10:21 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3801
Registered: July 2009
Senior Member
Dirk Hoffmann wrote:
> Hi,
>
> I guess this has been asked a hundred times already.
>
> Just it is so hard to search for it so I'm asking again:
>
> How can I manage to have my perspectives, views, etc. be placed
> directly under "Window->Open Perspective", "Window->Show View" as
> opposed to under "Other...".
Take a look at the 'org.eclipse.ui.perspectiveExtensions' extension point.

Dani
>
> Thanks and Regards,
> Dirk
Re: Get rid of Other... [message #512156 is a reply to message #511883] Thu, 04 February 2010 08:32 Go to previous message
Dirk Hoffmann is currently offline Dirk HoffmannFriend
Messages: 163
Registered: July 2009
Senior Member
Hi Daniel,

thanks for the hint - very helpful indeed.

So here an excerpt of the resulting plugin.xml with comments added.

<!-- The Schema Extractor Perspective -->
<extension
point="org.eclipse.ui.perspectives">
<perspective
name="%perspective.name"
class="de.tesis.plmware.schemaextractor.ui.Perspective"
id="de.tesis.plmware.schemaextractor.ui.perspective"
icon="icons/perspective16.png">
</perspective>
</extension>

<!-- Extension for the ResourcePerspective -->
<extension
point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension targetID="org.eclipse.ui.resourcePerspective">
<!-- Switching to the Schema Extractor Perspective should now be
possible without Others... -->
<perspectiveShortcut
id="de.tesis.plmware.schemaextractor.ui.perspective"/>
</perspectiveExtension>
</extension>

<!-- Extension for the Schema Extractor Perspective -->
<extension
point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension
targetID="de.tesis.plmware.schemaextractor.ui.perspective">
<!-- Opening the QuickClickView should now be possible without
Others... -->
<viewShortcut
id="de.tesis.plmware.schemaextractor.sbq.editor.QuickClickView "/>
</perspectiveExtension>
</extension>


Daniel Megert schrieb:
> Dirk Hoffmann wrote:
>> Hi,
>>
>> I guess this has been asked a hundred times already.
>>
>> Just it is so hard to search for it so I'm asking again:
>>
>> How can I manage to have my perspectives, views, etc. be placed
>> directly under "Window->Open Perspective", "Window->Show View" as
>> opposed to under "Other...".
> Take a look at the 'org.eclipse.ui.perspectiveExtensions' extension point.
>
> Dani
>>
>> Thanks and Regards,
>> Dirk
Previous Topic:how to add scroll bars to a section page
Next Topic:export images into a product
Goto Forum:
  


Current Time: Thu Nov 27 13:29:04 GMT 2014

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

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