Class BuildDiagramHandler

  • All Implemented Interfaces:
    org.eclipse.core.commands.IHandler, org.eclipse.core.commands.IHandler2

    public class BuildDiagramHandler
    extends AbstractDiagramHandler
    Handler for "Build Diagram" button. Builds new diagram from selected items.
    • Constructor Detail

      • BuildDiagramHandler

        public BuildDiagramHandler()
        Constructor.
    • Method Detail

      • getDiagramConfigurationExtractor

        public DiagramConfigurationExtractor getDiagramConfigurationExtractor()
        Returns diaram configuration extractor.
        Returns:
        diaram configuration extractor. Can't return null.
      • getResourceLookup

        public IResourceLookup getResourceLookup()
        Returns resource lookup.
        Returns:
        resource lookup. Can't return null.
      • getProjectManager

        public IV8ProjectManager getProjectManager()
        Returns project manager.
        Returns:
        project manager. Can't return null.
      • getBmModelManager

        public IBmModelManager getBmModelManager()
        Returns bm model manager.
        Returns:
        bm model manager. Can't return null.
      • refreshDiagram

        public void refreshDiagram​(DiagramTabItem tab,
                                   ErdOperationManager operationManager)
        Refreshes given tab.
        Parameters:
        tab - - tab to refresh. Can't be null.
        operationManager - - operation manager to execute operations. Can't be null.
      • refreshRelations

        public void refreshRelations​(DiagramTabItem tab)
        Refreshes relations on given tab.
        Parameters:
        tab - - tab to refresh. Can't be null.
      • build

        public void build​(Collection<MdObject> mdObjects,
                          ErdEditor editor)
        Builds given mbObjects in active tab.
        Parameters:
        mdObjects - - objects to build. Can't be null.
        editor - - context editor. Can't be null.
      • build

        public void build​(Collection<IErdEntity> entities,
                          DiagramTabItem parentDiagram,
                          DiagramTabItem tabToBuildIn)
        Builds diagram in active tab from given objects.
        Parameters:
        entities - - objects which will be on diagram. Can't be null.
        parentDiagram - - tab to take project name. Can be null.
        tabToBuildIn - - tab to build new diagram. Can't be null.
      • buildSync

        public void buildSync​(Collection<IErdEntity> entities,
                              DiagramTabItem parentDiagram,
                              DiagramTabItem tabToBuildIn,
                              org.eclipse.core.runtime.IProgressMonitor progressMonitor)
        Builds diagram in active tab from given objects.
        Mehtod returns when diagram builded.
        Parameters:
        entities - - objects which will be on diagram. Can't be null.
        parentDiagram - - tab to take project name. Can be null.
        tabToBuildIn - - tab to build new diagram. Can't be null.
        progressMonitor - - progress monitor to report progress. Can be null.
      • addBuildListener

        public void addBuildListener​(IBuildDiagramListener listener)
        Adds build listener.
        Parameters:
        listener - - build listener. Can't be null.
      • removeBuildListener

        public void removeBuildListener​(IBuildDiagramListener listener)
        Removes build listener.
        Parameters:
        listener - - build listener. Can't be null.