|
Re: How to load icons? [message #630703 is a reply to message #630671] |
Mon, 04 October 2010 15:40 |
Eclipse User |
|
|
|
Originally posted by: mluchian.interpro.qc.ca
Hi,
Assuming you are using Eclipse 3.4, 3.5 or 3.6, you can use
WindowbuilderPro GUI builder that is now part of the open source
community and downloadable for free at:
http://code.google.com/webtoolkit/tools/download-wbpro.html
I does also generates some helper classes (SWTResourceManager,
ResourceManager) when you build a View, Editor, Composite, etc and try
to add an external resource such as an icon to a widget. It's these
classes that will be of interest to you.
Mircea
On 4/10/2010 10:16, Thomas wrote:
> hi, i defined my own icons and i want to use them in my
> rcp-application in a tree view.
>
> (ProjectStructure)
>
> -xxxProject
> --src
> --icons
> ---icons
> ----myicon.png (this icon)
>
> when i try to load them in:
>
> File f = new File("icons/icons/myicon.png");
> if(!f.exists()){
> System.out.println("doNotExist");
> }
> else{
> System.out.println("doExist");
> }
>
> File f do always not exist. Whats the Relative Path of my icon?
>
> thanks
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03485 seconds