Package com._1c.g5.v8.dt.dcs.ui.util
Class DcsCommands
java.lang.Object
com._1c.g5.v8.dt.dcs.ui.util.DcsCommands
Commands executor for model objects that can be unbounded (copies in dialogs, collections of parameters, etc.)
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidadd(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Object value) Add single objectstatic voidadd(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Object value, int index) Add single objectstatic voidadd(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Collection<?> collection) Add multiple objectsstatic voidadd(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Collection<?> collection, int index) Add multiple objectsstatic voidmove(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, org.eclipse.emf.ecore.EObject element, int newIndex) Move objectstatic voidremove(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Object object) Remove single objectstatic voidremove(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Collection<?> collection) Remove multiple objectsstatic voidset(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Object value) Set object
-
Method Details
-
add
public static void add(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Object value) Add single object- Parameters:
editingContext- TODOowner- parent object, can't benullfeature- object feature, can't benullvalue- object value, can't benull
-
add
public static void add(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Object value, int index) Add single object- Parameters:
editingContext- TODOowner- parent object, can't benullfeature- object feature, can't benullvalue- object value, can't benullindex- index, (index >= 0 && index < size()) or -1 for adding in the end of collection
-
add
public static void add(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Collection<?> collection, int index) Add multiple objects- Parameters:
editingContext- TODOowner- parent object, can't benullfeature- object feature, can't benullcollection- objects collection, can't benullindex- index, (index >= 0 && index < size()) or -1 for adding in the end of collection
-
add
public static void add(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Collection<?> collection) Add multiple objects- Parameters:
editingContext- TODOowner- parent object, can't benullfeature- object feature, can't benullcollection- objects collection, can't benull
-
set
public static void set(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Object value) Set object- Parameters:
editingContext- the BM editing context, can't benullowner- parent object, can't benullfeature- object feature, can't benullvalue- object value, can't benull
-
remove
public static void remove(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Object object) Remove single object- Parameters:
editingContext- TODOowner- parent object, can't benullfeature- object feature, can't benullvalue- object value, can't benull
-
remove
public static void remove(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Collection<?> collection) Remove multiple objects- Parameters:
editingContext- TODOowner- parent object, can't benullfeature- object feature, can't benullcollection- objects collection, can't benull
-
move
public static void move(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, org.eclipse.emf.ecore.EObject element, int newIndex) Move object- Parameters:
editingContext- TODOowner- parent object, can't benullfeature- object feature, can't benullelement- object, can't benullnewIndex- new index in collection
-