Package com._1c.g5.v8.dt.erd.ui.handlers
Class ShowConnectedHandler
- 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.ShowConnectedHandler
-
- All Implemented Interfaces:
org.eclipse.core.commands.IHandler
,org.eclipse.core.commands.IHandler2
public class ShowConnectedHandler extends AbstractDiagramHandler
Handler for "Show Connected Entities" button. Opens chosen entity and entities connected with it in new tab. (Don't show entities, that not on 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 ShowConnectedHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Collection<IErdEntity>
getConnectedEntities(IErdEntity entity, DiagramTabItem tab)
Returns list of entities, connected with given entity.protected void
processMdObjects(Collection<MdObject> mdObjects, ErdEditor editor)
Processes given md objects.void
showConnected(ErdTabsManager tabsManager, ErdActionsManager actionsManager, IErdEntity entity)
Shows given entity and entities connected with given in new tab.-
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
-
showConnected
public void showConnected(ErdTabsManager tabsManager, ErdActionsManager actionsManager, IErdEntity entity)
Shows given entity and entities connected with given in new tab.- Parameters:
tabsManager
- - tabs manager. Can't benull
.actionsManager
- - actions manager to get auto layout action. Can't benull
.entity
- - entity to show connected entities. 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
.
-
getConnectedEntities
protected Collection<IErdEntity> getConnectedEntities(IErdEntity entity, DiagramTabItem tab)
Returns list of entities, connected with given entity. Every entity in returned list should be visible on diagram at giventab
- Parameters:
entity
- - entity to find connected entities. Can't benull
.tab
- - tab to look for entities. Can't benull
.- Returns:
- connected with given entity entities. Can't return
null
.
-
-