Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Expand/Collapse Node Refresh Issue
Expand/Collapse Node Refresh Issue [message #175903] Wed, 06 April 2005 19: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 13:48 Go to previous messageGo to next message
Brian Fernandes is currently offline Brian FernandesFriend
Messages: 68
Registered: July 2009
Member
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 14:29 Go to previous message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
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: Sat Feb 04 03:45:50 GMT 2023

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

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

Back to the top