Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Toolbar visibility
Toolbar visibility [message #459372] Thu, 30 November 2006 15:11 Go to next message
Eclipse UserFriend
Hi,
How do I make a views Toolbar and local pulldown visible.
I have the following fns in my View class which I am porting from an Eclipse
based to an RCP based platform.
The action buttons and the pull down menu is not visible.



private void contributeToActionBars() {
IActionBars bars = getViewSite().getActionBars();

fillLocalPullDown(bars.getMenuManager());
fillLocalToolBar(bars.getToolBarManager());
}
private void fillLocalPullDown(IMenuManager manager) {
manager.add(action1);
manager.add(new Separator());
manager.add(action2);
manager.setVisible(true);
}

private void fillLocalToolBar(IToolBarManager manager) {
manager.add(action1);
manager.add(action2);

}

Thanks
Re: Toolbar visibility [message #459376 is a reply to message #459372] Thu, 30 November 2006 17:07 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

did you made youre coolbar visible?

Look at the WorkbenchWindowAdvisor, you should call
configurer.setShowCoolBar(true); in the preWindowOpen method.

Hannes
Re: Toolbar visibility [message #459418 is a reply to message #459376] Thu, 30 November 2006 17:33 Go to previous message
Eclipse UserFriend
I had the coolbar visible.
The problem was with the Perspective - in the layout.addStandAloneView
method, I had setTitle param set to false.
Thanks.


"Hannes Niederhausen" <h.niederhausen@googlemail.com> wrote in message
news:eknkla$3n4$1@utils.eclipse.org...
> Hi,
>
> did you made youre coolbar visible?
>
> Look at the WorkbenchWindowAdvisor, you should call
> configurer.setShowCoolBar(true); in the preWindowOpen method.
>
> Hannes
Previous Topic:Using a Java Agent (e.g. Spring/Toplink) with an Eclipse RCP app?
Next Topic:No access to workspace in RCP product?
Goto Forum:
  


Current Time: Wed Mar 26 05:01:10 EDT 2025

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

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

Back to the top