Placing pop-up menu on a composite

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

Placing pop-up menu on a composite

Postby dfayerma » Tue Sep 21, 2004 9:49 am

I think there is a bug editing Composite control.
If I put a pop-up menu on a control the designer generates invalid Menu constructor with null parameter:
Code: Select all
final Menu menu = new Menu(null);
setMenu(menu);

The correct code should take this as a parameter in the constructor:
Code: Select all
final Menu menu = new Menu(this);
setMenu(menu);

Also "Open Definition" does not locate correct line when Pop-up menu is selected (both during a shell and component editing)
dfayerma
 
Posts: 30
Joined: Mon Sep 20, 2004 10:51 am
Location: Boston, USA

Deleting a Menu error

Postby dfayerma » Tue Sep 21, 2004 10:01 am

In addition deleting a Menu in the design view causes an error. I can attach stack trace if needed.
dfayerma
 
Posts: 30
Joined: Mon Sep 20, 2004 10:51 am
Location: Boston, USA

Re: Placing pop-up menu on a composite

Postby Eric Clayberg » Wed Sep 22, 2004 5:39 am

dfayerma wrote:I think there is a bug editing Composite control.
If I put a pop-up menu on a control the designer generates invalid Menu constructor with null parameter

This has now been fixed in the latest v2.1.1 build.
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 dfayerma » Wed Sep 22, 2004 9:45 am

Eric,
I tested the pop-up menu with the new release and it works great.

The only problem ramaining is that "Open Definition" does not locate correct line when Pop-up menu is selected.


Your response time is amazing!
Thanks a lot

Dimitry.
dfayerma
 
Posts: 30
Joined: Mon Sep 20, 2004 10:51 am
Location: Boston, USA

Postby Eric Clayberg » Thu Sep 23, 2004 8:49 am

dfayerma wrote:The only problem ramaining is that "Open Definition" does not locate correct line when Pop-up menu is selected.

This has now been fixed in the latest v2.1.1 build.
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