Class CommandFactory
java.lang.Object
com.amalgamasimulation.desktop.ui.editor.commands.CommandFactory
- All Implemented Interfaces:
ICommandFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends org.eclipse.emf.ecore.EObject>
com.amalgamasimulation.emf.commands.AddCommand<T> copy
(T object, int injectionIndex, boolean copyReferences, boolean execute) <C extends org.eclipse.emf.ecore.EObject,
T extends org.eclipse.emf.ecore.EObject>
com.amalgamasimulation.emf.commands.AddCommand<T> <C extends org.eclipse.emf.ecore.EObject,
T extends org.eclipse.emf.ecore.EObject>
com.amalgamasimulation.emf.commands.AddCommand<T> org.eclipse.emf.ecore.util.ECrossReferenceAdapter
<T extends org.eclipse.emf.ecore.EObject>
com.amalgamasimulation.emf.commands.RemoveCommand<T> remove
(T object, boolean executeImmediately) void
setCrossReferenceAdapter
(org.eclipse.emf.ecore.util.ECrossReferenceAdapter crossReferenceAdapter)
-
Constructor Details
-
CommandFactory
public CommandFactory()
-
-
Method Details
-
create
public <C extends org.eclipse.emf.ecore.EObject,T extends org.eclipse.emf.ecore.EObject> com.amalgamasimulation.emf.commands.AddCommand<T> create(C container, String patternId, Supplier<T> creator, boolean execute) - Specified by:
create
in interfaceICommandFactory
-
create
public <C extends org.eclipse.emf.ecore.EObject,T extends org.eclipse.emf.ecore.EObject> com.amalgamasimulation.emf.commands.AddCommand<T> create(C container, Supplier<T> creator, boolean executeImmediately) - Specified by:
create
in interfaceICommandFactory
-
remove
public <T extends org.eclipse.emf.ecore.EObject> com.amalgamasimulation.emf.commands.RemoveCommand<T> remove(T object, boolean executeImmediately) - Specified by:
remove
in interfaceICommandFactory
-
copy
public <T extends org.eclipse.emf.ecore.EObject> com.amalgamasimulation.emf.commands.AddCommand<T> copy(T object, int injectionIndex, boolean copyReferences, boolean execute) - Specified by:
copy
in interfaceICommandFactory
-
getCrossReferenceAdapter
public org.eclipse.emf.ecore.util.ECrossReferenceAdapter getCrossReferenceAdapter()- Specified by:
getCrossReferenceAdapter
in interfaceICommandFactory
-
setCrossReferenceAdapter
public void setCrossReferenceAdapter(org.eclipse.emf.ecore.util.ECrossReferenceAdapter crossReferenceAdapter) - Specified by:
setCrossReferenceAdapter
in interfaceICommandFactory
-