VewPart Actions problem

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

VewPart Actions problem

Postby dfayerma » Sat Jan 22, 2005 4:13 am

If createActions() method declaration is located after the declaration of the
initializeToolBar() method in the ViewPart descendant classes, the Designer does not recognize the assignment of the actions to the toobar and menus.

It does not affect the code created by the designer but if you open existing code that happen to have the method declarations reversed, the designer does not work correctly.

To reproduce,
- create the ViewPart using the wizard,
- create an action and assign it to the toolbar
- move the createActions() method declaration before initializeToolBar()
The designer does not recognize the assignments.
dfayerma
 
Posts: 30
Joined: Mon Sep 20, 2004 10:51 am
Location: Boston, USA

Re: VewPart Actions problem

Postby Eric Clayberg » Sun Jan 23, 2005 7:11 pm

dfayerma wrote:To reproduce,
- create the ViewPart using the wizard,
- create an action and assign it to the toolbar
- move the createActions() method declaration before initializeToolBar()
The designer does not recognize the assignments.

Try this now with the latest v3.0.1 build (2005.01.23).
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 » Mon Jan 24, 2005 2:04 pm

Try this now with the latest v3.0.1 build (2005.01.23).

Now it works.
Thanks a lot.
dfayerma
 
Posts: 30
Joined: Mon Sep 20, 2004 10:51 am
Location: Boston, USA


Return to SWT Designer

Who is online

Users browsing this forum: No registered users and 1 guest