|
IBM Rational Performance Tester SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.rational.common.test.editor.framework.TestEditor
com.ibm.rational.test.lt.testeditor.main.LoadTestEditor
public class LoadTestEditor
Load Test Editor.
Nested Class Summary | |
---|---|
class |
LoadTestEditor.FieldMagnifier
|
class |
LoadTestEditor.ToggleEditorViewModeAction
|
Field Summary | |
---|---|
static int |
MAX_HISTORY
Max number of last accessed data sources to put in menu |
static String |
ms_PRIMARY_FEATURE
|
static byte |
VIEW_MODE_SUBSTITUTERS
|
Fields inherited from class com.ibm.rational.common.test.editor.framework.TestEditor |
---|
LASTFIELDSELECTION, LASTSELECTION, VIEW_MODE_NORMAL |
Fields inherited from interface com.ibm.rational.common.test.editor.framework.extensions.IEditorStateListener |
---|
AFTER_SAVE, BEFORE_SAVE, LOADED, UNLOADING |
Fields inherited from interface com.ibm.rational.common.test.editor.framework.kernel.actions.ITestEditorActionIDs |
---|
ACTION_GROUP_EDIT_END, ACTION_GROUP_EDIT_START, ACTION_GROUP_FILTERS_END, ACTION_GROUP_FILTERS_START, ACTION_GROUP_FIND_END, ACTION_GROUP_FIND_START, ACTION_GROUP_GOTO_END, ACTION_GROUP_GOTO_START, ACTION_GROUP_MODIFY_CONTRIBUTIONS_END, ACTION_GROUP_MODIFY_CONTRIBUTIONS_START, ACTION_GROUP_NEW_END, ACTION_GROUP_NEW_START, ACTION_GROUP_SHOW_END, ACTION_GROUP_SHOW_START, COPY, CUT, DELETE, PASTE, SAVE, SELECT_ALL |
Fields inherited from interface com.ibm.rational.common.test.editor.framework.kernel.interfaces.ILoggingConstants |
---|
RPCA0100W, RPCA0101W, RPCA0102W, RPCA0103W, RPCA0104W, RPCA0105E, RPCA0106E, RPCA0107E, RPCA0108E, RPCA0109E, RPCA0110E, RPCA1001E, RPCA1001W, RPCA1002E |
Constructor Summary | |
---|---|
LoadTestEditor(CommonEditorExtension ext)
|
Method Summary | |
---|---|
void |
activate(boolean active)
|
void |
addAvailableType(String type)
|
Datapool[] |
addDatapool()
Prompts user for a datapool file. |
com.ibm.rational.common.test.editor.framework.kernel.util.TestTreeRegion |
addSplitoutRegion(String fileName,
IStructuredSelection selection)
|
void |
afterSave(TestEditor editor)
|
void |
attachHiddenVarsContainer()
|
boolean |
beforeSave(TestEditor editor)
|
void |
cacheDataSource(com.ibm.rational.test.common.models.behavior.cbdata.DataSource ds)
|
protected void |
connectToEclipse(IEditorPart part)
|
void |
create()
Creates editor contents. |
protected LoadTestEditorForm |
createEditorForm()
Creates and returns EditorForm |
com.ibm.rational.common.test.editor.framework.extensions.ExceptionsUI |
createExceptionsUI(ExtLayoutProvider provider)
|
protected RptMenuManager |
createMenuManager()
Registers menu groups with TestEditorPlugin.getMenuManager()
Creates following groups:
"lt.add"
"lt.add.custom.code"
"lt.add.vp"
"lt.insert"
"lt.insert.custom_code" |
CBTest |
createTestObject()
Calls LttestFactory.eINSTANCE.loadLTTest( getTestSuite() ). |
void |
dataSourceRemoved(com.ibm.rational.test.common.models.behavior.cbdata.DataSourceHost _dsh,
com.ibm.rational.test.common.models.behavior.cbdata.CoreHarvester _ch)
|
void |
detachHiddenVarsContainer()
|
void |
displayMatch(Object match)
Display SearchMatch or FieldMatch |
void |
displayObject(com.ibm.rational.common.test.editor.framework.kernel.interfaces.ITargetDescriptor target)
Directs TestEditor to locate and select specified model element in the tree section. |
protected void |
doFirstTimeInit()
This method is called when a test is opened in th editor for the very first time. |
void |
fillContextMenu(IMenuManager menu)
Fills content menu for TestEditor's MainSection |
protected String |
formatMessage(com.ibm.rational.test.common.models.behavior.exceptions.CommonModelException e1)
|
com.ibm.rational.test.lt.testeditor.actions.AllowRulesAccumulatonAction |
getAllowRulesAccumulationAction()
|
String[] |
getApplicableTypes()
Override base class' implementation to load only those extensions that support LTTest type. |
BuiltinDatasources |
getBuiltinDataSources()
|
List<com.ibm.rational.test.common.models.behavior.cbdata.DataSource> |
getCachedDataSources()
Returns a list of cached (recently accessed) DataSource s. |
String |
getEditorName()
Returns editor name. |
com.ibm.rational.test.lt.testeditor.main.LoadTestEditor.SplitTestRegion |
getElementRegion(CBActionElement element)
|
com.ibm.rational.test.common.models.behavior.variables.CBVarContainer |
getHiddenVarsContainer()
|
com.ibm.rational.test.common.models.behavior.cbdata.DatapoolHarvester |
getLastDatapool()
|
LTTest |
getLtTest()
Returns LTTest |
com.ibm.rational.test.lt.datacorrelation.rules.ui.generator.RuleSetGenerationUIHelper |
getRuleSetGeneratorHelper()
|
com.ibm.rational.test.lt.testeditor.actions.ShowAccumulatedRulesAction |
getShowAccumulatedRulesAction()
|
IConfigurationElement[] |
getSupportedDataSources(String catId)
|
String[] |
getSupportedDataSourcesTypes()
Returns array of IDs of DataSources that this LTTest can support. |
ISearchQuery |
getTestSearchQuery(com.ibm.rational.common.test.editor.framework.kernel.search.QuerySpecification specs,
int what)
Returns instanceof SearchQuery . |
LoadTestEditor.ToggleEditorViewModeAction |
getToggleViewModeAction()
|
byte |
getViewMode()
|
void |
initHeading(com.ibm.rational.common.test.editor.framework.kernel.AbstractLoadTestEditorForm form)
|
boolean |
isOkToSave()
Always returns true. |
boolean |
isReferencesNeedReview()
|
boolean |
isRulesAccumulationEnabled()
|
void |
loaded(TestEditor editor)
|
void |
markDirty()
Calls SplitTestAction.resetCachedSplitParticipantStatus(getLtTest()) |
void |
propertyChange(PropertyChangeEvent event)
|
void |
refreshDetails()
|
void |
refreshTree()
|
boolean |
removeDatapools(Object[] objects)
Removes specified datapools from the test. |
boolean |
removeFromCache(com.ibm.rational.test.common.models.behavior.cbdata.DataSource ds)
Remove specified DataSource from cache. |
ArrayList<String> |
removeRegionsFor(Object[] array)
|
protected void |
restoreState()
Restores editor state upon load. |
void |
saveState()
Saves editor state |
void |
searchForDataSources(IDCStringLocator location,
com.ibm.rational.test.common.models.behavior.cbdata.Substituter existing)
|
void |
setAllowRulesAccumulation(boolean _allowRulesAccumulation)
|
void |
setHiddenVarsContainer(com.ibm.rational.test.common.models.behavior.variables.CBVarContainer hiddenVarsContainer)
|
void |
setInput(Object arg0)
This method is called when the test is opening in the Eclipse editor. |
void |
setLastDatapool(com.ibm.rational.test.common.models.behavior.cbdata.DatapoolHarvester lastDatapool)
Stores least recently used DatapoolHarvester |
void |
setReferencesNeedReview(boolean isReferencesNeedReview)
|
protected void |
setViewMode(byte newViewMode,
StructuredSelection ssel)
This implementation does nothing. |
void |
unload(boolean reserved)
This method is called when TestEditor is being unloaded. |
void |
unloading(TestEditor editor)
|
void |
verifyDatapools()
|
void |
verifyDatapools(String oldFile,
String newFile)
This method is called from DatapoolMonitor and should not be called directly by clients. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ms_PRIMARY_FEATURE
public static final int MAX_HISTORY
public static final byte VIEW_MODE_SUBSTITUTERS
Constructor Detail |
---|
public LoadTestEditor(CommonEditorExtension ext)
ext
- Method Detail |
---|
public String getEditorName()
TestEditor
getEditorName
in class TestEditor
protected RptMenuManager createMenuManager()
TestEditorPlugin.getMenuManager()
Creates following groups:
createMenuManager
in class TestEditor
public void verifyDatapools()
public void cacheDataSource(com.ibm.rational.test.common.models.behavior.cbdata.DataSource ds)
public List<com.ibm.rational.test.common.models.behavior.cbdata.DataSource> getCachedDataSources()
DataSource
s.
public boolean removeFromCache(com.ibm.rational.test.common.models.behavior.cbdata.DataSource ds)
DataSource
from cache. This is typically alled when the DataqSource
is being deleted
ds
- DataSource
true
if deleted, false
if not.public String[] getApplicableTypes()
ActionHandler, LabelProvider
and LayoutProvider
classes
that handle such elements as IF
and Loop
. However, CommonActionHandler
does not
allow for addition of any of these objects, even though the CommonLabelProvider
and
CommonLayoutProvider
"know" how to display them. You extension will have to specify which
objects of Common it permits to be added.
getApplicableTypes
in class TestEditor
TestEditor.getApplicableTypes()
protected LoadTestEditorForm createEditorForm()
TestEditor
createEditorForm
in class TestEditor
public void initHeading(com.ibm.rational.common.test.editor.framework.kernel.AbstractLoadTestEditorForm form)
initHeading
in class TestEditor
public CBTest createTestObject()
LttestFactory.eINSTANCE.loadLTTest( getTestSuite() ). Clients must not call this method directly.
createTestObject
in class TestEditor
TestEditor.createTestObject()
protected String formatMessage(com.ibm.rational.test.common.models.behavior.exceptions.CommonModelException e1)
formatMessage
in class TestEditor
public LTTest getLtTest()
LTTest
public void unload(boolean reserved)
TestEditor
TestEditor
is being unloaded.
unload
in class TestEditor
public Datapool[] addDatapool()
DatapoolUtil.addDatapool( this, false, null, null );
Datapool
type)Datapool
public boolean removeDatapools(Object[] objects)
objects
- An array of Object
s that are Datapool
sDatapoolUtil.removeDatapoolsEx(LoadTestEditor, Object[])
public void searchForDataSources(IDCStringLocator location, com.ibm.rational.test.common.models.behavior.cbdata.Substituter existing)
location
- existing
- public void displayObject(com.ibm.rational.common.test.editor.framework.kernel.interfaces.ITargetDescriptor target)
TestEditor
TestEditor
to locate and select specified model element in the tree section.
Optionally, ITargetDescriptor
may contain additional, more precise, information about attribute
and position within attribute of the target model element.
NOTE this mechanism is subject to chage in the future versions of TestEditor.
displayObject
in class TestEditor
target
- ITargetDescriptorITargetDescriptor
,
ExtLayoutProvider.navigateTo(ITargetDescriptor)
protected void restoreState()
TestEditor
restoreState
in class TestEditor
public void saveState()
TestEditor
saveState
in class TestEditor
public void verifyDatapools(String oldFile, String newFile)
DatapoolMonitor
and should not be called directly by clients.
oldFile
- newFile
- public com.ibm.rational.test.common.models.behavior.cbdata.DatapoolHarvester getLastDatapool()
public void setLastDatapool(com.ibm.rational.test.common.models.behavior.cbdata.DatapoolHarvester lastDatapool)
DatapoolHarvester
lastDatapool
- The lastDatapool to set.public void propertyChange(PropertyChangeEvent event)
propertyChange
in interface IPropertyChangeListener
public void refreshTree()
public void refreshDetails()
public void displayMatch(Object match)
displayMatch
in class TestEditor
match
- ObjectTestEditor.displayMatch(java.lang.Object)
public BuiltinDatasources getBuiltinDataSources()
public void fillContextMenu(IMenuManager menu)
TestEditor
fillContextMenu
in class TestEditor
menu
- IMenuManagerpublic void create()
TestEditor
create
in class TestEditor
protected void doFirstTimeInit()
TestEditor
doFirstTimeInit
in class TestEditor
public void activate(boolean active)
activate
in class TestEditor
public void setInput(Object arg0)
TestEditor
setInput
in class TestEditor
public final IConfigurationElement[] getSupportedDataSources(String catId)
public final String[] getSupportedDataSourcesTypes()
LTTest
can support. These IDs are loaded from
DataSourceViewPage.DATASOURCE_CAT_ID
extensions.
DataSourceViewPage
,
DataSourceView}
,
DataCorrelatingTextAttrField
public ISearchQuery getTestSearchQuery(com.ibm.rational.common.test.editor.framework.kernel.search.QuerySpecification specs, int what)
TestEditor
SearchQuery
. Extensing classes may override and return null
if no search is supported, or some more specialized query. When this method is called from SearchPage
,
the second argument is QuerySpecification.QUERY_TYPE_DEFALT
.
getTestSearchQuery
in class TestEditor
specs
- QuerySpecification
query specification
protected void connectToEclipse(IEditorPart part)
connectToEclipse
in class TestEditor
public byte getViewMode()
getViewMode
in class TestEditor
protected void setViewMode(byte newViewMode, StructuredSelection ssel)
TestEditor
setViewMode
in class TestEditor
newViewMode
- byte. Editor mode.ssel
- Selection of objects to display innew mode.public void addAvailableType(String type)
addAvailableType
in class TestEditor
public void markDirty()
SplitTestAction.resetCachedSplitParticipantStatus(getLtTest())
markDirty
in class TestEditor
TestEditor.markDirty()
public LoadTestEditor.ToggleEditorViewModeAction getToggleViewModeAction()
public com.ibm.rational.common.test.editor.framework.kernel.util.TestTreeRegion addSplitoutRegion(String fileName, IStructuredSelection selection)
public com.ibm.rational.test.lt.testeditor.main.LoadTestEditor.SplitTestRegion getElementRegion(CBActionElement element)
public ArrayList<String> removeRegionsFor(Object[] array)
public boolean isOkToSave()
TestEditor
isOkToSave
in class TestEditor
public boolean isReferencesNeedReview()
public void setReferencesNeedReview(boolean isReferencesNeedReview)
public com.ibm.rational.common.test.editor.framework.extensions.ExceptionsUI createExceptionsUI(ExtLayoutProvider provider)
createExceptionsUI
in class TestEditor
public com.ibm.rational.test.lt.datacorrelation.rules.ui.generator.RuleSetGenerationUIHelper getRuleSetGeneratorHelper()
public void dataSourceRemoved(com.ibm.rational.test.common.models.behavior.cbdata.DataSourceHost _dsh, com.ibm.rational.test.common.models.behavior.cbdata.CoreHarvester _ch)
public boolean isRulesAccumulationEnabled()
public final void setAllowRulesAccumulation(boolean _allowRulesAccumulation)
public com.ibm.rational.test.lt.testeditor.actions.ShowAccumulatedRulesAction getShowAccumulatedRulesAction()
public final com.ibm.rational.test.lt.testeditor.actions.AllowRulesAccumulatonAction getAllowRulesAccumulationAction()
public void afterSave(TestEditor editor)
afterSave
in interface IEditorStateListener
public boolean beforeSave(TestEditor editor)
beforeSave
in interface IEditorStateListener
public void loaded(TestEditor editor)
loaded
in interface IEditorStateListener
public void attachHiddenVarsContainer()
public void detachHiddenVarsContainer()
public void unloading(TestEditor editor)
unloading
in interface IEditorStateListener
public com.ibm.rational.test.common.models.behavior.variables.CBVarContainer getHiddenVarsContainer()
public void setHiddenVarsContainer(com.ibm.rational.test.common.models.behavior.variables.CBVarContainer hiddenVarsContainer)
|
IBM Rational Performance Tester SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |