updating state-dependent figure [message #187751] |
Fri, 15 July 2005 04:30  |
Eclipse User |
|
|
|
I have a MyEditPart.createFigure() which returns a figure which depends
on the state of the model.
When the underlying state is changed (by a dialog) I want createFigure()
to be called again, and the new figure displayed.
I can force createFigure to be recalled by MyEditPart.setFigure(null).
createFigure() is indeed recalled, but the display is not updated.
What is the proper technique for forcing an update in such circumstances.
Many thanks,
Benedict
|
|
|
|
Re: updating state-dependent figure [message #187807 is a reply to message #187751] |
Fri, 15 July 2005 11:31  |
Eclipse User |
|
|
|
Originally posted by: none.unknown.com
In your createFigure() method, put the figure that you create in a figure
with a StackLayout and return that outer figure from that method. You can
then replace that inner figure.
This has been discussed several times on this newsgroup. So, if you want
details or examples, just search for it.
"benedict heal" <bh@benedictheal.com> wrote in message
news:db7s6i$k6j$1@news.eclipse.org...
> I have a MyEditPart.createFigure() which returns a figure which depends
> on the state of the model.
>
> When the underlying state is changed (by a dialog) I want createFigure()
> to be called again, and the new figure displayed.
>
> I can force createFigure to be recalled by MyEditPart.setFigure(null).
> createFigure() is indeed recalled, but the display is not updated.
>
> What is the proper technique for forcing an update in such circumstances.
>
> Many thanks,
> Benedict
|
|
|
Powered by
FUDForum. Page generated in 0.02515 seconds