|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.EditorPart
org.eclipse.ui.part.MultiPageEditorPart
org.eclipse.ui.forms.editor.FormEditor
org.ow2.clif.console.lib.egui.editor.TestPlanEditor
public class TestPlanEditor
Multi-Page editor for CLIF Test Plans. This editor has 2 views:
Field Summary | |
---|---|
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 |
Fields inherited from class org.eclipse.ui.forms.editor.FormEditor |
---|
pages |
Fields inherited from interface org.eclipse.ui.IEditorPart |
---|
PROP_DIRTY, PROP_INPUT |
Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
---|
PROP_TITLE |
Constructor Summary | |
---|---|
TestPlanEditor()
|
Method Summary | |
---|---|
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 |
Methods inherited from class org.eclipse.ui.forms.editor.FormEditor |
---|
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 |
Methods inherited from class org.eclipse.ui.part.MultiPageEditorPart |
---|
createPartControl, createSite, findEditors, getActivePage, getAdapter, getContainer, getControl, getEditor, getPageCount, getPageImage, getPageText, handlePropertyChange, setActiveEditor, setControl, setFocus, setPageImage, setPageText |
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, getTitleImage, 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.IWorkbenchPart |
---|
addPropertyListener, getSite, getTitle, getTitleImage, removePropertyListener |
Field Detail |
---|
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
Constructor Detail |
---|
public TestPlanEditor()
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |