| Load Resources at start up [message #145091] | 
Wed, 01 August 2007 13:31   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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 
>
 |  
 |  
  | 
Powered by 
FUDForum. Page generated in 0.04041 seconds