Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Filter items in the outline view
Filter items in the outline view [message #222674] Thu, 07 September 2006 05:07
Eclipse User
Originally posted by: prashanto.chatterjee.softwareag.com

Hi,
I have an editor and have it hooked to the outline view. I have an overall
tree-model. So, I am allowed to add a child at a certain index position
which represents a position within the tree.

Now, I wish to filter out the items that I feel are not required in the
outline view.

I have tried to implement this by overiding the getModelChildren() method
in the corresponding AbstractTreeEditPart class. This seems to work fine
apart from the fact that when I add a child at a certain index position
(in my backend model) the same is added at the same index in the outline
and I get an IndexOutOfBoundException which is very much valid. I may
consider trying to write some complicated logic to calculate the proper
index in the outline tree.

However, what I need to know is that whether there is a way to hide the
unwanted items in the outline view without writing any complicated index
calculations?

Thanking you in anticipation,
Prashanto Chatterjee
Previous Topic:Connection label translation problem
Next Topic:Create Figures within figures like logic Example
Goto Forum:
  


Current Time: Thu Jul 24 19:03:05 EDT 2014

Powered by FUDForum. Page generated in 0.02525 seconds