org.eclipse.tptp.test.auto.gui.internal.editor
Class AutoGUITestCasesForm
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.EditorPart
org.eclipse.ui.forms.editor.FormPage
org.eclipse.hyades.test.ui.internal.editor.form.util.EditorEclipseForm
org.eclipse.hyades.test.tools.ui.common.internal.editor.TestCasesEclipseForm
org.eclipse.tptp.test.auto.gui.internal.editor.AutoGUITestCasesForm
- All Implemented Interfaces:
- org.eclipse.core.runtime.IAdaptable, org.eclipse.ui.IEditorPart, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.ui.forms.editor.IFormPage, IITestSuiteProvider, org.eclipse.ui.ISaveablePart, org.eclipse.jface.viewers.ISelectionChangedListener, org.eclipse.ui.texteditor.ITextEditorExtension2, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.IWorkbenchPart3, org.eclipse.ui.part.IWorkbenchPartOrientation
- public class AutoGUITestCasesForm
- extends TestCasesEclipseForm
- implements org.eclipse.ui.texteditor.ITextEditorExtension2
This form provides the 'macro-examine' page that allows users to easily navigate through
a macro and make the appropriate adjustments.
| Fields inherited from interface org.eclipse.ui.IEditorPart |
PROP_DIRTY, PROP_INPUT |
| Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
PROP_TITLE |
|
Constructor Summary |
AutoGUITestCasesForm(org.eclipse.hyades.ui.editor.IEditorExtension editor,
java.lang.String id,
java.lang.String title)
|
| Methods inherited from class org.eclipse.hyades.test.tools.ui.common.internal.editor.TestCasesEclipseForm |
addCustomButtons, buttonsCreated, createCommonPropertySection, createDetailPropertySection, createTestCaseSection, getAddTestCaseAction, getCommonSection, getCurrentSelection, getEnableStatus, getEobjectTree, getStanderdControlIndices, getTestSuite, registerHelp, selectionChanged, setStandardControlIndices, toggleEnableStatus, toggleEnableStatus, toggleStdButtonEnableStatus |
| Methods inherited from class org.eclipse.ui.forms.editor.FormPage |
canLeaveThePage, createPartControl, doSave, doSaveAs, getEditor, getId, getIndex, getManagedForm, getPartControl, getTitleImage, init, initialize, isActive, isDirty, isEditor, isSaveAsAllowed, selectReveal, setFocus, setIndex |
| Methods inherited from class org.eclipse.ui.part.EditorPart |
checkSite, getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setInput, setInputWithNotify, setPartName |
| Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy |
| Methods inherited from class org.eclipse.core.commands.common.EventManager |
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.ui.IEditorPart |
getEditorInput, getEditorSite |
| Methods inherited from interface org.eclipse.ui.IWorkbenchPart |
addPropertyListener, getSite, getTitle, getTitleToolTip, removePropertyListener |
| Methods inherited from interface org.eclipse.ui.ISaveablePart |
isSaveOnCloseNeeded |
UNDO_OPERATION_LIMIT
protected static final int UNDO_OPERATION_LIMIT
- See Also:
- Constant Field Values
AutoGUITestCasesForm
public AutoGUITestCasesForm(org.eclipse.hyades.ui.editor.IEditorExtension editor,
java.lang.String id,
java.lang.String title)
createRightColumnControls
protected void createRightColumnControls(org.eclipse.swt.widgets.Composite parent)
- Description copied from class:
EditorEclipseForm
- The right column controls of the page are created by this method
- Overrides:
createRightColumnControls in class TestCasesEclipseForm
createLeftColumnControls
protected void createLeftColumnControls(org.eclipse.swt.widgets.Composite parent)
- Description copied from class:
TestCasesEclipseForm
- Create the left column controls for this form
- Overrides:
createLeftColumnControls in class TestCasesEclipseForm
- Parameters:
parent - The parent composite
createFormContent
protected void createFormContent(org.eclipse.ui.forms.IManagedForm managedForm)
- This method is over-written to re-organize controls based on a different
layout than the one that the parent class provides.
This form is divided into two horizontal panes that can be resized. The
upper pane provides a logical tree view of the macro whereas the lower
pane provides the raw XML macro.
- Overrides:
createFormContent in class TestCasesEclipseForm
setActive
public void setActive(boolean active)
- Specified by:
setActive in interface org.eclipse.ui.forms.editor.IFormPage
refresh
public void refresh()
- Refreshes the test case tree and the object mine tree owned by
this form.
getRawRepresentation
public org.eclipse.swt.custom.StyledText getRawRepresentation()
dispose
public void dispose()
- Specified by:
dispose in interface org.eclipse.ui.IWorkbenchPart- Overrides:
dispose in class TestCasesEclipseForm
- See Also:
org.eclipse.update.ui.forms.internal.IForm#dispose()
addProperty
public void addProperty(org.eclipse.hyades.models.common.facades.behavioral.ITestCase testCase,
byte field,
java.lang.String value)
- Adds extended properties to test cases
- Parameters:
testCase - The test casefield - The field to be added - see constants in GUITestCasePropertiesvalue - The value of the field
getProperty
public java.lang.String getProperty(org.eclipse.hyades.models.common.facades.behavioral.ITestCase testCase,
byte field)
getObjectMineTreeStruct
public AutoGUIObjectMineTreeStructure getObjectMineTreeStruct()
updateTestProperty
public boolean updateTestProperty(java.lang.String oldValue,
java.lang.String newValue,
boolean isObjectMine)
getLogicalTreeRepresentaion
public AutoGUITestCaseTreeStructure getLogicalTreeRepresentaion()
- Returns:
- the logicalTreeRepresentaion
getLogicalRepresentationListener
public AutoGUITestCasesForm.LogicalRepresentationListener getLogicalRepresentationListener()
- Returns:
- the logicalRepresentationListener
getForm
public org.eclipse.ui.forms.widgets.ScrolledForm getForm()
- Overrides:
getForm in class EditorEclipseForm
- Returns:
- the form
getSashForm
public org.eclipse.swt.custom.SashForm getSashForm()
- Returns:
- the sashForm
getAdapter
public java.lang.Object getAdapter(java.lang.Class adapter)
- Specified by:
getAdapter in interface org.eclipse.core.runtime.IAdaptable
- See Also:
WorkbenchPart.getAdapter(java.lang.Class)
isEditorInputModifiable
public boolean isEditorInputModifiable()
- This needs to return true in order to enable the replace
option of the the find dialog.
- Specified by:
isEditorInputModifiable in interface org.eclipse.ui.texteditor.ITextEditorExtension2
validateEditorInputState
public boolean validateEditorInputState()
- Specified by:
validateEditorInputState in interface org.eclipse.ui.texteditor.ITextEditorExtension2