Skip to main content



      Home
Home » Eclipse Projects » GEF » Filtering GEF Outline view
Filtering GEF Outline view [message #90431] Tue, 12 August 2003 09:25 Go to next message
Eclipse UserFriend
Originally posted by: iain_dot_hull.s1.com

I am quite new to Eclipse and GEF development.

I am following the GEF logic example to implement a Workflow Editor. I have
the basic features working with my model: GEF Editor with pallette and
Synchronized outline view.

My node model has different types of children. I would like to filter which
of these children get displayed in the Outline View, similar to the the Java
Editor Outline View. I have added the actions etc to do this but I am
stumped on the implemenation.

My basic plan for the filter action is :
* Set a filter flag.
* Refresh the root edit part.
* Node edit part reads flags and only returns requested children.

Is this the correct approach?
If so where should I store the flag? (in my OutlinePage implementation or in
a new view specific model)
How should the node edit part access this flag?

I have looked through the EditPart and EditPartViewer and ContentOutlinePage
and there doesn't seam to be an easy way for the editpart to access a flag
set by the ContentOutlinePage.

Any help or suggestions greatly apprecieated.

Iain.
Re: Filtering GEF Outline view [message #90477 is a reply to message #90431] Tue, 12 August 2003 10:08 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

For the next release we would like to add the concept of viewer attributes,
to which editparts could listen.

For now, you could create a NotifyingFlag class which supports listeners.
Then, you could add it to the Viewer's EditPartRegistry using some unique
key. Any editpart which need to observe the flag could obtain it from the
editpartregistry during their activate() method.

"Iain Hull" <iain_dot_hull@s1.com> wrote in message
news:bhapr2$3gp$1@eclipse.org...
> I am quite new to Eclipse and GEF development.
>
> I am following the GEF logic example to implement a Workflow Editor. I
have
> the basic features working with my model: GEF Editor with pallette and
> Synchronized outline view.
>
> My node model has different types of children. I would like to filter
which
> of these children get displayed in the Outline View, similar to the the
Java
> Editor Outline View. I have added the actions etc to do this but I am
> stumped on the implemenation.
>
> My basic plan for the filter action is :
> * Set a filter flag.
> * Refresh the root edit part.
> * Node edit part reads flags and only returns requested children.
>
> Is this the correct approach?
> If so where should I store the flag? (in my OutlinePage implementation or
in
> a new view specific model)
> How should the node edit part access this flag?
>
> I have looked through the EditPart and EditPartViewer and
ContentOutlinePage
> and there doesn't seam to be an easy way for the editpart to access a flag
> set by the ContentOutlinePage.
>
> Any help or suggestions greatly apprecieated.
>
> Iain.
>
>
Previous Topic:using Draw2d within a Text Editor
Next Topic:Adding Zoom Levels
Goto Forum:
  


Current Time: Sat Jun 21 01:53:32 EDT 2025

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

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

Back to the top