Package com._1c.g5.v8.dt.dcs.ui.util
Class DcsCommands
- java.lang.Object
-
- com._1c.g5.v8.dt.dcs.ui.util.DcsCommands
-
public class DcsCommands extends Object
Commands executor for model objects that can be unbounded (copies in dialogs, collections of parameters, etc.)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
add(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Object value)
Add single objectstatic void
add(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Object value, int index)
Add single objectstatic void
add(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Collection<?> collection)
Add multiple objectsstatic void
add(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Collection<?> collection, int index)
Add multiple objectsstatic 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 objectstatic void
remove(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Object object)
Remove single objectstatic void
remove(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Collection<?> collection)
Remove multiple objectsstatic void
set(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Object value)
Set object
-
-
-
Method Detail
-
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 benull
feature
- object feature, can't benull
value
- 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 benull
feature
- object feature, can't benull
value
- object value, can't benull
index
- 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 benull
feature
- object feature, can't benull
collection
- objects collection, can't benull
index
- 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 benull
feature
- object feature, can't benull
collection
- 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 benull
owner
- parent object, can't benull
feature
- object feature, can't benull
value
- 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 benull
feature
- object feature, can't benull
value
- 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 benull
feature
- object feature, can't benull
collection
- 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 benull
feature
- object feature, can't benull
element
- object, can't benull
newIndex
- new index in collection
-
-