Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsFilter items in the outline view
https://www.eclipse.org/forums/index.php/mv/msg/71224/222674/#msg_222674
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]]>2006-09-07T09:07:40-00:00