[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.mdt] emf creation command ?
|
- From: cyron_16@xxxxxxxxx (Sorin Fagateanu)
- Date: Wed, 11 Mar 2009 16:00:59 +0000 (UTC)
- Newsgroups: eclipse.modeling.mdt
- Organization: Eclipse
- User-agent: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
Hello,
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:
1.org.eclipse.uml2.uml.Class 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,
Sorin.