TPTP 4.4.0 Testing Tools Project
Internal API Specification

org.eclipse.tptp.test.auto.gui.internal.commands
Class CloseWorkbenchPartCommand

java.lang.Object
  extended byorg.eclipse.tptp.test.auto.gui.internal.macro.AbstractMacroInstruction
      extended byorg.eclipse.tptp.test.auto.gui.internal.commands.AbstractMacroCommand
          extended byorg.eclipse.tptp.test.auto.gui.internal.commands.CloseWorkbenchPartCommand
All Implemented Interfaces:
IMacroCommand, IMacroInstruction, IPlayable, IWritable

public class CloseWorkbenchPartCommand
extends AbstractMacroCommand

The purpose of this class is to generate commands responsible for closing workbench parts.


Field Summary
static java.lang.String TYPE
           
 
Fields inherited from class org.eclipse.tptp.test.auto.gui.internal.commands.AbstractMacroCommand
DESCRIPTIVE_FIELD_BOUND
 
Constructor Summary
CloseWorkbenchPartCommand(MacroCommandShell parent, WidgetIdentifier widgetId)
           
 
Method Summary
 java.lang.String getType()
          Returns the type of this command
 boolean playback(org.eclipse.swt.widgets.Display display, org.eclipse.swt.widgets.Composite parent, org.eclipse.core.runtime.IProgressMonitor monitor)
           
 void processEvent(org.eclipse.swt.widgets.Event e)
          Allows this command to process the corresponding event.
 void write(int indent, java.lang.StringBuffer sb)
          Equivalent to write(indent, writer, false, false)
 
Methods inherited from class org.eclipse.tptp.test.auto.gui.internal.commands.AbstractMacroCommand
equals, findDescriptiveField, findDescriptiveField, getDescriptiveField, getObjectClassName, getParent, getText, getTimeDifference, isRepeatRedundant, load, mergeEvent, setDescriptiveField, setParent, setTimeDifference, toString, write, writeFinish, writeStart
 
Methods inherited from class org.eclipse.tptp.test.auto.gui.internal.macro.AbstractMacroInstruction
bindSourceLocation, getCorrespondingObject, 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.core.IMacroInstruction
getCorrespondingObject, getStartLine, getStopLine, getWidgetId, setCorrespondingObject, setWidgetId
 

Field Detail

TYPE

public static final java.lang.String TYPE
See Also:
Constant Field Values
Constructor Detail

CloseWorkbenchPartCommand

public CloseWorkbenchPartCommand(MacroCommandShell parent,
                                 WidgetIdentifier widgetId)
Method Detail

getType

public java.lang.String getType()
Description copied from interface: IMacroCommand
Returns the type of this command

Returns:
The type

processEvent

public void processEvent(org.eclipse.swt.widgets.Event e)
Description copied from interface: IMacroCommand
Allows this command to process the corresponding event.

Parameters:
e - The event that awaits processing

write

public void write(int indent,
                  java.lang.StringBuffer sb)
Description copied from class: AbstractMacroCommand
Equivalent to write(indent, writer, false, false)

Specified by:
write in interface IWritable
Overrides:
write in class AbstractMacroCommand

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
Throws:
org.eclipse.core.runtime.CoreException

TPTP 4.4.0 Testing Tools Project
Internal API Specification