Package com._1c.g5.v8.dt.core
Class V8Commands
- java.lang.Object
-
- com._1c.g5.v8.dt.core.V8Commands
-
public final class V8Commands extends Object
Utility class that simplifies common editing operations onEObject
s.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
V8Commands.CompoundV8Command
static class
V8Commands.NoTransactionEditingContext
SpecialIBmEditingContext
for executeBmCompoundTask
andV8Commands.EmfCommandBmTask
withoutIBmTransaction
static class
V8Commands.ReadOnlyEditingContextWrapper
Special wrapper around theIBmLocalEditingContext
which notifies the V8Commands infrastructure that change commands should be omitted in order to simulate the read-only behavior of editors.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static V8Commands.CompoundV8Command
createCompoundCommand()
static void
executeAdd(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Object value)
static void
executeAdd(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Object value, int index)
static void
executeAdd(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Collection<?> collection)
static void
executeAdd(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Collection<?> collection, int index)
static void
executeMove(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EObject element, int newIndex, org.eclipse.emf.ecore.EStructuralFeature feature)
static void
executeRemove(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Object object)
static void
executeRemove(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Collection<?> collection)
static void
executeSet(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Object value)
static void
executeSet(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Object value, int index)
-
-
-
Method Detail
-
executeSet
public static void executeSet(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Object value)
-
executeSet
public static void executeSet(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Object value, int index)
-
executeAdd
public static void executeAdd(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Object value)
-
executeAdd
public static void executeAdd(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Collection<?> collection)
-
executeAdd
public static void executeAdd(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Collection<?> collection, int index)
-
executeAdd
public static void executeAdd(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Object value, int index)
-
executeRemove
public static void executeRemove(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Object object)
-
executeRemove
public static void executeRemove(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Collection<?> collection)
-
executeMove
public static void executeMove(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EObject element, int newIndex, org.eclipse.emf.ecore.EStructuralFeature feature)
-
createCompoundCommand
public static V8Commands.CompoundV8Command createCompoundCommand()
-
-