Class 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)
    • Constructor Detail

      • ShowConnectedHandler

        public ShowConnectedHandler()
    • 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 be null.
        actionsManager - - actions manager to get auto layout action. Can't be null.
        entity - - entity to show connected entities. Can't be null.
      • 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 given tab
        Parameters:
        entity - - entity to find connected entities. Can't be null.
        tab - - tab to look for entities. Can't be null.
        Returns:
        connected with given entity entities. Can't return null.