Package com._1c.g5.v8.dt.erd.ui.handlers
Class BuildReferensedFromHandler
- 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.BuildConnectedHandler
-
- com._1c.g5.v8.dt.erd.ui.handlers.BuildReferensedFromHandler
-
- All Implemented Interfaces:
org.eclipse.core.commands.IHandler
,org.eclipse.core.commands.IHandler2
public class BuildReferensedFromHandler extends BuildConnectedHandler
Handler for "Build referenced from" button. Builds diagram with selected item and items which it refers to.
-
-
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 BuildReferensedFromHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Collection<IErdEntity>
getConnectedEntities(Collection<IErdEntity> projectEntities, Collection<IErdEntity> selectedEntities, org.eclipse.core.runtime.SubMonitor subMonitor)
Returns entities connected to selected entities.protected String
getJobTitle()
Returns job title.protected void
showNoConnectedMessage()
Shows no connected entities message-
Methods inherited from class com._1c.g5.v8.dt.erd.ui.handlers.BuildConnectedHandler
askAndRelayout, askForNewTab, getConnectedEntities, processEntities, processMdObjects
-
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
-
getJobTitle
protected String getJobTitle()
Description copied from class:BuildConnectedHandler
Returns job title.- Overrides:
getJobTitle
in classBuildConnectedHandler
- Returns:
- job title. Can't be
null
.
-
getConnectedEntities
protected Collection<IErdEntity> getConnectedEntities(Collection<IErdEntity> projectEntities, Collection<IErdEntity> selectedEntities, org.eclipse.core.runtime.SubMonitor subMonitor)
Description copied from class:BuildConnectedHandler
Returns entities connected to selected entities.Entities may be connected in different ways. For example, entities that refers to selected or entities, that selected refers to.
- Overrides:
getConnectedEntities
in classBuildConnectedHandler
- Parameters:
projectEntities
- - all entities from selected project. Can't benull
.selectedEntities
- - selcted entities. Can't benull
.subMonitor
- - monitor to report progress. Can't benull
.- Returns:
- entities connected to selected entities. Can't return
null
.
-
showNoConnectedMessage
protected void showNoConnectedMessage()
Description copied from class:BuildConnectedHandler
Shows no connected entities message- Overrides:
showNoConnectedMessage
in classBuildConnectedHandler
-
-