Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Load Resources at start up
Load Resources at start up [message #145091] Wed, 01 August 2007 13:31 Go to next message
Eclipse UserFriend
Originally posted by: prodanov.tk.informatik.tu-darmstadt.de

Hello everyone,

I'm on a problem with loading resources at the start up. actually I need
to create extra dynamic palette entries,which I want to load from another
model file. So for this purpose I need to load the File in the
PaletteFactory to create the entries. The "Load Resource..." functionality
from the right (mouse)button menu when on canvas of the diagram. But I
want it so, that when I open the diagram the resource would be there. I
need the code lines where actually the loading is done.
If anybody can help me, it will be great.

Cheers!

Martin
Re: Load Resources at start up [message #145097 is a reply to message #145091] Wed, 01 August 2007 13:37 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Martin,

Probably this is using
org.eclipse.emf.edit.ui.action.LoadResourceAction. All it does in the
end is

editingDomain.getResourceSet().getResource(uri, true);

Probably you should look at how your editor is using its IEditorInput to
load a resource during initialization and use the same technique to load
your additional resource as well...


Martin Prodanov wrote:
> Hello everyone,
>
> I'm on a problem with loading resources at the start up. actually I
> need to create extra dynamic palette entries,which I want to load from
> another model file. So for this purpose I need to load the File in the
> PaletteFactory to create the entries. The "Load Resource..."
> functionality from the right (mouse)button menu when on canvas of the
> diagram. But I want it so, that when I open the diagram the resource
> would be there. I need the code lines where actually the loading is
> done. If anybody can help me, it will be great.
>
> Cheers!
>
> Martin
>
Previous Topic:Popup dialog when deleting a view from diagram
Next Topic:Property Value should change automaticaly
Goto Forum:
  


Current Time: Tue Jul 22 03:24:22 EDT 2025

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

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

Back to the top