Expand/Collapse Node Refresh Issue [message #175903] |
Wed, 06 April 2005 19:55 |
Eclipse User |
|
|
|
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 |
Brian Fernandes 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
|
|
|
|
Powered by
FUDForum. Page generated in 0.04623 seconds