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>()) {

@Override
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: Sun Oct 20 11:22:30 GMT 2019

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

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

Back to the top