Class UngroupEntitiesHandler

java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.core.commands.AbstractHandler
com._1c.g5.v8.dt.erd.ui.handlers.AbstractDiagramHandler
com._1c.g5.v8.dt.erd.ui.handlers.UngroupEntitiesHandler
All Implemented Interfaces:
org.eclipse.core.commands.IHandler, org.eclipse.core.commands.IHandler2

public class UngroupEntitiesHandler extends AbstractDiagramHandler
Handler for "Ungroup" entities button.
  • Constructor Details

    • UngroupEntitiesHandler

      public UngroupEntitiesHandler()
  • Method Details

    • ungroup

      public void ungroup(Collection<IErdEntity> groups, DiagramTabItem tab)
      Ungroups given entities.
      Parameters:
      groups - - entities to ungroup. Entities should be instance of ErdEntityGroup. Can't be null.
      tab - - tab to ungroup entities. Can't be null.
    • ungroup

      public void ungroup(Collection<IErdEntity> groups, com._1c.g5.v8.dt.diagram.framework.model.Point position, DiagramTabItem tab)
      Ungroups given entities with center on given point.
      Parameters:
      groups - - entities to ungroup. Entities should be instance of ErdEntityGroup. Can't be null.
      position - - location where ungroup. Can't be null.
      tab - - tab to ungroup entities. Can't be null.
    • askForNewTab

      protected void askForNewTab(ErdEditor editor)
      Description copied from class: AbstractDiagramHandler
      Asks user if new tab should be opened. If user accepts opens new tab.
      Overrides:
      askForNewTab in class AbstractDiagramHandler
      Parameters:
      editor - - editor to get tabs. Can't be null.
    • processMdObjects

      protected void processMdObjects(Collection<MdObject> mdObjects, ErdEditor editor)
      Description copied from class: AbstractDiagramHandler
      Processes given md objects. Realization varies.
      Specified by:
      processMdObjects in class AbstractDiagramHandler
      Parameters:
      mdObjects - - objects to process. Can't be null.
      editor - - context editor. Can't be null.