Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Eclipse Startup
Eclipse Startup [message #489595] Mon, 05 October 2009 07:50 Go to next message
Romain Bioteau is currently offline Romain BioteauFriend
Messages: 65
Registered: August 2009
Location: Grenoble
Member
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


R&D Engineer at BonitaSoft
Re: Eclipse Startup [message #490621 is a reply to message #489595] Fri, 09 October 2009 12:46 Go to previous messageGo to next message
Alex Shatalin is currently offline Alex ShatalinFriend
Messages: 141
Registered: July 2009
Senior Member
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 16:56 Go to previous messageGo to next message
Romain Bioteau is currently offline Romain BioteauFriend
Messages: 65
Registered: August 2009
Location: Grenoble
Member
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


R&D Engineer at BonitaSoft
Re: Eclipse Startup [message #495047 is a reply to message #492267] Tue, 03 November 2009 16:06 Go to previous message
Alex Shatalin is currently offline Alex ShatalinFriend
Messages: 141
Registered: July 2009
Senior Member
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: Tue Sep 24 16:57:38 GMT 2024

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

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

Back to the top