Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » how to make TreeViewer Readable
how to make TreeViewer Readable [message #645738] Mon, 20 December 2010 10:24 Go to next message
raj is currently offline raj
Messages: 19
Registered: January 2010
Location: hyderabad
Junior Member

HI .
I am using org.eclipse.jface.viewers.TreeViewer in my project .
i want to make TreeViewer inactive so that it don't have option to select or close ....
TreeViewer should be used only for display the Elements.



Thanks and Regards,
Raj
Re: how to make TreeViewer Readable [message #645781 is a reply to message #645738] Mon, 20 December 2010 15:08 Go to previous messageGo to next message
Vincenzo Caselli is currently offline Vincenzo Caselli
Messages: 51
Registered: July 2009
Member
Hi Raj,
put your TreeViewer into a Composite and do a:
.setEnabled(false);


Cheers

Vincenzo Caselli
RCP Vision
Re: how to make TreeViewer Readable [message #645931 is a reply to message #645781] Tue, 21 December 2010 09:08 Go to previous message
raj is currently offline raj
Messages: 19
Registered: January 2010
Location: hyderabad
Junior Member

Thanks Vincenzo ... it is working for me Embarrassed
Previous Topic:Add coolbar to the status line
Next Topic:Reusing existing decorators in my TreeViewer
Goto Forum:
  


Current Time: Fri Oct 31 07:12:27 GMT 2014

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

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