Class DropEntitiesHandler

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.DropEntitiesHandler
All Implemented Interfaces:
IDropEntitiesHandler, org.eclipse.core.commands.IHandler, org.eclipse.core.commands.IHandler2

public class DropEntitiesHandler extends AbstractDiagramHandler implements IDropEntitiesHandler
Handler for drop entities action. Adds dropped entities to diagram. If all entities already on diagram, finds and selects first entity in list.

How to use
  • Constructor Details

    • DropEntitiesHandler

      public DropEntitiesHandler()
  • Method Details

    • setDropEvent

      public void setDropEvent(org.eclipse.swt.dnd.DropTargetEvent dropEvent)
      Description copied from interface: IDropEntitiesHandler
      Sets drop event.
      Specified by:
      setDropEvent in interface IDropEntitiesHandler
      Parameters:
      dropEvent - the dropEvent to set. Can't be null.
    • execute

      public void execute(ErdEditor editor)
      Description copied from interface: IDropEntitiesHandler
      Executes drop action.
      Specified by:
      execute in interface IDropEntitiesHandler
      Parameters:
      editor - - editor to execute action. Can't be null.
    • execute

      public Object execute(org.eclipse.core.commands.ExecutionEvent event) throws org.eclipse.core.commands.ExecutionException
      Specified by:
      execute in interface org.eclipse.core.commands.IHandler
      Overrides:
      execute in class AbstractDiagramHandler
      Throws:
      org.eclipse.core.commands.ExecutionException
    • 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.