public class CommandExec
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
executeCommand(ICommand command,
org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain)
Execute a given command within the given
TransactionalEditingDomain.IMPORTANT: use this method only in situations in which you don't have an open diagram editor. |
static void |
executeFeatureWithContext(IFeature feature,
IContext context)
Execute feature with context.
IMPORTANT: use this method only in situations in which you don't have an open diagram editor. |
static CommandExec |
getSingleton()
Gets the singleton.
|
public boolean executeCommand(ICommand command, org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain)
TransactionalEditingDomain.IFeature.hasDoneChanges().command - the commandeditingDomain - the transactional editingDomainpublic static CommandExec getSingleton()
public static void executeFeatureWithContext(IFeature feature, IContext context)
IFeature.hasDoneChanges().feature - the featurecontext - the context