Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360511 - Avoid usage of XMIResource and GMFResource
Summary: Avoid usage of XMIResource and GMFResource
Status: RESOLVED FIXED
Alias: None
Product: GMF-Tooling
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.0RC2   Edit
Assignee: Svyatoslav Kovalsky CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 359633
  Show dependency tree
 
Reported: 2011-10-11 04:15 EDT by Mickael Istria CLA
Modified: 2012-06-01 08:27 EDT (History)
1 user (show)

See Also:
borlander: juno+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mickael Istria CLA 2011-10-11 04:15:39 EDT
It has been identified that integration with XText is difficult because of usage of XMIResource and GMFResource (extends XMIResource). It is also true in the cases when someone wants to use a XMLResource,
GMF Tooling should try to remove all these XMIResources and use the abstract Resource instead.
The resource type could be configured in tooling models (XML, XMI, XText...)
Comment 1 Mickael Istria CLA 2011-10-11 04:18:39 EDT
This is only necessary for the semantic model, the notation model does not need to be changed.
Comment 2 Michael Golubev CLA 2011-10-11 10:22:06 EDT
GMFResource is for semantic model, so I don't see why the knowledge that it is of specific type may hurt anyone. 

I know only a few hardcoded casts to XMIResource for semantic model and for now I don't see any reasons for this to be hardcoded. 

I have recently implemented a prototype that uses the very special resource implementation storing both semantic (xText) and diagram models in one xText+xml resource. I am not suggesting this approach obviuosly, this is just to confirm that generated GMFT diagram after just a few tweaks may work without a problems with different resource implementations. 

I think we will do that next M, will add the M information when I will have a rights to do that. 

Also, back to xText integration, I see a lot of not yet mentioned problems here, at the xText side, will comment on that at #359633.
Comment 3 Michael Golubev CLA 2011-10-11 10:22:57 EDT
(In reply to comment #2)
> GMFResource is for semantic model,

* sorry, obviously meant "notation model" not semantic
Comment 4 Michael Golubev CLA 2012-06-01 08:27:28 EDT
Just verified that in the RC2 code base, templates contain neither GMFResource not XMIResource'. Closing bugzilla.