Package com._1c.g5.v8.dt.erd.ui.handlers
Class AddEntitiesHandler
- 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.AddEntitiesHandler
-
- All Implemented Interfaces:
org.eclipse.core.commands.IHandler
,org.eclipse.core.commands.IHandler2
public class AddEntitiesHandler extends AbstractDiagramHandler
Handler for "Add Entities" button. Adds selected entities to diagram.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com._1c.g5.v8.dt.erd.ui.handlers.AbstractDiagramHandler
AbstractDiagramHandler.DiagramBuilder, AbstractDiagramHandler.DiagramRefresher, AbstractDiagramHandler.NotUndoableEvent
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.erd.ui.handlers.AbstractDiagramHandler
bmModelManager, convertersService, extractor, projectManager, resourceLookup
-
-
Constructor Summary
Constructors Constructor Description AddEntitiesHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMdObjects(List<MdObject> mdObjects, com._1c.g5.v8.dt.diagram.framework.model.Point location, DiagramTabItem tab)
Adds given objects to active tab.protected void
processMdObjects(Collection<MdObject> mdObjects, ErdEditor editor)
Processes given md objects.-
Methods inherited from class com._1c.g5.v8.dt.erd.ui.handlers.AbstractDiagramHandler
askForNewTab, convertToMdObjects, execute, fillLiterals, getConfigurationObjects, getConfigurationSubsystems, getController, isProjectSelected, lookForMdObjects, showNoSelectedObjectsMessage
-
Methods inherited from class org.eclipse.core.commands.AbstractHandler
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabled
-
-
-
-
Method Detail
-
addMdObjects
public void addMdObjects(List<MdObject> mdObjects, com._1c.g5.v8.dt.diagram.framework.model.Point location, DiagramTabItem tab)
Adds given objects to active tab.- Parameters:
mdObjects
- - objects to add. Can't benull
.location
- - location to add to. Can't benull
.tab
- - tab to add entities to. Can't benull
.
-
processMdObjects
protected void processMdObjects(Collection<MdObject> mdObjects, ErdEditor editor)
Description copied from class:AbstractDiagramHandler
Processes given md objects. Realization varies.- Specified by:
processMdObjects
in classAbstractDiagramHandler
- Parameters:
mdObjects
- - objects to process. Can't benull
.editor
- - context editor. Can't benull
.
-
-