|
||||||||||
| 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.objectweb.clif.console.lib.egui.editor.TestPlanEditor
public class TestPlanEditor
Multi-Page editor for CLIF Test Plan edition. This editor has 2 view:
| Field Summary | |
|---|---|
protected static java.lang.String[] |
colName
|
protected TestPlanMasterEditPage |
editPage
|
protected static java.lang.String |
ID_PAGE_EDITION
|
protected static java.lang.String |
ID_PAGE_TEST
|
protected static int |
INDEX_COL_ARGUMENT
|
protected static int |
INDEX_COL_CLASS
|
protected static int |
INDEX_COL_COMMENT
|
protected static int |
INDEX_COL_ID
|
protected static int |
INDEX_COL_ROLE
|
protected static int |
INDEX_COL_SERVER
|
protected static int |
INDEX_COL_STATE
|
static int |
POS_PAGE_EDITION
Edition page use for editing a testplan |
static int |
POS_PAGE_TEST
Test page use for running a testplan. |
protected TestPlanTestPage |
testPage
|
| 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()
Simple construtor |
|
| Method Summary | |
|---|---|
protected void |
addPages()
Add always editPage and add testPage if clifserver is started. |
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. |
int |
getCurrentPage()
Get the current page. |
TestPlanMasterEditPage |
getEditPage()
Get edit page |
TestPlanTestPage |
getTestPage()
Get test page |
java.util.Map |
getTestPlan()
Get the test plan |
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 |
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, configurePage, createPageContainer, createPages, createToolkit, dispose, editorDirtyStateChanged, findPage, getActiveEditor, getActivePageInstance, getSelectedPage, getToolkit, init, pageChange, removePage, removePageChangedListener, selectReveal, setActivePage, setActivePage, setActivePage, updateActionBarContributor |
| Methods inherited from class org.eclipse.ui.part.MultiPageEditorPart |
|---|
createPartControl, createSite, getActivePage, getAdapter, getContainer, getControl, getEditor, getPageCount, getPageImage, getPageText, handlePropertyChange, 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 |
|---|
addPropertyListener, firePropertyChange, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getSite, getTitle, getTitleImage, removePropertyListener, 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 POS_PAGE_TEST
protected static final java.lang.String ID_PAGE_TEST
protected TestPlanTestPage testPage
protected static final int INDEX_COL_ID
protected static final int INDEX_COL_SERVER
protected static final int INDEX_COL_ROLE
protected static final int INDEX_COL_CLASS
protected static final int INDEX_COL_ARGUMENT
protected static final int INDEX_COL_COMMENT
protected static final int INDEX_COL_STATE
protected static final java.lang.String[] colName
| Constructor Detail |
|---|
public TestPlanEditor()
| Method Detail |
|---|
public void createPageEdition()
public void createPageTest()
protected void addPages()
addPages in class org.eclipse.ui.forms.editor.FormEditorpublic void doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
doSave in interface org.eclipse.ui.ISaveablePartdoSave in class org.eclipse.ui.part.EditorPartpublic void doSaveAs()
doSaveAs in interface org.eclipse.ui.ISaveablePartdoSaveAs in class org.eclipse.ui.part.EditorPartpublic boolean isSaveAsAllowed()
isSaveAsAllowed in interface org.eclipse.ui.ISaveablePartisSaveAsAllowed in class org.eclipse.ui.part.EditorPartpublic boolean isDirty()
isDirty in interface org.eclipse.ui.ISaveablePartisDirty in class org.eclipse.ui.forms.editor.FormEditorpublic void setDirty(boolean isDirty)
isDirty - the dirty state true if editor needs to be saved.public boolean isEditable()
public void setEditable(boolean isEditable)
isEditable - the editable statepublic TestPlanMasterEditPage getEditPage()
public TestPlanTestPage getTestPage()
public java.util.Map getTestPlan()
public int getCurrentPage()
getCurrentPage in class org.eclipse.ui.forms.editor.FormEditor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||