Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » SWT Image location in ResourceMananget
SWT Image location in ResourceMananget [message #1256374] Tue, 25 February 2014 11:08 Go to next message
Arnaud MERGEY is currently offline Arnaud MERGEYFriend
Messages: 243
Registered: March 2010
Location: France
Senior Member
Hello

It seems that all SWT Image resources create are registered in RAP org.eclipse.rap.rwt.service.ResourceManager

Is there any way for a given org.eclipse.swt.graphics.Image instance to get name allowing to retrieve location in ResourceManger (org.eclipse.rap.rwt.service.ResourceManager.getLocation(String)).

It would allow for example to use same SWT image in a button and in markup (<img>)

Arnaud
Re: SWT Image location in ResourceMananget [message #1256386 is a reply to message #1256374] Tue, 25 February 2014 11:21 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Arnaud,
there is no API for this, but you could use the internal
ImageFactory#getImagePath( Image ).
HTH,
Ivan

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: SWT Image location in ResourceMananget [message #1256396 is a reply to message #1256386] Tue, 25 February 2014 11:37 Go to previous message
Arnaud MERGEY is currently offline Arnaud MERGEYFriend
Messages: 243
Registered: March 2010
Location: France
Senior Member
Thanks Ivan, I missed this
Previous Topic:How to programmatically mkdir and move uplaoded files?
Next Topic:drop listener
Goto Forum:
  


Current Time: Tue Apr 23 08:15:21 GMT 2024

Powered by FUDForum. Page generated in 0.03174 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top