|
Re: Creating EditParts and Figures outside the SWT Thread [message #167864 is a reply to message #167787] |
Fri, 11 February 2005 16:56 |
Eclipse User |
|
|
|
Originally posted by: Lamont_Gilbert.rigidsoftware.com
Nick Lerissa wrote:
> We are creating a graphical editor using GEF. Unfortunately the creation of
> the EditParts,
> IFigures and the layout code takes a long time (~30 seconds). Does GEF
> support putting
> up some loading message or icon in the middle of the FigureCanvas while
> loading and laying-out a model
> off of the SWT thread? The purpose of doing this is to allow users to switch
> to
> other files will our model is being loaded. Is this possible?
>
>
I don't think GEF has any facilities in place for this specifically.
You can have your EditPart return a 'wait' figure as its figure while
you are loading the true stuff. Then when its loaded, fire an event
that causes your editpart to update its figure to the true figure.
So simply swap out the figures when you have the real one prepared.
CL
|
|
|
Re: Creating EditParts and Figures outside the SWT Thread [message #168030 is a reply to message #167787] |
Mon, 14 February 2005 01:13 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
Why does it take 30 seconds? Is it GEF, or just loading the file that is
the problem.
You can create UI jobs which communicate with the main thread. You can also
invoke Display.asyncExec to access the correct thread.
What are you doing during this 30 seconds? I may have some more ideas.
"Nick Lerissa" <nick_lerissa@yahoo.com> escreveu na mensagem
news:cuh00q$37m$1@www.eclipse.org...
>
> We are creating a graphical editor using GEF. Unfortunately the creation
> of the EditParts,
> IFigures and the layout code takes a long time (~30 seconds). Does GEF
> support putting
> up some loading message or icon in the middle of the FigureCanvas while
> loading and laying-out a model
> off of the SWT thread? The purpose of doing this is to allow users to
> switch to
> other files will our model is being loaded. Is this possible?
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.04866 seconds