Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Getting the org.eclipse.emf.ecore.resource.Resource from the Active Editor
Getting the org.eclipse.emf.ecore.resource.Resource from the Active Editor [message #1268903] Tue, 11 March 2014 05:50 Go to next message
Mona Chawla is currently offline Mona ChawlaFriend
Messages: 3
Registered: March 2014
Junior Member
Hi,

I'm trying to get the org.eclipse.emf.ecore.resource.Resource from the active editor without reloading it. I neither have the editing domain nor the resource set, I want to fetch the existing rather than creating new instances.
I also have the org.eclipse.core.resources.IResource, hence the URI.

Any help for this, is highly appreciated.

Thanks in advance,
Mona
Re: Getting the org.eclipse.emf.ecore.resource.Resource from the Active Editor [message #1268937 is a reply to message #1268903] Tue, 11 March 2014 06:57 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Mona,

Generated editors implement IEditingDomainProvider so you can access the
editing domain this way and via the editing domain, the editor's resoure
set.

On 11/03/2014 6:50 AM, Mona Chawla wrote:
> Hi,
>
> I'm trying to get the org.eclipse.emf.ecore.resource.Resource from
> the active editor without reloading it. I neither have the editing
> domain nor the resource set, I want to fetch the existing rather than
> creating new instances.
> I also have the org.eclipse.core.resources.IResource, hence the URI.
> Any help for this, is highly appreciated.
>
> Thanks in advance,
> Mona
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Loading a model from XMI into an already existing object
Next Topic:XMLResource Save Problem
Goto Forum:
  


Current Time: Sat Apr 20 02:21:35 GMT 2024

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

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

Back to the top