Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsEcore Model Editor help
https://www.eclipse.org/forums/index.php/mv/msg/1097555/1802626/#msg_1802626
1. I have right clicked the Sample Ecore Model Editor and selected "Load Resource..." I've loaded several resources while trying to solve problem #2. How do I unload these resources? I have searched the source for the .ecore file and the .genmodel file and can't find any mention of the resources I've loaded. However, when I close and reopen the ecore file, there they are. How do I remove resources I don't need?
2. I want one of my generated EClasses to inherit from org.eclipse.emf.common.notify.Adapter so that I can add it to another EObject's eAdapters collection. What resource do I need to load to put Adapter in the scope necessary to add it to the list of my EClass' ESuper Types.
Thanks for the help!]]>Ken Keefe2019-02-12T23:26:37-00:00Re: Ecore Model Editor help
https://www.eclipse.org/forums/index.php/mv/msg/1097555/1802673/#msg_1802673
1. Referenced resources will perist, so you need to remove your experimental references. Sometimes I find it easier to edit the XMI with a text editor and delete XML elements there.
2. There is no Resource with an Adapter, since it is a Java class. You can reference any Java class by defining an EClass and specifying its instanceClassName. Or you manually annotate the generated Java with an @extends. Adding an EObject as an eAdapter seems like a really bad idea. I suggest a rethink, perhaps using a regular reference.
Regards
Ed Willink]]>Ed Willink2019-02-13T18:18:10-00:00Re: Ecore Model Editor help
https://www.eclipse.org/forums/index.php/mv/msg/1097555/1802681/#msg_1802681
Quote:
1. Referenced resources will perist, so you need to remove your experimental references.
But, how do I do that? For example, I loaded platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore. When I search the XMI contained in my ecore model, I cannot find anything containing "emf.ecore." There must be some other place that Eclipse stores which resources have been loaded into the .ecore model.
]]>Ken Keefe2019-02-13T22:21:15-00:00Re: Ecore Model Editor help
https://www.eclipse.org/forums/index.php/mv/msg/1097555/1802682/#msg_1802682
]]>Ken Keefe2019-02-13T22:27:24-00:00