Unable to create menu bar

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Unable to create menu bar

Postby dbeyer » Fri Jul 01, 2005 11:57 am

I've got a licensed version of WindowBuilderPro (non-commercial license, version 4.0.1) and am building a SWT ApplicationWindow. I'm using Eclipse version 3.1.0 GA.

I can't get the Designer to let me drop a menu bar component onto the form. Past postings suggest the need for a layout to have been defined. My form has a FormLayout on it.

Ideas? Thanks.
dbeyer
 
Posts: 2
Joined: Fri Jul 01, 2005 9:47 am

Re: Unable to create menu bar

Postby Eric Clayberg » Fri Jul 01, 2005 3:59 pm

dbeyer wrote:I've got a licensed version of WindowBuilderPro (non-commercial license, version 4.0.1) and am building a SWT ApplicationWindow. I'm using Eclipse version 3.1.0 GA. I can't get the Designer to let me drop a menu bar component onto the form. Past postings suggest the need for a layout to have been defined. My form has a FormLayout on it..

I didn't have any problem when I tried it. I was able to drop a MenuBar followed by a SubMenu and a MenuItem. It does not matter what layout manager is in effect.

Do any exceptions appear in your Eclipse ".log" file? Can yuou send us a test case?
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Postby dbeyer » Sat Jul 02, 2005 4:36 am

Sorry. I used the wrong words. I'm actually attempting to put a menu bar on a **JFace** ApplicationWindow; not a SWT ApplicationWindow. I can't locate the information, but I think I read in some post that you can't drag menu bars to JFace ApplicationWindows. Is this correct? If so, maybe you could provide the reasoning behind that. Also, if you can't drag menu bars to JFace ApplicationWindows, why doesn't WindowBuilderPro tell you so?

As you stated, everything works fine for a SWT ApplicationWindow.
dbeyer
 
Posts: 2
Joined: Fri Jul 01, 2005 9:47 am

Postby Eric Clayberg » Sat Jul 02, 2005 4:50 am

dbeyer wrote:Sorry. I used the wrong words. I'm actually attempting to put a menu bar on a **JFace** ApplicationWindow; not a SWT ApplicationWindow. I can't locate the information, but I think I read in some post that you can't drag menu bars to JFace ApplicationWindows. Is this correct?

Yes. JFace ApplicationWindows already have a menubar defined for them that you configure via the Actions tab (so adding a second one would be redundant).

See the JFace ApplicationWindow docs in Designer.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to SWT Designer

Who is online

Users browsing this forum: No registered users and 1 guest