|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.sun.javatest.tool.Tool
com.sun.javatest.exec.ExecTool
public class ExecTool
The "Test Manager" tool, which allows a user to browse, configure, and run tests.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.sun.javatest.tool.Tool |
---|
Tool.Observer |
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
javax.swing.JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class com.sun.javatest.tool.Tool |
---|
uif |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
ExecTool(ExecToolManager mgr)
Create a default, uninitialized ExecTool. |
|
ExecTool(ExecToolManager mgr,
InterviewParameters interviewParams)
Create an ExecTool initialized to the contents of an interview object. |
|
ExecTool(ExecToolManager mgr,
TestSuite testSuite)
Create an ExecTool for a specific test suite. |
|
ExecTool(ExecToolManager mgr,
WorkDirectory workDir)
Create an ExecTool for a specific test suite and work directory. |
Method Summary | |
---|---|
void |
closeLogger()
Closes and removes log handler corresponding to this tool |
boolean |
containsTestSuite(java.io.File f)
Check if this tool contains a test suite whose root file matches a specified file. |
boolean |
containsTestSuite(TestSuite ts)
Check if this tool contains a given test suite. |
boolean |
containsWorkDirectory(java.io.File f)
Check if this tool contains a work directory whose root file matches a specified file. |
void |
dispose()
Release any resources this tool may be referencing. |
TestResultTable |
getActiveTestResultTable()
Get the test result table currently in use for display. |
protected java.lang.String[] |
getCloseAlerts()
Get a list (if any) of the reasons why it might be inadvisable to close the tool at this point. |
ContextManager |
getContextManager()
|
ExecToolManager |
getExecToolManager()
|
com.sun.javatest.exec.FilterConfig |
getFilterConfig()
Get the currently loaded filter config, if any. |
InterviewParameters |
getInterviewParameters()
Get the current configuration data for this tool. |
TestSuite[] |
getLoadedTestSuites()
Get a list of any test suites that are being used by this tool. |
WorkDirectory[] |
getLoadedWorkDirectories()
Get a list of any work directories that are being used by this tool. |
javax.swing.JMenuBar |
getMenuBar()
Get the tool menu bar. |
java.awt.Dimension |
getPreferredSize()
|
TestSuite |
getTestSuite()
Get the currently loaded test suite, if any. |
UIFactory |
getUIF()
|
WorkDirectory |
getWorkDirectory()
Get the currently loaded work directory, if any. |
boolean |
isEmpty()
Check if this tool is empty: in other words, check if it has a test suite loaded or not. |
void |
print(java.awt.print.Printable p)
|
void |
printSetup()
|
void |
resetWorkDirectory()
Clears the current work directory |
void |
runTests()
Run the tests specified by the current configuration for this tool. |
void |
runTests(java.lang.String[] urls)
Run specified tests. |
void |
save(java.util.Map m)
Save the primary state for this tool, for later restoration. |
void |
setWorkDir(WorkDirectory wd,
boolean addToFileHistory)
|
void |
showConfigEditor()
Show the configuration editor for this tool. |
void |
showConfigEditor(java.awt.event.ActionListener l)
Show the configuration editor for this tool, notifying an action listener when the editor is closed. |
void |
showConfigEditor(boolean runTestsWhenDone)
Show the configuration editor for this tool, and optionally run the tests defined by the configuration when the editor is closed. |
void |
showMessage(java.util.ResourceBundle msgs,
java.lang.String key)
|
void |
showQuickStartWizard()
Show the Quick Start Wizard. |
void |
showTemplateEditor()
Show the configuration editor for this tool with current template |
void |
showWorkDirDialog(boolean allowTemplates)
|
Methods inherited from class com.sun.javatest.tool.Tool |
---|
addObserver, getCreationTime, getDesktop, getHelpBroker, getManager, getShortTitle, getTitle, getToolDialogs, removeObserver, setHelp, setHelp, setHelpOnButton, setI18NTitle, setI18NTitle, setI18NTitle, setShortTitle |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ExecTool(ExecToolManager mgr)
mgr
- the manager for this toolpublic ExecTool(ExecToolManager mgr, TestSuite testSuite) throws Interview.Fault, TestSuite.Fault
mgr
- the manager for this tooltestSuite
- The test suite to be shown in this tool.
TestSuite.Fault
- if a problem occurs creating the
configuration interview for this test suite.
Interview.Fault
- if a problem occurs creating the
configuration interview for this test suite.public ExecTool(ExecToolManager mgr, WorkDirectory workDir) throws Interview.Fault, TestSuite.Fault
mgr
- the manager for this toolworkDir
- The work directory to be shown in this tool.
Interview.Fault
- if a problem occurs creating the
configuration interview for the test suite.
TestSuite.Fault
- if a problem occurs creating the
configuration interview for the test suite.public ExecTool(ExecToolManager mgr, InterviewParameters interviewParams)
mgr
- the manager for this toolinterviewParams
- The interview object containing the test suite and
work directory to be displayed.Method Detail |
---|
public void dispose()
Tool
dispose
in class Tool
protected java.lang.String[] getCloseAlerts()
Tool
getCloseAlerts
in class Tool
public UIFactory getUIF()
public ContextManager getContextManager()
public javax.swing.JMenuBar getMenuBar()
getMenuBar
in class Tool
public java.awt.Dimension getPreferredSize()
getPreferredSize
in class javax.swing.JComponent
public boolean isEmpty()
public TestSuite getTestSuite()
public TestSuite[] getLoadedTestSuites()
Tool
getLoadedTestSuites
in class Tool
public boolean containsTestSuite(TestSuite ts)
ts
- The test suite to check for.
public boolean containsTestSuite(java.io.File f)
f
- The root file of the test suite for which to check.
public WorkDirectory getWorkDirectory()
public WorkDirectory[] getLoadedWorkDirectories()
Tool
getLoadedWorkDirectories
in class Tool
public boolean containsWorkDirectory(java.io.File f)
f
- The root file of the work directory for which to check.
public InterviewParameters getInterviewParameters()
public com.sun.javatest.exec.FilterConfig getFilterConfig()
public void showQuickStartWizard()
java.lang.IllegalStateException
- if the tool already has a test suite
loaded.public void showConfigEditor(boolean runTestsWhenDone)
runTestsWhenDone
- true if the tests should automatically
be run when the user closes the configuration editor,
and false otherwise.public void showTemplateEditor()
public void runTests()
public void runTests(java.lang.String[] urls)
urls
- These names may either be paths to folders or test names.
Empty string value in the array indicates that the whole test suite
should be run.public void save(java.util.Map m)
save
in class Tool
m
- The map in which to save the datapublic void setWorkDir(WorkDirectory wd, boolean addToFileHistory) throws Interview.Fault, TestSuite.Fault
Interview.Fault
TestSuite.Fault
public void showWorkDirDialog(boolean allowTemplates)
public void showMessage(java.util.ResourceBundle msgs, java.lang.String key)
public void printSetup()
public void print(java.awt.print.Printable p)
public void showConfigEditor()
public void showConfigEditor(java.awt.event.ActionListener l)
l
- the action listener that will be notified when the
configuration editor is closed.public void resetWorkDirectory() throws TestSuite.Fault
TestSuite.Fault
public void closeLogger()
public TestResultTable getActiveTestResultTable()
public ExecToolManager getExecToolManager()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |