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

    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 object
    static void
    add(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Object value, int index)
    Add single object
    static void
    add(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Collection<?> collection)
    Add multiple objects
    static void
    add(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Collection<?> collection, int index)
    Add multiple objects
    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
    static void
    remove(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Object object)
    Remove single object
    static void
    remove(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Collection<?> collection)
    Remove multiple objects
    static void
    set(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Object value)
    Set object

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 - TODO
      owner - parent object, can't be null
      feature - object feature, can't be null
      value - object value, can't be null
    • 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 - TODO
      owner - parent object, can't be null
      feature - object feature, can't be null
      value - object value, can't be null
      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 - TODO
      owner - parent object, can't be null
      feature - object feature, can't be null
      collection - objects collection, can't be null
      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 - TODO
      owner - parent object, can't be null
      feature - object feature, can't be null
      collection - objects collection, can't be null
    • 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 be null
      owner - parent object, can't be null
      feature - object feature, can't be null
      value - object value, can't be null
    • 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 - TODO
      owner - parent object, can't be null
      feature - object feature, can't be null
      value - object value, can't be null
    • 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 - TODO
      owner - parent object, can't be null
      feature - object feature, can't be null
      collection - objects collection, can't be null
    • 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 - TODO
      owner - parent object, can't be null
      feature - object feature, can't be null
      element - object, can't be null
      newIndex - new index in collection