com.sun.javatest.exec
Class ExecToolManager

java.lang.Object
  extended by com.sun.javatest.tool.ToolManager
      extended by com.sun.javatest.exec.ExecToolManager

public class ExecToolManager
extends ToolManager

The ToolManager for test manager windows.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.javatest.tool.ToolManager
ToolManager.Fault
 
Field Summary
 
Fields inherited from class com.sun.javatest.tool.ToolManager
i18n
 
Constructor Summary
ExecToolManager(Desktop desktop)
          Create an ExecManager to manage the test manager windows on a desktop.
 
Method Summary
 javax.swing.Action[] getFileMenuActions()
          Get actions for any items to appear in the main section of the desktop File menu.
 javax.swing.JMenuItem[] getFileMenuPrimaries()
          Get primary file menu opereations for this tool.
 FileOpener[] getFileOpeners()
          Get handlers for any files that can be opened by this tool manager.
 javax.swing.JMenuItem[] getHelpAboutMenus()
           
 javax.swing.JMenuItem[] getHelpPrimaryMenus()
           
 javax.swing.JMenuItem[] getHelpTestSuiteMenus()
           
 Preferences.Pane getPrefsPane()
          Get details about any user preferences supported by this tool manager.
 javax.swing.Action[] getTaskMenuActions()
          Get actions for any items to appear in the desktop Tasks menu.
 javax.swing.Action[] getWindowOpenMenuActions()
          Get actions to open any windows for this tool.
 Tool restoreTool(java.util.Map m)
          Restore a tool from previously saved information.
 ExecTool showTestSuite(TestSuite ts)
          Create an ExecTool instance using the given test suite.
 ExecTool showWorkDirectory(WorkDirectory wd)
          Create an ExecTool instance using the given work directory.
 Tool startTool()
          Start a default instance of a tool.
 Tool startTool(InterviewParameters p)
          Start an ExecTool for a particular configuration.
 
Methods inherited from class com.sun.javatest.tool.ToolManager
createIcon, getDesktop, getFileMenuSecondaries
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

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 javax.swing.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 javax.swing.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:
ToolManager.getFileMenuActions()

getHelpPrimaryMenus

public javax.swing.JMenuItem[] getHelpPrimaryMenus()
Overrides:
getHelpPrimaryMenus in class ToolManager

getHelpTestSuiteMenus

public javax.swing.JMenuItem[] getHelpTestSuiteMenus()
Overrides:
getHelpTestSuiteMenus in class ToolManager

getHelpAboutMenus

public javax.swing.JMenuItem[] getHelpAboutMenus()
Overrides:
getHelpAboutMenus in class ToolManager

getTaskMenuActions

public javax.swing.Action[] getTaskMenuActions()
Description copied from class: ToolManager
Get actions for any items to appear in the desktop Tasks menu.

Overrides:
getTaskMenuActions in class ToolManager
Returns:
an array of Actions to appear on the Tasks menu, or null if none are required.

getWindowOpenMenuActions

public javax.swing.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 Preferences.Pane 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.

startTool

public Tool startTool()
Description copied from class: ToolManager
Start a default instance of a tool.

Specified by:
startTool in class ToolManager
Returns:
the tool that was started

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(java.util.Map 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

public ExecTool showTestSuite(TestSuite ts)
                       throws Interview.Fault,
                              TestSuite.Fault
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
Throws:
Interview.Fault - if there is a problem initializing the test suite interview parameters
TestSuite.Fault - if there is a problem while accessing the test suite object

showWorkDirectory

public ExecTool showWorkDirectory(WorkDirectory wd)
                           throws Interview.Fault,
                                  TestSuite.Fault
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
Throws:
Interview.Fault - if there is a problem initializing the test suite interview parameters
TestSuite.Fault - if there is a problem while accessing the test suite object


Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved.