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 MERGEY
Messages: 131
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 Furnadjiev
Messages: 1839
Registered: July 2009
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 MERGEY
Messages: 131
Registered: March 2010
Location: France
Senior Member
Thanks Ivan, I missed this
Previous Topic:How to programmatically mkdir and move uplaoded files?
Next Topic:Combo problems in Firefox
Goto Forum:
  


Current Time: Tue Oct 21 13:39:22 GMT 2014

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

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