Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Get the TreeViewers expand-collapse icons
Get the TreeViewers expand-collapse icons [message #559587] Fri, 17 September 2010 10:01 Go to next message
Petr Osipov is currently offline Petr OsipovFriend
Messages: 4
Registered: February 2010
Junior Member
Hey

I have a quite specific browser like component based in SWT, which has the expand/collapse functionality like the TreeViewer. The TreeViewer uses the system specific icons for that (triangles on linux, pluses on windows... etc), and I also want to do this, to keep up the consistency in UI. Could anyone help me to find a way to get these icons from the system?

Cheers
Petr

Re: Get the TreeViewers expand-collapse icons [message #634163 is a reply to message #559587] Wed, 20 October 2010 16:23 Go to previous message
Federico Gaule is currently offline Federico GauleFriend
Messages: 21
Registered: September 2010
Location: Buenos Aires, Argentina
Junior Member

Hi.

Here you have: ISharedImages.MG_ELCL_COLLAPSEALL

And you have yo use it like this:

ISharedImages sharedImages = Activator.getDefault().getWorkbench().getSharedImages();

sharedImages.getImageDescriptor(ISharedImages.MG_ELCL_COLLAP SEALL)

Regards
Previous Topic:JFace Text editor for a file without extension
Next Topic:Google Relaunches Instantiations Developer Tools
Goto Forum:
  


Current Time: Fri May 10 06:46:12 GMT 2024

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

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

Back to the top