Package com.sun.javatest.exec
Class WorkDirChooseTool.ExecModelStub
- java.lang.Object
-
- com.sun.javatest.exec.WorkDirChooseTool.ExecModelStub
-
- All Implemented Interfaces:
ExecModel
- Enclosing class:
- WorkDirChooseTool
public static class WorkDirChooseTool.ExecModelStub extends java.lang.Object implements ExecModel
The class is used by WorkDirChooseTool to interact with those, who use WorkDirChooseTool to open or create work dir. The class does nothing but remembers the methods were invoked. An instance should be passed to the WorkDirChooseTool via setExecMode() method before activating. When dialog has disappeared, the instance will be filled with chosen work dir.
-
-
Constructor Summary
Constructors Constructor Description ExecModelStub(TestSuite ts, ContextManager cm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure()Causes a series of actions to be performed to complete configuration.TestResultTablegetActiveTestResultTable()Get the test result table currently in use for display.ContextManagergetContextManager()ExecToolManagergetExecToolManager()FilterConfiggetFilterConfig()InterviewParametersgetInterviewParameters()TestSuitegetTestSuite()WorkDirectorygetWorkDirectory()booleanisConfiguring()Returns true if the model is in the configuration stage, user is either selecting work directory or editing configuration.booleanisShowConfigEditor()voidprint(java.awt.print.Printable p)voidprintSetup()voidrunTests(java.lang.String... urls)Run specified tests.voidsetWorkDir(WorkDirectory wd, boolean addToFileHistory)voidshowConfigEditor(boolean runTestsWhenDone)Show the configuration editor for this tool, and optionally run the tests defined by the configuration when the editor is closed.voidshowMessage(java.util.ResourceBundle msgs, java.lang.String key)voidshowTemplateEditor()Show the configuration editor for this tool with current templatevoidshowWorkDirDialog(boolean allowTemplates)
-
-
-
Constructor Detail
-
ExecModelStub
public ExecModelStub(TestSuite ts, ContextManager cm)
-
-
Method Detail
-
getTestSuite
public TestSuite getTestSuite()
- Specified by:
getTestSuitein interfaceExecModel
-
getWorkDirectory
public WorkDirectory getWorkDirectory()
- Specified by:
getWorkDirectoryin interfaceExecModel
-
getInterviewParameters
public InterviewParameters getInterviewParameters()
- Specified by:
getInterviewParametersin interfaceExecModel
-
getFilterConfig
public FilterConfig getFilterConfig()
- Specified by:
getFilterConfigin interfaceExecModel
-
getContextManager
public ContextManager getContextManager()
- Specified by:
getContextManagerin interfaceExecModel
-
getActiveTestResultTable
public TestResultTable getActiveTestResultTable()
Description copied from interface:ExecModelGet the test result table currently in use for display. This value provides a temporary answer if the work directory does not exist yet. If a work directory is available, the query is forwarded to that object.- Specified by:
getActiveTestResultTablein interfaceExecModel- Returns:
- the test result table currently in use for display.
-
showWorkDirDialog
public void showWorkDirDialog(boolean allowTemplates)
- Specified by:
showWorkDirDialogin interfaceExecModel
-
configure
public void configure()
Description copied from interface:ExecModelCauses a series of actions to be performed to complete configuration.
-
isConfiguring
public boolean isConfiguring()
Description copied from interface:ExecModelReturns true if the model is in the configuration stage, user is either selecting work directory or editing configuration. One can relay on this method to disable/enable some actions.- Specified by:
isConfiguringin interfaceExecModel
-
showConfigEditor
public void showConfigEditor(boolean runTestsWhenDone)
Description copied from interface:ExecModelShow the configuration editor for this tool, and optionally run the tests defined by the configuration when the editor is closed.- Specified by:
showConfigEditorin interfaceExecModel- Parameters:
runTestsWhenDone- true if the tests should automatically be run when the user closes the configuration editor, and false otherwise.
-
isShowConfigEditor
public boolean isShowConfigEditor()
-
showTemplateEditor
public void showTemplateEditor()
Description copied from interface:ExecModelShow the configuration editor for this tool with current template- Specified by:
showTemplateEditorin interfaceExecModel
-
runTests
public void runTests(java.lang.String... urls)
Description copied from interface:ExecModelRun specified tests.
-
showMessage
public void showMessage(java.util.ResourceBundle msgs, java.lang.String key)- Specified by:
showMessagein interfaceExecModel
-
printSetup
public void printSetup()
- Specified by:
printSetupin interfaceExecModel
-
setWorkDir
public void setWorkDir(WorkDirectory wd, boolean addToFileHistory)
- Specified by:
setWorkDirin interfaceExecModel
-
getExecToolManager
public ExecToolManager getExecToolManager()
- Specified by:
getExecToolManagerin interfaceExecModel
-
-