|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectabbot.editor.ScriptEditor
This is the 'model' behind the script editor UI.
Acts as a resolver, using the currently in-context script as the component resolver.
To add new actions, add the action to the list in initActions
,
and optionally add it to the menu layout in initMenus. Define a name for
it in EditorConstants, and an inner Action class for it which uses that
name.
Field Summary | |
static int |
KC_INVERT
Key to use to invert an assertion/wait. |
static int |
KC_WAIT
Key to use to insert a wait instead of an assertion. |
Constructor Summary | |
ScriptEditor()
Constructs a ScriptEditor which handles script editing logic. |
Method Summary | |
void |
actionPerformed(ActionEvent ev)
Respond to various components. |
ComponentReference |
addComponent(Component comp)
From abbot.Resolver. |
void |
addComponentReference(ComponentReference ref)
From abbot.Resolver. |
(package private) void |
addStep(Step step)
Insert a new step at the current cursor location. |
protected boolean |
checkSaveBeforeClose()
Return true if it's ok to exit. |
(package private) void |
dispose()
|
String |
getComponentID(Component comp)
Returns null if not found. |
ComponentReference |
getComponentReference(Component comp)
From abbot.Resolver. |
ComponentReference |
getComponentReference(String refid)
From abbot.Resolver. |
Collection |
getComponentReferences()
From abbot.Resolver. |
(package private) Resolver |
getContext()
|
String |
getContext(Step step)
From abbot.Resolver. |
ClassLoader |
getContextClassLoader()
From abbot.Resolver. |
File |
getDirectory()
From abbot.Resolver. |
Hierarchy |
getHierarchy()
Get Hierarchy used by this Resolver. |
Object |
getProperty(String name)
From abbot.Resolver. |
(package private) void |
insertApplet()
Insert an applet step. |
(package private) void |
insertLaunch()
Insert a launch step. |
(package private) void |
insertTerminate()
Insert a terminate step. |
static void |
main(String[] args)
Launch the script editor, with an argument of either a test suite class or a script filename. |
(package private) void |
newScript(File file,
boolean copyFixture)
Create a new script at the given filename, or open it if it already exists. |
(package private) void |
quit()
Quit the application. |
(package private) void |
saveNestedScripts(Sequence seq)
|
static void |
setDocumentationProperties(String[] action)
Deprecated. Set the properties for your action directly. Install the given documentation properties, given as an array of four Strings. Add-on classes derived from ComponentTester should invoke this for each exported action. These properties are for use by the editor to better describe the available methods. |
void |
setProperty(String name,
Object value)
From abbot.Resolver. |
(package private) void |
setScript(String filename)
Set the current test script. |
void |
setStatus(String msg)
Set the contents of the status message. |
void |
setStatus(String msg,
String extended,
int type)
Set the contents of the status message. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int KC_INVERT
public static final int KC_WAIT
Constructor Detail |
public ScriptEditor()
ScriptEditorFrame
Method Detail |
public void actionPerformed(ActionEvent ev)
actionPerformed
in interface ActionListener
void insertLaunch()
void insertApplet()
void insertTerminate()
void setScript(String filename)
protected boolean checkSaveBeforeClose()
void quit()
public void setStatus(String msg)
public void setStatus(String msg, String extended, int type)
public String getComponentID(Component comp)
void addStep(Step step)
void newScript(File file, boolean copyFixture)
void saveNestedScripts(Sequence seq) throws IOException
IOException
Resolver getContext()
public ComponentReference getComponentReference(String refid)
getComponentReference
in interface Resolver
public ComponentReference getComponentReference(Component comp)
getComponentReference
in interface Resolver
public void addComponentReference(ComponentReference ref)
addComponentReference
in interface Resolver
public ComponentReference addComponent(Component comp)
addComponent
in interface Resolver
public Collection getComponentReferences()
getComponentReferences
in interface Resolver
public String getContext(Step step)
getContext
in interface Resolver
public File getDirectory()
getDirectory
in interface Resolver
public void setProperty(String name, Object value)
setProperty
in interface Resolver
public Object getProperty(String name)
getProperty
in interface Resolver
public ClassLoader getContextClassLoader()
getContextClassLoader
in interface Resolver
public Hierarchy getHierarchy()
Resolver
getHierarchy
in interface Resolver
public String toString()
public static void setDocumentationProperties(String[] action)
void dispose()
public static void main(String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |