|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object abbot.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 ActionListener
void 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
IOException
Resolver getResolverContext()
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()
toString
in class Object
void 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 |