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 Fagateanu
Messages: 46
Registered: July 2009
Member
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.
Previous Topic:[Announce] UML at EclipseCon 2009
Next Topic:emf creation command ?
Goto Forum:
  


Current Time: Thu Oct 23 11:50:14 GMT 2014

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

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