Skip to main content

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:how can I use a dynamic EMF model as components in PaletteDrawer?
Next Topic:GEF Builds
Goto Forum:

Current Time: Thu Jun 21 18:15:14 GMT 2018

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

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

Back to the top