Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » GEF finished drawing ????
GEF finished drawing ???? [message #165883] Thu, 27 January 2005 11:30 Go to next message
Eclipse UserFriend
Originally posted by: wjancz.\/\/asko.pl(change \/\/ with w)

Hi, is there any possibility to know when GEF finished drawing my model ???
scenario #1:
1) I am opening an editor with some input :
page.openEditor(input, editorId);
2) after this I am sure that my input is drawed on editor

scenarion #2:
1) I have opened editor already, I am changing its input:
page.getActiveEditor().setInput(input);
2) how to be sure that GEF finished drawing my input ?

When I am getting a "screenshot" of editor in first scenario - I have image
with everything of my model,
doing the same in second scenarion - there are no all of my elements on
image....

Please help me to know when the editor is drawed.

Sory for my english :)

--

========================
Wojciech Jancz
Programista

Zak
Re: GEF finished drawing ???? [message #165937 is a reply to message #165883] Thu, 27 January 2005 16:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Painting is done lazily. If you want to force it to happen, call
EditPartViewer.flush().

"WojT" <wjancz@\/\/asko.pl(change \/\/ with w)> wrote in message
news:ctajd3$vba$1@www.eclipse.org...
> Hi, is there any possibility to know when GEF finished drawing my model
> ???
> scenario #1:
> 1) I am opening an editor with some input :
> page.openEditor(input, editorId);
> 2) after this I am sure that my input is drawed on editor
>
> scenarion #2:
> 1) I have opened editor already, I am changing its input:
> page.getActiveEditor().setInput(input);
> 2) how to be sure that GEF finished drawing my input ?
>
> When I am getting a "screenshot" of editor in first scenario - I have
> image
> with everything of my model,
> doing the same in second scenarion - there are no all of my elements on
> image....
>
> Please help me to know when the editor is drawed.
>
> Sory for my english :)
>
> --
>
> ========================
> Wojciech Jancz
> Programista
>
> Zak
Re: GEF finished drawing ???? [message #166071 is a reply to message #165937] Fri, 28 January 2005 07:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wjancz.\/\/asko.pl(change \/\/ with w)

> Painting is done lazily. If you want to force it to happen, call
> EditPartViewer.flush().

Geeezzz.. that was very simple...
I spent three days looking for solution.. :)
Thank You very much.

...::WojT::..
Re: GEF finished drawing ???? [message #166102 is a reply to message #166071] Fri, 28 January 2005 16:30 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

If you invoke call hierarchy on IFigure.paint(), you can trace back to this
method in just 3 steps: repairDamage, performUpdate, EditPartViewer#flush.

"WojT" <wjancz@\/\/asko.pl(change \/\/ with w)> wrote in message
news:ctcqev$eq6$1@www.eclipse.org...
>> Painting is done lazily. If you want to force it to happen, call
>> EditPartViewer.flush().
>
> Geeezzz.. that was very simple...
> I spent three days looking for solution.. :)
> Thank You very much.
>
> ..::WojT::..
>
>
Previous Topic:Another question - r u tired of me :)) ?
Next Topic:Complex SnapTo problem
Goto Forum:
  


Current Time: Sat Dec 21 14:14:06 GMT 2024

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

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

Back to the top