Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » loading resource without displaying it in editor
loading resource without displaying it in editor [message #418702] Thu, 24 April 2008 15:39 Go to next message
Bernd Mühlböck is currently offline Bernd MühlböckFriend
Messages: 46
Registered: July 2009
Member
I have to load a Resource into a ResourceSet in order to create elements
in the background.
How can I prohibit the editor to show it.

Thanks,
Bernd
Re: loading resource without displaying it in editor [message #418707 is a reply to message #418702] Thu, 24 April 2008 16:59 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Bernd,

Just do it. :-P If you invoke Generate Test Code and look at the
generated XyzExample.java, you'll see how resources are loaded and
saved. When running in the Eclipse environment, none of the
registration code in that example is necessary. You can just create a
resource set and load resources into it anywhere in your code...
Hmmm. But maybe you are doing it in the editor. You could load it into
a different resource set. It's not clear if the resource you're loading
is in any way related to what's going in the editor...


Bernd Mühlböck wrote:
> I have to load a Resource into a ResourceSet in order to create
> elements in the background.
> How can I prohibit the editor to show it.
>
> Thanks,
> Bernd


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Emfatic
Next Topic:Control deletion
Goto Forum:
  


Current Time: Thu Mar 28 08:48:59 GMT 2024

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

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

Back to the top