public class TestPlanEditor
extends org.eclipse.ui.forms.editor.FormEditor
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
colName |
protected TestPlanMasterEditPage |
editPage |
protected static java.lang.String |
ID_PAGE_EDITION |
static int |
INDEX_COL_ARGUMENT |
static int |
INDEX_COL_CLASS |
static int |
INDEX_COL_COMMENT |
static int |
INDEX_COL_ID |
static int |
INDEX_COL_ROLE |
static int |
INDEX_COL_SERVER |
static int |
INDEX_COL_STATE |
static int |
POS_PAGE_EDITION
Edition page use for editing a test plan
|
Constructor and Description |
---|
TestPlanEditor() |
Modifier and Type | Method and Description |
---|---|
protected void |
addPages()
Add always editPage and add testPage if registry is started and this
test plan is deployed.
|
void |
createPageEdition()
Create a blades edition page sort by class.
|
void |
createPageTest()
Create a test plan execution commands.
|
void |
doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
Save Test Plan with Java Properties format.
|
void |
doSaveAs()
Save Test Plan in new file and change Test Plan title.
|
TestPlanMasterEditPage |
getEditPage()
Get edit page
|
boolean |
isDirty()
Test if the edition page needs to be save.
|
boolean |
isEditable()
Test if the edition page is editable.
|
boolean |
isSaveAsAllowed()
SaveAs is supported for this editor
|
static void |
setDeployedTest(java.lang.String testName)
Sets the file name of the currently deployed test plan
|
void |
setDirty(boolean isDirty)
Set the editor dirty state.
|
void |
setEditable(boolean isEditable)
Set the editor editable state
|
addPage, addPage, addPage, addPage, addPage, addPage, addPageChangedListener, close, commitPages, configurePage, createPageContainer, createPages, createToolkit, dispose, editorDirtyStateChanged, findPage, getActiveEditor, getActivePageInstance, getCurrentPage, getSelectedPage, getToolkit, init, pageChange, removePage, removePageChangedListener, selectReveal, setActivePage, setActivePage, setActivePage, updateActionBarContributor
createPartControl, createSite, findEditors, getActivePage, getAdapter, getContainer, getControl, getEditor, getPageCount, getPageImage, getPageText, handlePropertyChange, setActiveEditor, setControl, setFocus, setPageImage, setPageText
checkSite, getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setInput, setInputWithNotify, setPartName
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
public static final int POS_PAGE_EDITION
protected static final java.lang.String ID_PAGE_EDITION
protected TestPlanMasterEditPage editPage
public static final int INDEX_COL_ID
public static final int INDEX_COL_SERVER
public static final int INDEX_COL_ROLE
public static final int INDEX_COL_CLASS
public static final int INDEX_COL_ARGUMENT
public static final int INDEX_COL_COMMENT
public static final int INDEX_COL_STATE
public static final java.lang.String[] colName
public static void setDeployedTest(java.lang.String testName)
testName
- file name of deployed test planpublic void createPageEdition()
public void createPageTest() throws ClifException
ClifException
protected void addPages()
addPages
in class org.eclipse.ui.forms.editor.FormEditor
public void doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
doSave
in interface org.eclipse.ui.ISaveablePart
doSave
in class org.eclipse.ui.part.EditorPart
public void doSaveAs()
doSaveAs
in interface org.eclipse.ui.ISaveablePart
doSaveAs
in class org.eclipse.ui.part.EditorPart
public boolean isSaveAsAllowed()
isSaveAsAllowed
in interface org.eclipse.ui.ISaveablePart
isSaveAsAllowed
in class org.eclipse.ui.part.EditorPart
public boolean isDirty()
isDirty
in interface org.eclipse.ui.ISaveablePart
isDirty
in class org.eclipse.ui.forms.editor.FormEditor
public void setDirty(boolean isDirty)
isDirty
- the dirty state true if editor needs to be saved.public boolean isEditable()
public TestPlanMasterEditPage getEditPage()
public void setEditable(boolean isEditable)
isEditable
- the editable state