IFigure.validate(), invalidate(), revalidate(), setValid() [message #160624] |
Mon, 06 December 2004 13:54  |
Eclipse User |
|
|
|
Hi all,
While the javadoc is extremely helpful in explaining these methods (e.g.
"validate() - validates the figure"), I'm still totally perplexed as to what
they do, why they do it and when they are/should be called from GEF. Can
someone explain the inner workings of these things?
The problem I'm encountering is that the child figure visuals are not being
updated when I add a child editpart to a container editpart, but the child
visuals *are* updated as soon as I select one of the other child figures on
the diagram.
Thanks!
Bob
|
|
|
|
Re: IFigure.validate(), invalidate(), revalidate(), setValid() [message #160661 is a reply to message #160624] |
Mon, 06 December 2004 15:06  |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
Note that none of these methods causes repainting directly. When the parent
moves the figure, it should get repainted in its new location. But often it
is correct to call revalidate() and repaint(). See Label.setText for an
example.
"Bob Brodt" <rbrodt@adelphia.net> wrote in message
news:cp29ti$jan$1@www.eclipse.org...
> Hi all,
>
> While the javadoc is extremely helpful in explaining these methods (e.g.
> "validate() - validates the figure"), I'm still totally perplexed as to
what
> they do, why they do it and when they are/should be called from GEF. Can
> someone explain the inner workings of these things?
>
> The problem I'm encountering is that the child figure visuals are not
being
> updated when I add a child editpart to a container editpart, but the child
> visuals *are* updated as soon as I select one of the other child figures
on
> the diagram.
>
> Thanks!
>
> Bob
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03286 seconds