Skip to main content



      Home
Home » Modeling » EMF » How to use getResourceLocator().getImage to get image by absolute path
How to use getResourceLocator().getImage to get image by absolute path [message #891848] Tue, 26 June 2012 05:36 Go to next message
Eclipse UserFriend
Hi All,

I'm having the issue of using getResourceLocator().getImage in edit plugin

I want to locate image that isn't in the eclipse workspace.
and the image in another windows partition. ex: G:/image.bmp
How can I do that ?


Thanks
Re: How to use getResourceLocator().getImage to get image by absolute path [message #891867 is a reply to message #891848] Tue, 26 June 2012 07:32 Go to previous messageGo to next message
Eclipse UserFriend
Beck,

If you have an absolute path you can create a file: URL from it so you
don't need to use the resource locator in that case...

On 26/06/2012 11:36 AM, becks m wrote:
> Hi All,
>
> I'm having the issue of using getResourceLocator().getImage in edit
> plugin
>
> I want to locate image that isn't in the eclipse workspace.
> and the image in another windows partition. ex: G:/image.bmp
> How can I do that ?
>
>
> Thanks
Re: How to use getResourceLocator().getImage to get image by absolute path [message #892117 is a reply to message #891867] Wed, 27 June 2012 03:08 Go to previous message
Eclipse UserFriend
Ed Merks wrote on Tue, 26 June 2012 07:32
Beck,

If you have an absolute path you can create a file: URL from it so you
don't need to use the resource locator in that case...

On 26/06/2012 11:36 AM, becks m wrote:
> Hi All,
>
> I'm having the issue of using getResourceLocator().getImage in edit
> plugin
>
> I want to locate image that isn't in the eclipse workspace.
> and the image in another windows partition. ex: G:/image.bmp
> How can I do that ?
>
>
> Thanks



Thanks Ed for your response again Smile,

I've tried getImage(URL) directly as

getImage("file://G:/image.bmp" );

but I get this error
An error has occurred. See error log for more details.
The image resource 'file://G:/word.bmp' could not be located

also, it gives me the same error when I use getImage("file:\\\\G:\image.bmp" );


Am I missing something ?

Previous Topic:EMap and resolved keys
Next Topic:CDO Dawn problem
Goto Forum:
  


Current Time: Sat Jul 12 23:09:11 EDT 2025

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

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

Back to the top