Package com._1c.g5.v8.dt.erd.ui.handlers
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.
-
-
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 UngroupEntitiesHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
askForNewTab(ErdEditor editor)
Asks user if new tab should be opened.protected void
processMdObjects(Collection<MdObject> mdObjects, ErdEditor editor)
Processes given md objects.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.void
ungroup(Collection<IErdEntity> groups, DiagramTabItem tab)
Ungroups given entities.-
Methods inherited from class com._1c.g5.v8.dt.erd.ui.handlers.AbstractDiagramHandler
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
-
ungroup
public void ungroup(Collection<IErdEntity> groups, DiagramTabItem tab)
Ungroups given entities.- Parameters:
groups
- - entities to ungroup. Entities should be instance ofErdEntityGroup
. Can't benull
.tab
- - tab to ungroup entities. Can't benull
.
-
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 ofErdEntityGroup
. Can't benull
.position
- - location where ungroup. Can't benull
.tab
- - tab to ungroup entities. Can't benull
.
-
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 classAbstractDiagramHandler
- Parameters:
editor
- - editor to get tabs. 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
.
-
-