public class BuildModelInstanceCommand
extends org.eclipse.core.commands.AbstractHandler
implements org.eclipse.core.commands.IHandler
Constructor and Description |
---|
BuildModelInstanceCommand() |
Modifier and Type | Method and Description |
---|---|
org.eclipse.uml2.uml.InstanceSpecification |
buildInstance(org.eclipse.uml2.uml.Class umlClass)
Prepares the package which will own the instances and create the instances for the given UML::Class and its internal structure, i.e.
|
java.lang.Object |
execute(org.eclipse.core.commands.ExecutionEvent event) |
static void |
mapStereotypesFromPropertyToInstance(org.eclipse.uml2.uml.Property property,
org.eclipse.uml2.uml.InstanceSpecification instance,
org.eclipse.uml2.uml.InstanceSpecification oldinstance)
Map stereotypes from property to instance.
|
addHandlerListener, dispose, isEnabled, isHandled, removeHandlerListener, setEnabled
public java.lang.Object execute(org.eclipse.core.commands.ExecutionEvent event) throws org.eclipse.core.commands.ExecutionException
execute
in interface org.eclipse.core.commands.IHandler
org.eclipse.core.commands.ExecutionException
public org.eclipse.uml2.uml.InstanceSpecification buildInstance(org.eclipse.uml2.uml.Class umlClass)
umlClass
- the Class for which the instance-level representation has to be createdpublic static void mapStereotypesFromPropertyToInstance(org.eclipse.uml2.uml.Property property, org.eclipse.uml2.uml.InstanceSpecification instance, org.eclipse.uml2.uml.InstanceSpecification oldinstance)
property
- the propertyinstance
- the instanceoldinstance
- the oldinstance