Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Eclipse Startup
Eclipse Startup [message #489595] Mon, 05 October 2009 03:50 Go to next message
Eclipse UserFriend
Hi,
I have a RCP application which uses a GMF diagram. I have an annoying
waiting time when I create the first diagram.
I would like to know how to preload my plugins at startup to avoid this
loading time.

I have already try to implement the IStartup interface and all but I
don't succeed to have the expected behavior.

Thanks for your help.
Romain
Re: Eclipse Startup [message #490621 is a reply to message #489595] Fri, 09 October 2009 08:46 Go to previous messageGo to next message
Eclipse UserFriend
Hello Romain,

I think. the problem is: you are loading/activating all the plugins on startup,
but in addition you have to load/initialize all the registries used across
these plugins. In other words, simply activating the plugin on startup will
not help you.. AFAIK there is not easy way to perform full initialization
of GMF plugins on startup by default.. I can suggest you creating new diagram
headlessly to warm it up..

-----------------
Alex Shatalin
Re: Eclipse Startup [message #492267 is a reply to message #490621] Mon, 19 October 2009 12:56 Go to previous messageGo to next message
Eclipse UserFriend
Alex Shatalin wrote:
>I can suggest you creating new diagram headlessly to warm it up..

I've try this solution but I didn't succeed to do it.
What kind of operation could be called and when ?

Thanks for the help.
Romain
Re: Eclipse Startup [message #495047 is a reply to message #492267] Tue, 03 November 2009 11:06 Go to previous message
Eclipse UserFriend
Hello Romain,

> I've try this solution but I didn't succeed to do it. What kind of
> operation could be called and when ?
I think you have to create instance of IDiagramGraphicalViewer and let it
display a diagram (without drawing anything on a display itself).
You can use org.eclipse.gmf.tests/org.eclipse.gmf.tests.setup.RuntimeBas edGeneratorConfiguration.FakeViewer
as an example.

-----------------
Alex Shatalin
Previous Topic:Reference between elements in different diagrams
Next Topic:dynamic behavior
Goto Forum:
  


Current Time: Sat Jul 12 20:54:47 EDT 2025

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

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

Back to the top