|  | 
|  | 
|  | 
|  | 
| 
| Re: Dynamic icons from file system in plugin [message #329698 is a reply to message #329129] | Tue, 01 July 2008 09:10  |  | 
| Eclipse User  |  |  |  |  | Sorry for my late answer. As usually, you were right, Ed ... 
 Thanks a lot.
 
 Loïc
 
 Ed Merks a écrit :
 > Loïc,
 >
 > Did you try what I suggested?  It's possible to step into the code to
 > see what's going on...   And besides, you said you saw a failure with
 > leads me to believe the failure wasn't silent and that there will be a
 > stack trace in your log...
 >
 > I thought the URI RFC only talked about the // segment representing the
 > authority...  I think different schemes can interpret the information
 > there how they like....
 >
 > (Please try to avoid doing a reply-all so I don't get direct notes to my
 > e-mail address.)
 >
 >
 > Loïc Quéran wrote:
 >> I want to integrate another tool with Eclipse. The other provides
 >> data, which contains paths to icons which must be displayed in an
 >> Eclipse TreeViewer.
 >>
 >> The correct url should be file://localhost/c:/myicon.gif. In W3C
 >> specs, it is written that localhost can be omitted.
 >>
 >> file://c:/myicon.gif works in Firefox, which changes it to
 >> file:///c:/myicon.gif which also works in Firefox.
 >>
 >> There is no stack trace because ImageDescriptor.getImageData() fails
 >> silently.
 >>
 >>
 >>
 >> Ed Merks a écrit :
 >>> Loïc,
 >>>
 >>> What you describe sounds like a really bad idea even if it works.
 >>> What does the stack trace look like?  If it's a failure in the
 >>> URL.openStream  itself I kind of doubt it's an Eclipse issue but more
 >>> fundamental.  I suspect that file:/c:/myicon.gif and
 >>> file://c:/myicon.gif are likely to work better...
 >>>
 >>>
 >>>
 >>> Loïc Quéran wrote:
 >>>> Can a plugin load icons/images from a URL such as
 >>>> "file:///c:/myicon.gif" ? The URL.openStream() fails in PDE with an
 >>>> UnkownHostException. The same code works in a simple, not plugin,
 >>>> java program.
 >>>>
 >>>> Any idea ?
 >>>>
 >>>> Loïc
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.03714 seconds