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 09:07
Eclipse UserFriend
Originally posted by:

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

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: Sat Jan 21 20:13:29 GMT 2017

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

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