Designer 7.0 Label image selector wizard

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

Designer 7.0 Label image selector wizard

Postby octavio » Sat Apr 18, 2009 4:03 pm

In the prior version of SWT Designer, the image selector wizard would generate code similar to:

7.0 does not ask for the activator class and generates the following code when selecting the plugin resource option within the image selector dialog:
button.setImage(ResourceManager.getPluginImage("com.oxbsystems.client", "icons/guiops/Add.png"));
This code does not display an image in design view nor in the preview.

After the wizard closes the image property field in the design view remains empty...Code is generated as mentioned above, but the view does not reflect any changes.

I assume this a bug in 7.0... (I'm running ubuntu 8.10 64 bit)

Posts: 8
Joined: Sun May 04, 2008 4:50 pm

Re: Designer 7.0 Label image selector wizard

Postby Eric Clayberg » Mon Apr 20, 2009 6:22 am

The code is generated correctly for the new ResourceManager included with 7.0. There was a bug that was just fixed that prevented SWT Designer from updating the RM class with the new APIs. You did not see the image because your project still had the older version of the RM class. Update to the latest 7.0.0 build and try the image selection wizard again.
Eric Clayberg
Software Engineering Manager

Author: "Eclipse Plug-ins"
Eric Clayberg
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 2 guests