Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » TreeViewer inputChanged
TreeViewer inputChanged [message #327150] Fri, 11 April 2008 16:53
Eclipse UserFriend
Originally posted by: x_raajes.ugs.com

Is there a way for the TreeViewer to know when its input has changed (other
than from the content provider)?

I want my TreeViewer to re-evaluate the columns and add/remove new columns
based on the input that has been set. That input could be changed by, say,
doing a drill-down on one of the contents in the tree. However, I don't want
to use the inputChanged() of the content provider to do this
addition/removal of columns, since the content provider is a generic one and
used by other viewers also. I am not sure if I am missing something simple,
but is there a way I can add a listener on the TreeViewer that gets called
when the input has changed? I could then handle the columns inside that
listener.
Previous Topic:Problem with custom Ant Task inheriting from abstract Task located in different plug-in
Next Topic:How to define Eclipse editor size
Goto Forum:
  


Current Time: Sat Aug 17 06:43:59 GMT 2024

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

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

Back to the top