TPTP 4.4.0 Testing Tools Project
Internal API Specification

org.eclipse.tptp.test.auto.gui.internal.macro
Class Macro

java.lang.Object
  extended byorg.eclipse.tptp.test.auto.gui.internal.macro.Macro
All Implemented Interfaces:
IPlayable, IWritable

public class Macro
extends java.lang.Object
implements IWritable, IPlayable

Models a macro


Field Summary
static int WORKBENCH_PART_CLOSED
           
 
Constructor Summary
Macro()
           
Macro(java.lang.String name)
           
 
Method Summary
 boolean addEvent(org.eclipse.swt.widgets.Event event)
           
 void addPause()
           
protected  void addShell(org.w3c.dom.Node node, java.util.Hashtable lineTable)
           
 java.lang.String getName()
           
 int getShellStackSize()
           
 MacroCommandShell getTopShell()
           
 void initializeForRecording(org.eclipse.swt.widgets.Display display)
           
 boolean playback(org.eclipse.swt.widgets.Display display, org.eclipse.swt.widgets.Composite parent, org.eclipse.core.runtime.IProgressMonitor monitor)
           
 void stopRecording()
           
 void write(int indent, java.io.PrintWriter writer)
           
 void write(int indent, java.lang.StringBuffer sb)
          Invoked after writeStart
 void writeFinish(int indent, java.lang.StringBuffer writer)
          Invoked in the end of the write of a writable object
 void writeStart(int indent, java.lang.StringBuffer writer)
          Invoked at start of the write of a writable object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WORKBENCH_PART_CLOSED

public static final int WORKBENCH_PART_CLOSED
See Also:
Constant Field Values
Constructor Detail

Macro

public Macro()

Macro

public Macro(java.lang.String name)
Method Detail

addShell

protected void addShell(org.w3c.dom.Node node,
                        java.util.Hashtable lineTable)
                 throws org.eclipse.core.runtime.CoreException
Throws:
org.eclipse.core.runtime.CoreException

initializeForRecording

public void initializeForRecording(org.eclipse.swt.widgets.Display display)

stopRecording

public void stopRecording()

addEvent

public boolean addEvent(org.eclipse.swt.widgets.Event event)
                 throws java.lang.Exception
Throws:
java.lang.Exception

addPause

public void addPause()

getTopShell

public MacroCommandShell getTopShell()

playback

public 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
Specified by:
playback in interface IPlayable
Throws:
org.eclipse.core.runtime.CoreException

write

public void write(int indent,
                  java.io.PrintWriter writer)

write

public void write(int indent,
                  java.lang.StringBuffer sb)
Description copied from interface: IWritable
Invoked after writeStart

Specified by:
write in interface IWritable
Parameters:
indent - The indents
sb - The buffer that the string serialization should be written to

getName

public java.lang.String getName()

writeStart

public void writeStart(int indent,
                       java.lang.StringBuffer writer)
Description copied from interface: IWritable
Invoked at start of the write of a writable object

Specified by:
writeStart in interface IWritable
Parameters:
indent - The indents
writer - The buffer that the string serialization should be written to

writeFinish

public void writeFinish(int indent,
                        java.lang.StringBuffer writer)
Description copied from interface: IWritable
Invoked in the end of the write of a writable object

Specified by:
writeFinish in interface IWritable
Parameters:
indent - The indents
writer - The buffer that the string serialization should be written to

getShellStackSize

public int getShellStackSize()

TPTP 4.4.0 Testing Tools Project
Internal API Specification