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: 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: Tue Mar 19 04:41:13 GMT 2024

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

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

Back to the top