Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 358199 - [EWL] GMF integration should expose variable for referring to GMF notation model
Summary: [EWL] GMF integration should expose variable for referring to GMF notation model
Status: CLOSED FIXED
Alias: None
Product: Epsilon
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Antonio Garcia-Dominguez CLA
QA Contact:
URL:
Whiteboard: interim
Keywords:
: 325160 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-09-20 04:25 EDT by Louis Rose CLA
Modified: 2014-08-27 04:24 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Louis Rose CLA 2011-09-20 04:25:35 EDT
There's currently no way to access the GMF notation model from an EWL wizard that has been invoked from a diagram.
Comment 1 Antonio Garcia-Dominguez CLA 2013-10-12 05:11:48 EDT
*** Bug 325160 has been marked as a duplicate of this bug. ***
Comment 2 Antonio Garcia-Dominguez CLA 2013-10-12 06:55:00 EDT
Fixed in SVN r2420, in a somewhat roundabout way.

Many EMF model editors (such as the ones generated by GMF) use an EditingDomain that inherits from the EMF AdapterFactoryEditingDomain, which stores the ResourceSet being edited.

Therefore, we can do a checked downcast of the EditingDomain and expose the Resource objects different from the "Model" one as additional in-memory EMF models.

I've decided to name each of these additional models from their file extension. For instance, a ".spdiag" resource will be exposed as "Spdiag". If we have more than one ".spdiag" resource, the second one will be "Spdiag2" and so on.

I'll revise the examples a bit now.
Comment 3 Antonio Garcia-Dominguez CLA 2013-10-12 10:41:41 EDT
I've extended the .ewl file for the flowchart example so it includes several wizards that change the notation model:

http://dev.eclipse.org/svnroot/modeling/org.eclipse.epsilon/trunk/examples/org.eclipse.epsilon.eugenia.examples.flowchart.extensions/flowchart.ewl
Comment 4 Dimitris Kolovos CLA 2013-11-12 17:36:06 EST
Fixed in the latest interim version.
Comment 5 Dimitris Kolovos CLA 2014-08-27 04:24:27 EDT
Fixed in version 1.2.