TreeRidget Custom Icon [message #534167] |
Tue, 18 May 2010 09:00 |
Eclipse User |
|
|
|
Originally posted by: matthias.rodler.gmx.net
Hi,
I'm currently using Riena 1.2.0.0 and want to use custom items with my
TreeRidget but I'm only able to use resources which are within the riena
client plugin(the keys are defined in
org.eclipse.riena.internal.ui.ridgets.swt.SharedImages).
Is there any possibility to use own resources or have I missed something?
Thanks.
Matthias
|
|
|
|
|
Re: TreeRidget Custom Icon [message #535636 is a reply to message #535026] |
Tue, 25 May 2010 04:47 |
Eclipse User |
|
|
|
Originally posted by: matthias.rodler.gmx.net
Thank you Elias I will try this way.
Matthias
Am 21.05.2010 08:42, schrieb Elias Volanakis:
> Hi Matthias,
>
> I believe your use case should work. See SnippetTreeRidget005 for a
> starting point.
>
> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.riena/o rg.eclipse.riena.sample.snippets/src/org/eclipse/riena/sampl e/snippets/SnippetTreeRidget005.java?root=RT_Project&vie w=co
>
>
> If the image is not in SharedImages the ImageStore is asked:
>
> Activator.getSharedImage(...) {
> // ...
> image = ImageStore.getInstance().getImage(imageKey);
> }
>
> I'm not an expert on ImageStore (maybe another developer can confirm
> this), but I believe you have to add the directory that has your the
> images to the plugin.xml:
>
> <extension
> point="org.eclipse.riena.ui.swt.imagePaths">
> <path
> path="icons">
> </path>
> </extension>
>
> Then you can use the imageName as a String value (file extension
> optional). This won't work in the Snippet, since there is no plugin.xml
> / ExtensionPoints in the snippets.
>
> If you run into problems, please attach a runnable example to bugzilla
> and I'll work this out with you.
>
> Elias.
|
|
|
|
|
Re: TreeRidget Custom Icon [message #585688 is a reply to message #585631] |
Tue, 25 May 2010 04:47 |
Eclipse User |
|
|
|
Originally posted by: matthias.rodler.gmx.net
Thank you Elias I will try this way.
Matthias
Am 21.05.2010 08:42, schrieb Elias Volanakis:
> Hi Matthias,
>
> I believe your use case should work. See SnippetTreeRidget005 for a
> starting point.
>
> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.riena/o rg.eclipse.riena.sample.snippets/src/org/eclipse/riena/sampl e/snippets/SnippetTreeRidget005.java?root=RT_Project&vie w=co
>
>
> If the image is not in SharedImages the ImageStore is asked:
>
> Activator.getSharedImage(...) {
> // ...
> image = ImageStore.getInstance().getImage(imageKey);
> }
>
> I'm not an expert on ImageStore (maybe another developer can confirm
> this), but I believe you have to add the directory that has your the
> images to the plugin.xml:
>
> <extension
> point="org.eclipse.riena.ui.swt.imagePaths">
> <path
> path="icons">
> </path>
> </extension>
>
> Then you can use the imageName as a String value (file extension
> optional). This won't work in the Snippet, since there is no plugin.xml
> / ExtensionPoints in the snippets.
>
> If you run into problems, please attach a runnable example to bugzilla
> and I'll work this out with you.
>
> Elias.
|
|
|
Powered by
FUDForum. Page generated in 0.02409 seconds