|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectabbot.editor.ScriptEditor
public class ScriptEditor
This is the 'model' behind the script editor UI.
Acts as a resolver, using the currently in-context script as the component resolver.
| 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(EditorContext ec)
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()
|
void |
copyFixture(Script src)
Copy the fixture from the given script into the current one. |
(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. |
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) Resolver |
getResolverContext()
|
(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 |
quitApplication()
Quit the application. |
(package private) void |
saveNestedScripts(Sequence seq)
|
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. |
static void |
showEditor(EditorContext ec)
Launch the script editor, with an argument that represents a variety of editor customizations. |
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(EditorContext ec)
ScriptEditorFrame| Method Detail |
|---|
public void actionPerformed(ActionEvent ev)
actionPerformed in interface ActionListenervoid insertLaunch()
void insertApplet()
void insertTerminate()
void setScript(String filename)
protected boolean checkSaveBeforeClose()
void quitApplication()
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)
public void copyFixture(Script src)
void saveNestedScripts(Sequence seq)
throws IOException
IOExceptionResolver getResolverContext()
public ComponentReference getComponentReference(String refid)
getComponentReference in interface Resolverpublic ComponentReference getComponentReference(Component comp)
getComponentReference in interface Resolverpublic void addComponentReference(ComponentReference ref)
addComponentReference in interface Resolverpublic ComponentReference addComponent(Component comp)
addComponent in interface Resolverpublic Collection getComponentReferences()
getComponentReferences in interface Resolverpublic String getContext(Step step)
getContext in interface Resolverpublic File getDirectory()
getDirectory in interface Resolver
public void setProperty(String name,
Object value)
setProperty in interface Resolverpublic Object getProperty(String name)
getProperty in interface Resolverpublic ClassLoader getContextClassLoader()
getContextClassLoader in interface Resolverpublic Hierarchy getHierarchy()
Resolver
getHierarchy in interface Resolverpublic String toString()
toString in class Objectvoid dispose()
public static void main(String[] args)
public static void showEditor(EditorContext ec)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||