Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » (no subject)
(no subject) [message #687298] Fri, 27 May 2011 13:50
h1055071 is currently offline h1055071Friend
Messages: 335
Registered: July 2009
Senior Member
In the end I did this in my ResourceFactory:

ExtendedMetaData ext = new BasicExtendedMetaData(ExtendedMetaData.ANNOTATION_URI,
EPackage.Registry.INSTANCE, new HashMap<EModelElement, EAnnotation>()) {

public EClassifier getType(EPackage ePackage, String name) {
* Backwards compatibility for the old "DiagramModel" type
if("DiagramModel".equals(name)) {
return IArchimatePackage.Literals.ARCHIMATE_DIAGRAM_MODEL;
return super.getType(ePackage, name);

It works.
Previous Topic:Best practice for changing EClass to abstract
Next Topic:(no subject)
Goto Forum:

Current Time: Mon May 25 08:54:51 GMT 2020

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

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

Back to the top