Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Show View menu in RCP
Show View menu in RCP [message #436016] Mon, 29 August 2005 21:52 Go to next message
Anu is currently offline AnuFriend
Messages: 5
Registered: July 2009
Junior Member
How do I add Window/Show View menu to my RCP app? I just want to view PDE
and PDE runtime submenus.

I did the following.

MenuManager windowMenu = new MenuManager("&Window",
IWorkbenchActionConstants.M_WINDOW);
menuBar.add(windowMenu);
windowMenu.add(showViewAction);

where as my showViewAction is
IWorkbenchAction showViewAction =
ActionFactory.SHOW_VIEW_MENU.create(window);

My RCP app's Window has Show View Menu (not just Show View) submenu which
is grayed out.

Thank you for any help.
Re: Show View menu in RCP [message #436018 is a reply to message #436016] Mon, 29 August 2005 22:10 Go to previous messageGo to next message
Gordon Hirsch is currently offline Gordon HirschFriend
Messages: 100
Registered: July 2009
Senior Member
I did this:

In the action bar advisor's makeActions():

showViewMenuMgr = new MenuManager("Show View", "showView");
showViewItem =
ContributionItemFactory.VIEWS_SHORTLIST.create(window);

In the action bar advisor's fillMenuBar():

MenuManager windowMenu = new MenuManager("&Window",
IWorkbenchActionConstants.M_WINDOW);
showViewMenuMgr.add(showViewItem);
windowMenu.add(showViewMenuMgr);


Anu wrote:
> How do I add Window/Show View menu to my RCP app? I just want to view PDE
> and PDE runtime submenus.
>
> I did the following.
>
> MenuManager windowMenu = new MenuManager("&Window",
> IWorkbenchActionConstants.M_WINDOW);
> menuBar.add(windowMenu);
> windowMenu.add(showViewAction);
>
> where as my showViewAction is
> IWorkbenchAction showViewAction =
> ActionFactory.SHOW_VIEW_MENU.create(window);
>
> My RCP app's Window has Show View Menu (not just Show View) submenu which
> is grayed out.
>
> Thank you for any help.
>
>
>
Re: Show View menu in RCP [message #436019 is a reply to message #436018] Mon, 29 August 2005 22:21 Go to previous messageGo to next message
Anu is currently offline AnuFriend
Messages: 5
Registered: July 2009
Junior Member
Thanks for the tip. Now I see Window/Show View menu enabled. But when I
click on Show View /Other.., I get the Show View window but it has only
View. How do I get PDE/PDE Rutime items in the Show View popup window?


"Gordon Hirsch" <eclipse@gordonh.com> wrote in message
news:df014j$vit$1@news.eclipse.org...
> I did this:
>
> In the action bar advisor's makeActions():
>
> showViewMenuMgr = new MenuManager("Show View", "showView");
> showViewItem =
> ContributionItemFactory.VIEWS_SHORTLIST.create(window);
>
> In the action bar advisor's fillMenuBar():
>
> MenuManager windowMenu = new MenuManager("&Window",
> IWorkbenchActionConstants.M_WINDOW);
> showViewMenuMgr.add(showViewItem);
> windowMenu.add(showViewMenuMgr);
>
>
> Anu wrote:
> > How do I add Window/Show View menu to my RCP app? I just want to view
PDE
> > and PDE runtime submenus.
> >
> > I did the following.
> >
> > MenuManager windowMenu = new MenuManager("&Window",
> > IWorkbenchActionConstants.M_WINDOW);
> > menuBar.add(windowMenu);
> > windowMenu.add(showViewAction);
> >
> > where as my showViewAction is
> > IWorkbenchAction showViewAction =
> > ActionFactory.SHOW_VIEW_MENU.create(window);
> >
> > My RCP app's Window has Show View Menu (not just Show View) submenu
which
> > is grayed out.
> >
> > Thank you for any help.
> >
> >
> >
Re: Show View menu in RCP [message #436052 is a reply to message #436019] Tue, 30 August 2005 12:47 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Anu wrote:
> Thanks for the tip. Now I see Window/Show View menu enabled. But when I
> click on Show View /Other.., I get the Show View window but it has only
> View. How do I get PDE/PDE Rutime items in the Show View popup window?
>

Have you deployed the org.eclipse.pde.* plugins and all of their
dependancies in your RCP app?

Later,
PW


Re: Show View menu in RCP [message #436053 is a reply to message #436019] Tue, 30 August 2005 12:48 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Anu wrote:
> Thanks for the tip. Now I see Window/Show View menu enabled. But when I
> click on Show View /Other.., I get the Show View window but it has only
> View. How do I get PDE/PDE Rutime items in the Show View popup window?
>

Have you deployed the org.eclipse.pde.* plugins and all of their
dependancies into your RCP app?

Later,
PW


Previous Topic:howto "overwrite" the close() method of the Workbench
Next Topic:Has ANYONE succeeded in deploying RCP plugin in Eclipse 3.1 to run in WebStart?
Goto Forum:
  


Current Time: Mon Dec 09 11:21:23 GMT 2024

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

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

Back to the top