Package com._1c.g5.v8.dt.erd.ui.handlers
Class GranularPageContentBuilder
- 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.BuildReferencedToHandler
-
- com._1c.g5.v8.dt.erd.ui.handlers.GranularPageContentBuilder
-
- All Implemented Interfaces:
org.eclipse.core.commands.IHandler
,org.eclipse.core.commands.IHandler2
public class GranularPageContentBuilder extends BuildReferencedToHandler
Instance of this class builds initial content of granular page.
-
-
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 GranularPageContentBuilder()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBuildDiagramListener(IBuildDiagramListener buildDiagramListener)
Adds given item as build diagram listener.protected void
askAndRelayout(ErdActionsManager actionsManager)
Asks user for applying relayout action.void
buildPageContent(ErdEditor editor, DiagramTabItem tab, MdObject mdObject, com._1c.g5.v8.dt.diagram.framework.IEntity entity)
Builds initial page content.protected void
processMdObjects(Collection<MdObject> mdObjects, ErdEditor editor)
Processes given md objects.void
removeBuildDiagramListener(IBuildDiagramListener buildDiagramListener)
Removes given item from build diagram listeners.protected void
showNoConnectedMessage()
Shows no connected entities message-
Methods inherited from class com._1c.g5.v8.dt.erd.ui.handlers.BuildReferencedToHandler
getConnectedEntities, getConnectedEntities, getJobTitle
-
Methods inherited from class com._1c.g5.v8.dt.erd.ui.handlers.BuildConnectedHandler
askForNewTab, processEntities
-
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
-
buildPageContent
public void buildPageContent(ErdEditor editor, DiagramTabItem tab, MdObject mdObject, com._1c.g5.v8.dt.diagram.framework.IEntity entity)
Builds initial page content.- Parameters:
editor
- - editor. Can't benull
.tab
- - editors tab. Can't benull
.mdObject
- - granular page model object. Can't benull
entity
- - entity, associated with granular page model md object. Can't benull
.
-
addBuildDiagramListener
public void addBuildDiagramListener(IBuildDiagramListener buildDiagramListener)
Adds given item as build diagram listener.- Parameters:
buildDiagramListener
- - listener to add. Can't benull
.
-
removeBuildDiagramListener
public void removeBuildDiagramListener(IBuildDiagramListener buildDiagramListener)
Removes given item from build diagram listeners.- Parameters:
buildDiagramListener
- - listener to remove. Can't benull
.
-
processMdObjects
protected void processMdObjects(Collection<MdObject> mdObjects, ErdEditor editor)
Description copied from class:AbstractDiagramHandler
Processes given md objects. Realization varies.- Overrides:
processMdObjects
in classBuildConnectedHandler
- Parameters:
mdObjects
- - objects to process. Can't benull
.editor
- - context editor. Can't benull
.
-
askAndRelayout
protected void askAndRelayout(ErdActionsManager actionsManager)
Description copied from class:BuildConnectedHandler
Asks user for applying relayout action.- Overrides:
askAndRelayout
in classBuildConnectedHandler
- Parameters:
actionsManager
- - actiona manager to get actions. Can't benull
.
-
showNoConnectedMessage
protected void showNoConnectedMessage()
Description copied from class:BuildConnectedHandler
Shows no connected entities message- Overrides:
showNoConnectedMessage
in classBuildReferencedToHandler
-
-