Cached images in WBP

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

Cached images in WBP

Postby Kelly » Wed Sep 26, 2007 9:33 am

If I edit an image that has already been assigned to a widget by the setImage method within the WBP the image in the editor does not change until I restart the Eclipse program.

To reproduce:

Assign an image to a ToolItem, (I think it could be any widget that has setImage).

Now use your image editor and modify the image but keep the image filename the same.

Press F5 so that Eclipse sees that the image file has changed.

The image shown in the GUI editor does not change.

I have to restart Eclipse to see my changes.

Is their a way to tell Eclipse or WBP editor to refresh the image it has cached?

I am not sure if Eclipse is doing this or WBP?

Posts: 38
Joined: Wed Feb 02, 2005 8:22 am

Re: Cached images in WBP

Postby Eric Clayberg » Sat Sep 29, 2007 12:07 pm

The images are normally cached until the app (Eclipse in this case) shuts down and restarts.

In the latest build, you should now be able to either close and reopen the editor or click the Refresh button in the editor to have the images update.
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