Class ExecToolManager

java.lang.Object
com.sun.javatest.tool.ToolManager
com.sun.javatest.exec.ExecToolManager
All Implemented Interfaces:
QSW_Listener

public class ExecToolManager extends ToolManager implements QSW_Listener
The ToolManager for test manager windows.
  • Constructor Details

    • ExecToolManager

      public ExecToolManager(Desktop desktop)
      Create an ExecManager to manage the test manager windows on a desktop.
      Parameters:
      desktop - the desktop for which this manager is responsible
  • Method Details

    • getFileOpeners

      public FileOpener[] getFileOpeners()
      Description copied from class: ToolManager
      Get handlers for any files that can be opened by this tool manager.
      Overrides:
      getFileOpeners in class ToolManager
      Returns:
      a set of handlers for files that can be opened by this tool manager, or null if none available.
    • getFileMenuActions

      public Action[] getFileMenuActions()
      Description copied from class: ToolManager
      Get actions for any items to appear in the main section of the desktop File menu.
      Overrides:
      getFileMenuActions in class ToolManager
      Returns:
      an array of Actions to appear on the File menu, or null if none are required.
    • getFileMenuPrimaries

      public JMenuItem[] getFileMenuPrimaries()
      Description copied from class: ToolManager
      Get primary file menu opereations for this tool. These are placed after the actions. They will be shown in the order given in the array. There are none provided by default (null).
      Overrides:
      getFileMenuPrimaries in class ToolManager
      Returns:
      Array of menu items to be shown for this tool. Nill if none.
      See Also:
    • getHelpPrimaryMenus

      public JMenuItem[] getHelpPrimaryMenus()
      Overrides:
      getHelpPrimaryMenus in class ToolManager
    • getHelpTestSuiteMenus

      public JMenuItem[] getHelpTestSuiteMenus()
      Overrides:
      getHelpTestSuiteMenus in class ToolManager
    • getHelpAboutMenus

      public JMenuItem[] getHelpAboutMenus()
      Overrides:
      getHelpAboutMenus in class ToolManager
    • getWindowOpenMenuActions

      public Action[] getWindowOpenMenuActions()
      Description copied from class: ToolManager
      Get actions to open any windows for this tool.
      Overrides:
      getWindowOpenMenuActions in class ToolManager
      Returns:
      an array of Actions that open windows for this tool, or null if none are required.
    • getPrefsPane

      public PreferencesPane getPrefsPane()
      Description copied from class: ToolManager
      Get details about any user preferences supported by this tool manager.
      Overrides:
      getPrefsPane in class ToolManager
      Returns:
      an object to handle preferences supported by this tool manager, or null if no preferences are supported.
    • checkOpenNewTool

      public boolean checkOpenNewTool(Desktop d, ContextManager conManager)
    • startTool

      public Tool startTool()
      Shows Quick Configuration Editor if not disabled
      Specified by:
      startTool in class ToolManager
      Returns:
      null
    • startTool

      public Tool startTool(InterviewParameters p)
      Start an ExecTool for a particular configuration.
      Parameters:
      p - the configuration defining the tests and test results to be displayed
      Returns:
      the tool created to show the tests and test results specified by the configuration
    • restoreTool

      public Tool restoreTool(Map<String,String> m) throws ToolManager.Fault
      Description copied from class: ToolManager
      Restore a tool from previously saved information.
      Specified by:
      restoreTool in class ToolManager
      Parameters:
      m - a map containing the previously saved information
      Returns:
      the tool that was started
      Throws:
      ToolManager.Fault - if there is a problem restoring the tool
    • showTestSuite

      @Deprecated public ExecTool showTestSuite(TestSuite ts)
      Deprecated.
      Create an ExecTool instance using the given test suite.
      Parameters:
      ts - the test suite to seed the new tool with
      Returns:
      tool instance now associated with the given test suite
    • showWorkDirectory

      @Deprecated public ExecTool showWorkDirectory(WorkDirectory wd)
      Deprecated.
      Create an ExecTool instance using the given work directory.
      Parameters:
      wd - the work directory to open
      Returns:
      tool instance now associated with the given work directory
    • addNewExecTool

      protected ExecTool addNewExecTool(TestSuite ts, WorkDirectory wd, InterviewParameters ip, String errorKey)
    • finishQSW

      public void finishQSW(TestSuite ts, WorkDirectory wd, InterviewParameters ip, boolean showConfigEditorFlag, boolean runTestsFlag)
      QSW_Listener interface method
      Specified by:
      finishQSW in interface QSW_Listener
      Parameters:
      ts -
      wd -
      ip -
      showConfigEditorFlag -
      runTestsFlag -
    • cancelQSW

      public void cancelQSW()
      QSW_Listener interface method
      Specified by:
      cancelQSW in interface QSW_Listener
    • showQSW

      public void showQSW()
      To be invoked when user wants to open Quick Start Wizard
    • isQuickStartWizardActive

      public boolean isQuickStartWizardActive()