Class BuildConnectedHandler

    • Constructor Detail

      • BuildConnectedHandler

        public BuildConnectedHandler()
    • Method Detail

      • processEntities

        public void processEntities​(Collection<IErdEntity> entities,
                                    DiagramTabItem tab)
        Build entities connected to given entities.
        Parameters:
        entities - - entities. Can't be null.
        tab - - tab to process entities. Can't be null.
      • getConnectedEntities

        protected Collection<IErdEntity> getConnectedEntities​(Collection<MdObject> mdObjects,
                                                              IErdDiagramController controller,
                                                              org.eclipse.core.runtime.SubMonitor subMonitor)
        Returns entities connected to given md objects.
        Parameters:
        mdObjects - - md objects. Can't be null.
        controller - - diagram controller. Can't be null.
        subMonitor - - monitor to report progress. Can be null.
        Returns:
        entities connected to given md objects. Can't return null.
      • getConnectedEntities

        protected Collection<IErdEntity> getConnectedEntities​(Collection<IErdEntity> projectEntities,
                                                              Collection<IErdEntity> selectedEntities,
                                                              org.eclipse.core.runtime.SubMonitor subMonitor)
        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.
        Parameters:
        projectEntities - - all entities from selected project. Can't be null.
        selectedEntities - - selcted entities. Can't be null.
        subMonitor - - monitor to report progress. Can't be null.
        Returns:
        entities connected to selected entities. Can't return null.
      • getJobTitle

        protected String getJobTitle()
        Returns job title.
        Returns:
        job title. Can't be null.
      • showNoConnectedMessage

        protected void showNoConnectedMessage()
        Shows no connected entities message
      • askAndRelayout

        protected void askAndRelayout​(ErdActionsManager actionsManager)
        Asks user for applying relayout action.
        Parameters:
        actionsManager - - actiona manager to get actions. Can't be null.