Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » showing a list of registered views
showing a list of registered views [message #464478] Thu, 08 March 2007 09:53 Go to next message
ruthie is currently offline ruthieFriend
Messages: 8
Registered: July 2009
Junior Member
Hello.

I will like to implement a feature like the IDE's Window/Show View where
all registered views appear and can be activated.

I need help in pointing me in the right direction:
Is this feature available or do I need to implement it? (I didn't find it.)
How can I get access to the registered views?

thanks,
ruthie
Re: showing a list of registered views [message #464479 is a reply to message #464478] Thu, 08 March 2007 12:51 Go to previous messageGo to next message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
ruthie wrote:
> Hello.
>
> I will like to implement a feature like the IDE's Window/Show View where
> all registered views appear and can be activated.
>
> I need help in pointing me in the right direction:
> Is this feature available or do I need to implement it? (I didn't find it.)
> How can I get access to the registered views?

Its available. In your ActionBarAdvisor impl you simply add the
following contribution:

MenuManager showViewMenuMgr = new MenuManager(
"Your label", "showView"); //$NON-NLS-1$
IContributionItem showViewMenu = ContributionItemFactory.VIEWS_SHORTLIST
.create(window);
showViewMenuMgr.add(showViewMenu);
menu.add(showViewMenuMgr);

Greetings from Bremen,

Daniel Krügler
Re: showing a list of registered views [message #464481 is a reply to message #464479] Thu, 08 March 2007 13:11 Go to previous message
ruthie is currently offline ruthieFriend
Messages: 8
Registered: July 2009
Junior Member
thanks, it worked
ruthie

Daniel Krügler wrote:

> ruthie wrote:
>> Hello.
>>
>> I will like to implement a feature like the IDE's Window/Show View where
>> all registered views appear and can be activated.
>>
>> I need help in pointing me in the right direction:
>> Is this feature available or do I need to implement it? (I didn't find it.)
>> How can I get access to the registered views?

> Its available. In your ActionBarAdvisor impl you simply add the
> following contribution:

> MenuManager showViewMenuMgr = new MenuManager(
> "Your label", "showView"); //$NON-NLS-1$
> IContributionItem showViewMenu = ContributionItemFactory.VIEWS_SHORTLIST
> .create(window);
> showViewMenuMgr.add(showViewMenu);
> menu.add(showViewMenuMgr);

> Greetings from Bremen,

> Daniel Krügler
Previous Topic:Problem loading files from other Plugin in Eclipse 3.3
Next Topic:Problem with the Selection Service
Goto Forum:
  


Current Time: Thu Oct 03 16:19:54 GMT 2024

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

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

Back to the top