Skip to main content



      Home
Home » Newcomers » Newcomers » drawing custom TreeViewer labels
drawing custom TreeViewer labels [message #126447] Wed, 28 December 2005 16:42 Go to next message
Eclipse UserFriend
Originally posted by: datatronics.verizon.net

in trying to implement my own
TreeViewer label provider

I would like to dynamically draw my own "images"

I know that I can implement:
IWorkbenchAdapter.getImageDescriptor()

such that I could obtain an image descriptor
for an already existing image, such as:
ImageDescriptor.createFromURL()

however I would like to create and draw my own
new instances of custom drawn icon type images

would anyone know if that is possible,
and if so, basically how to accomplish that?
Re: drawing custom TreeViewer labels [message #126762 is a reply to message #126447] Thu, 29 December 2005 19:22 Go to previous message
Eclipse UserFriend
Originally posted by: goy.21csi.com

http://www-128.ibm.com/developerworks/java/library/os-ecgui2 /
here is an artical about how to use an ImageRegistry and then how to use
that inside of a label provider. This should answer ur question. Hope it
works.


Chris

"Martin Michael Bernys" <datatronics@verizon.net> wrote in message
news:dov0oa$kga$1@utils.eclipse.org...
> in trying to implement my own
> TreeViewer label provider
>
> I would like to dynamically draw my own "images"
>
> I know that I can implement:
> IWorkbenchAdapter.getImageDescriptor()
>
> such that I could obtain an image descriptor
> for an already existing image, such as:
> ImageDescriptor.createFromURL()
>
> however I would like to create and draw my own
> new instances of custom drawn icon type images
>
> would anyone know if that is possible,
> and if so, basically how to accomplish that?
>
>
Previous Topic:Java 5.0 for Mac?????
Next Topic:how to inspect local variables?
Goto Forum:
  


Current Time: Fri Jul 18 04:21:15 EDT 2025

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

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

Back to the top