Package com._1c.g5.v8.dt.erd.ui.handlers
Class GroupEntitiesHandler
- 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.GroupEntitiesHandler
-
- All Implemented Interfaces:
org.eclipse.core.commands.IHandler
,org.eclipse.core.commands.IHandler2
public class GroupEntitiesHandler extends AbstractDiagramHandler
Handler for "Group" 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 GroupEntitiesHandler()
-
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.void
group(Collection<IErdEntity> entities, int x, int y, DiagramTabItem tab)
Group given entities to one groupprotected void
processMdObjects(Collection<MdObject> mdObjects, ErdEditor editor)
Processes given md objects.-
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
-
group
public void group(Collection<IErdEntity> entities, int x, int y, DiagramTabItem tab)
Group given entities to one group- Parameters:
entities
- - entities to group. Can't benull
,x
- - group x coodrinate.y
- - group y coordinate.tab
- - tab to group 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
.
-
-