|
TPTP 4.4.0 Testing Tools Project Internal API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.tptp.test.auto.gui.internal.macro.AbstractMacroInstruction
org.eclipse.tptp.test.auto.gui.internal.commands.AbstractMacroCommand
org.eclipse.tptp.test.auto.gui.internal.commands.AbstractStructuredCommand
An abstract structured command that other commands can optionally extend.
| Field Summary | |
|---|---|
protected java.util.ArrayList |
items
The items that are associated with the structured selection. |
| Fields inherited from class org.eclipse.tptp.test.auto.gui.internal.commands.AbstractMacroCommand |
|---|
DESCRIPTIVE_FIELD_BOUND |
| Constructor Summary | |
|---|---|
AbstractStructuredCommand(MacroCommandShell parent,
WidgetIdentifier wid)
The constructor |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
protected java.lang.Object[] |
findMatches(org.eclipse.swt.widgets.Widget widget)
|
protected IWidgetId |
findObjectId(int inx)
Returns the object id of the inx-th item associated with this structured command. |
IUIObject |
getCorrespondingObject()
Returns the corresponding IUIObject of this macro instruction. |
protected java.util.Map |
getItemAttributes(org.eclipse.swt.widgets.Widget item)
Returns the item attributes that will be used to find and resolve the item that is associated with this structured command. |
protected java.util.ArrayList |
getItems()
Returns the items that this command must match |
protected java.lang.Object[] |
getItemsForEvent(org.eclipse.swt.widgets.Event event)
Returns the items that are embedded in the event passed in |
void |
load(org.w3c.dom.Node node,
java.util.Hashtable lineTable)
Invoked to load the macro instruction based on its corresponding XML node. |
boolean |
mergeEvent(org.eclipse.swt.widgets.Event e)
If this command occurs consecutively, then this method gives this command a chance to merge mutliple commands together to reduce the overhead. |
boolean |
playback(org.eclipse.swt.widgets.Display display,
org.eclipse.swt.widgets.Composite parent,
org.eclipse.core.runtime.IProgressMonitor monitor)
|
protected abstract void |
playStructuredCommand(org.eclipse.swt.widgets.Widget widget,
java.lang.Object[] matches)
Used to play the structured command collectively for all the discovered matches. |
protected abstract void |
playStructuredCommandForFoundMatch(org.eclipse.swt.widgets.Widget widget,
java.lang.Object match)
Some events require to be played as matches are discovered. |
void |
processEvent(org.eclipse.swt.widgets.Event event)
Allows this command to process the corresponding event. |
void |
write(int indent,
java.lang.StringBuffer sb)
Equivalent to write(indent, writer, false, false) |
protected void |
writeAdditionalAttributes(java.lang.StringBuffer sb)
Sub-classes can optionally overwrite this method to write additional attributes to command. |
| Methods inherited from class org.eclipse.tptp.test.auto.gui.internal.commands.AbstractMacroCommand |
|---|
findDescriptiveField, findDescriptiveField, getDescriptiveField, getObjectClassName, getParent, getText, getTimeDifference, isRepeatRedundant, setDescriptiveField, setParent, setTimeDifference, toString, write, writeFinish, writeStart |
| Methods inherited from class org.eclipse.tptp.test.auto.gui.internal.macro.AbstractMacroInstruction |
|---|
bindSourceLocation, getStartLine, getStopLine, getWidgetId, setCorrespondingObject, setWidgetId |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.tptp.test.auto.gui.internal.commands.IMacroCommand |
|---|
getType |
| Methods inherited from interface org.eclipse.tptp.test.auto.gui.internal.core.IMacroInstruction |
|---|
getStartLine, getStopLine, getWidgetId, setCorrespondingObject, setWidgetId |
| Field Detail |
protected java.util.ArrayList items
| Constructor Detail |
public AbstractStructuredCommand(MacroCommandShell parent,
WidgetIdentifier wid)
parent - The parent macro command shell owning this commandwid - The widget identifier| Method Detail |
public boolean mergeEvent(org.eclipse.swt.widgets.Event e)
IMacroCommand
mergeEvent in interface IMacroCommandmergeEvent in class AbstractMacroCommandAbstractMacroCommand.mergeEvent(org.eclipse.swt.widgets.Event)protected java.lang.Object[] getItemsForEvent(org.eclipse.swt.widgets.Event event)
event - The event
public void processEvent(org.eclipse.swt.widgets.Event event)
IMacroCommand
event - The event that awaits processingIMacroCommand.processEvent(org.eclipse.swt.widgets.Event)protected java.util.Map getItemAttributes(org.eclipse.swt.widgets.Widget item)
item - The item
public IUIObject getCorrespondingObject()
IMacroInstruction
getCorrespondingObject in interface IMacroInstructiongetCorrespondingObject in class AbstractMacroInstructionAbstractMacroInstruction.getCorrespondingObject()
public void load(org.w3c.dom.Node node,
java.util.Hashtable lineTable)
throws org.eclipse.core.runtime.CoreException
IMacroInstruction
load in interface IMacroInstructionload in class AbstractMacroCommandorg.eclipse.core.runtime.CoreExceptionAbstractMacroCommand.load(org.w3c.dom.Node, java.util.Hashtable)protected void writeAdditionalAttributes(java.lang.StringBuffer sb)
sb - The string buffer that the attributes should be written to.
public void write(int indent,
java.lang.StringBuffer sb)
AbstractMacroCommand
write in interface IWritablewrite in class AbstractMacroCommandAbstractMacroCommand.write(int, java.lang.StringBuffer)
protected abstract void playStructuredCommand(org.eclipse.swt.widgets.Widget widget,
java.lang.Object[] matches)
widget - The widgetmatches - The matches discovered
protected abstract void playStructuredCommandForFoundMatch(org.eclipse.swt.widgets.Widget widget,
java.lang.Object match)
widget - The widget
public final boolean playback(org.eclipse.swt.widgets.Display display,
org.eclipse.swt.widgets.Composite parent,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
protected java.lang.Object[] findMatches(org.eclipse.swt.widgets.Widget widget)
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
protected IWidgetId findObjectId(int inx)
throws org.eclipse.core.runtime.CoreException
inx - The index of the item
org.eclipse.core.runtime.CoreException - If an error occurrs while attempting to find the objectprotected java.util.ArrayList getItems()
public boolean equals(java.lang.Object obj)
equals in class AbstractMacroCommand
|
TPTP 4.4.0 Testing Tools Project Internal API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||