Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » MDT (Model Development Tools) » emf creation command ?
emf creation command ? [message #597489] Wed, 11 March 2009 16:00
Sorin Fagateanu is currently offline Sorin FagateanuFriend
Messages: 46
Registered: July 2009

I have a problem finding an emf command for creating/instancing an object.

For example setting a property of an object I do it by using the
SetCommand like this: myClass = UMLFactory.eINSTANCE.createClass();

2.SetCommand.create(domain, myClass,
UMLPackage.eINSTANCE.getNamedElement_Name(), "TheName");

Are there such thing as a "CreateCommand" ?

My scope is to make a command that creates a Class within a Package,the
command to be undoable, and composed of basic emf commands.

Thanks in advance,
Previous Topic:[Announce] UML at EclipseCon 2009
Next Topic:emf creation command ?
Goto Forum:

Current Time: Sun Apr 18 00:42:58 GMT 2021

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

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

Back to the top