Class FindOnDiagramHandler

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

    public class FindOnDiagramHandler
    extends AbstractDiagramHandler
    Handler for "Find on diagram" button.
    • Constructor Detail

      • FindOnDiagramHandler

        public FindOnDiagramHandler()
    • Method Detail

      • show

        public void show​(DiagramTabItem tab,
                         MdObject mdObject)
        Moves viewport's view location to given associated with given mdObject entity location.
        Parameters:
        tab - - tab to search in. Can't be null.
        mdObject - - mdObject to show. Can't be null.
      • find

        public void find​(DiagramTabItem tab,
                         MdObject mdObject,
                         boolean showNotFoundMessage)
        Finds given mdObject on diagram. Select's only given mdObject. Clears other selection. If given mdObject can't be found on diagram, shows error message.
        Parameters:
        tab - - tab to search in. Can't be null.
        mdObject - - mdObject to find, can't be null.
        showNotFoundMessage - - true if not found message should be shown.