Skip to main content



      Home
Home » Eclipse Projects » GEF » Expand/Collapse Node Refresh Issue
Expand/Collapse Node Refresh Issue [message #175903] Wed, 06 April 2005 15:55 Go to next message
Eclipse UserFriend
Originally posted by: jduley.mail.arc.nasa.gov

Hi,
In my application (based on the schema editor example), nodes can be
expanded or collapsed. When I trigger a collapse, the figure does not
update until I move the node to a different location. The same issue
happens when I expand it back. Something is happening during the move
operation that is refreshing the node so that the correct state is shown
on the view. Any ideas as to why the node is not updated properly prior
to the move? Also, the outline view does in fact respond properly to
the expand/collapse. Thanks.
Jason
Re: Expand/Collapse Node Refresh Issue [message #176011 is a reply to message #175903] Thu, 07 April 2005 09:48 Go to previous messageGo to next message
Eclipse UserFriend
Jason,

When you move your EditPart - usually, you would call refreshVisuals(),
which in turn *changes the constraints* of your EditPart. As a result - the
Layout algorithm would redraw the figure by using the modifed constraints to
set the figures bounds.

Perhaps when you collapse / expand your node, you're missing the above
steps, maybe you're not firing a visual change.

Hope this helps,
Brian.

"Jason Duley" <jduley@mail.arc.nasa.gov> wrote in message
news:d31f3d$pgi$1@news.eclipse.org...
> Hi,
> In my application (based on the schema editor example), nodes can be
> expanded or collapsed. When I trigger a collapse, the figure does not
> update until I move the node to a different location. The same issue
> happens when I expand it back. Something is happening during the move
> operation that is refreshing the node so that the correct state is shown
> on the view. Any ideas as to why the node is not updated properly prior
> to the move? Also, the outline view does in fact respond properly to the
> expand/collapse. Thanks.
> Jason
Re: Expand/Collapse Node Refresh Issue [message #176039 is a reply to message #175903] Thu, 07 April 2005 10:29 Go to previous message
Eclipse UserFriend
You need to call revalidate().

"Jason Duley" <jduley@mail.arc.nasa.gov> wrote in message
news:d31f3d$pgi$1@news.eclipse.org...
> Hi,
> In my application (based on the schema editor example), nodes can be
> expanded or collapsed. When I trigger a collapse, the figure does not
> update until I move the node to a different location. The same issue
> happens when I expand it back. Something is happening during the move
> operation that is refreshing the node so that the correct state is shown
> on the view. Any ideas as to why the node is not updated properly prior
> to the move? Also, the outline view does in fact respond properly to
> the expand/collapse. Thanks.
> Jason
Previous Topic:Direct Editing label hides image during editing
Next Topic:Shared palette in MultiPageEditor
Goto Forum:
  


Current Time: Tue May 06 18:12:02 EDT 2025

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

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

Back to the top