com.ibm.rational.test.lt.testeditor.main

Class LoadTestEditor

    • Field Detail

      • ID

        public static final String ID
      • ms_PRIMARY_FEATURE

        public static final String ms_PRIMARY_FEATURE
      • MAX_HISTORY

        public static final int MAX_HISTORY
        Max number of last accessed data sources to put in menu
      • VIEW_MODE_SUBSTITUTERS

        public static final byte VIEW_MODE_SUBSTITUTERS
    • Constructor Detail

      • LoadTestEditor

        public LoadTestEditor()
        Parameters:
        ext -
    • Method Detail

      • getTest

        public LTTest getTest()
        Description copied from class: TestEditor
        Returns CBTest. CBTest is base class for concreate test types, and is a root element in the TestEditor's Tree section.
        Specified by:
        getTest in interface com.ibm.rational.common.test.editor.framework.kernel.interfaces.ITestEditor
        Overrides:
        getTest in class TestEditor
        Returns:
        CBTEst
      • createEditorForm

        protected com.ibm.rational.common.test.editor.framework.TestEditorForm createEditorForm()
        Description copied from class: TestEditor
        Creates the TestEditorForm. This method can be overridden to return a sub-class instance.
        Overrides:
        createEditorForm in class TestEditor
        Returns:
        TestEditorForm - the editor form
      • verifyDatapools

        public void verifyDatapools()
      • cacheDataSource

        public void cacheDataSource(com.ibm.rational.test.common.models.behavior.cbdata.DataSource ds)
      • getCachedDataSources

        public List<com.ibm.rational.test.common.models.behavior.cbdata.DataSource> getCachedDataSources()
        Returns a list of cached (recently accessed) DataSources.
        Returns:
        List
      • removeFromCache

        public boolean removeFromCache(com.ibm.rational.test.common.models.behavior.cbdata.DataSource ds)
        Remove specified DataSource from cache. This is typically alled when the DataqSource is being deleted
        Parameters:
        ds - DataSource
        Returns:
        boolean true if deleted, false if not.
      • getApplicableTypes

        public String[] getApplicableTypes()
        Override base class' implementation to load only those extensions that support LTTest type. This editor provides an 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.
        Overrides:
        getApplicableTypes in class TestEditor
        Returns:
        array of types that this editor is going to support. Base editor class will filter out all extensions that do NOT list any of these types as supported in their <forTypes>
        See Also:
        TestEditor.getApplicableTypes()
      • createTestObject

        protected CBTest createTestObject(org.eclipse.hyades.models.common.facades.behavioral.ITestSuite suite)
        Calls
        LttestFactory.eINSTANCE.loadLTTest( getTestSuite() )
        . Clients must not call this method directly.
        Specified by:
        createTestObject in class TestEditor
        Returns:
        CBTest loaded LTTest
        See Also:
        com.ibm.rational.common.test.editor.framework.TestEditor#createTestObject()
      • formatMessage

        protected String formatMessage(com.ibm.rational.test.common.models.behavior.exceptions.CommonModelException e1)
        Overrides:
        formatMessage in class TestEditor
      • getLtTest

        public LTTest getLtTest()
        Returns LTTest
        Returns:
        LTTest test
      • unload

        protected void unload(boolean reserved)
        Description copied from class: TestEditor
        This method is called when TestEditor is being unloaded.
        Overrides:
        unload in class TestEditor
      • addDatapool

        public Datapool[] addDatapool()
        Prompts user for a datapool file. This is a shortcut to
         DatapoolUtil.addDatapool( this, false, null, null );
         
        Returns:
        Datapool[] imported Datapools (an array with one element of Datapool type)
        See Also:
        Datapool
      • searchForDataSources

        public void searchForDataSources(IDCStringLocator location,
                                com.ibm.rational.test.common.models.behavior.cbdata.Substituter existing)
        Parameters:
        location -
        existing -
      • displayObject

        public void displayObject(com.ibm.rational.common.test.editor.framework.kernel.interfaces.ITargetDescriptor target)
        Description copied from class: TestEditor
        Directs 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.

        Overrides:
        displayObject in class TestEditor
        Parameters:
        target - ITargetDescriptor
        See Also:
        ITargetDescriptor, ExtLayoutProvider.navigateTo(ITargetDescriptor)
      • restoreState

        protected void restoreState()
        Description copied from class: TestEditor
        Restores editor state upon load. Clients should not call this method directly.
        Overrides:
        restoreState in class TestEditor
      • preSave

        protected void preSave()
        Overrides:
        preSave in class com.ibm.rational.common.test.editor.framework.editor.RptEmfEditor
      • verifyDatapools

        public void verifyDatapools(String oldFile,
                           String newFile)
        This method is called from DatapoolMonitor and should not be called directly by clients.
        Parameters:
        oldFile -
        newFile -
      • promptTestTooLarge

        public static void promptTestTooLarge(String editorName)
      • getLastDatapool

        public com.ibm.rational.test.common.models.behavior.cbdata.DatapoolHarvester getLastDatapool()
        Returns:
        Returns the lastDatapool.
      • setLastDatapool

        public void setLastDatapool(com.ibm.rational.test.common.models.behavior.cbdata.DatapoolHarvester lastDatapool)
        Stores least recently used DatapoolHarvester
        Parameters:
        lastDatapool - The lastDatapool to set.
      • refreshTree

        public void refreshTree()
      • refreshDetails

        public void refreshDetails()
      • getBuiltinDataSources

        public BuiltinDatasources getBuiltinDataSources()
        Returns:
        Returns the builtinDataSources.
      • fillContextMenu

        public void fillContextMenu(IMenuManager menu)
        Description copied from class: TestEditor
        Fills content menu for TestEditor's MainSection
        Overrides:
        fillContextMenu in class TestEditor
        Parameters:
        menu - IMenuManager
      • activate

        public void activate(boolean active)
        Overrides:
        activate in class TestEditor
      • setInput

        public void setInput(Object arg0)
        Description copied from class: TestEditor
        This method is called when the test is opening in the Eclipse editor. Clients must not call it directly.
        Overrides:
        setInput in class TestEditor
      • getSupportedDataSourcesTypes

        public final String[] getSupportedDataSourcesTypes()
        Returns array of IDs of DataSources that this LTTest can support. These IDs are loaded from DataSourceViewPage.DATASOURCE_CAT_ID extensions.
        Returns:
        String[].
        See Also:
        DataSourceViewPage, DataSourceView}, DataCorrelatingTextAttrField
      • getTestSearchQuery

        public ISearchQuery getTestSearchQuery(com.ibm.rational.common.test.editor.framework.kernel.search.QuerySpecification specs,
                                      int what)
        Description copied from class: TestEditor
        Returns instanceof 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.
        Overrides:
        getTestSearchQuery in class TestEditor
        Parameters:
        specs - QuerySpecification query specification
        Returns:
        ISearchQuery
      • setViewMode

        protected void setViewMode(byte newViewMode,
                       StructuredSelection ssel)
        Description copied from class: TestEditor
        This implementation does nothing.
        Overrides:
        setViewMode in class TestEditor
        Parameters:
        newViewMode - byte. Editor mode.
        ssel - Selection of objects to display innew mode.
      • addSplitoutRegion

        public com.ibm.rational.common.test.editor.framework.kernel.util.TestTreeRegion addSplitoutRegion(String fileName,
                                                                                                 IStructuredSelection selection)
      • getElementRegion

        public com.ibm.rational.test.lt.testeditor.main.LoadTestEditor.SplitTestRegion getElementRegion(CBActionElement element)
      • isReferencesNeedReview

        public boolean isReferencesNeedReview()
      • setReferencesNeedReview

        public void setReferencesNeedReview(boolean isReferencesNeedReview)
      • getRuleSetGeneratorHelper

        public com.ibm.rational.test.lt.datacorrelation.rules.ui.generator.RuleSetGenerationUIHelper getRuleSetGeneratorHelper()
      • dataSourceRemoved

        public void dataSourceRemoved(com.ibm.rational.test.common.models.behavior.cbdata.DataSourceHost _dsh,
                             com.ibm.rational.test.common.models.behavior.cbdata.CoreHarvester _ch)
      • isRulesAccumulationEnabled

        public boolean isRulesAccumulationEnabled()
      • setAllowRulesAccumulation

        public final void setAllowRulesAccumulation(boolean _allowRulesAccumulation)
      • getShowAccumulatedRulesAction

        public com.ibm.rational.test.lt.testeditor.actions.ShowAccumulatedRulesAction getShowAccumulatedRulesAction()
      • getAllowRulesAccumulationAction

        public final com.ibm.rational.test.lt.testeditor.actions.AllowRulesAccumulatonAction getAllowRulesAccumulationAction()
      • attachHiddenVarsContainer

        public void attachHiddenVarsContainer()
      • detachHiddenVarsContainer

        public void detachHiddenVarsContainer()
      • getHiddenVarsContainer

        public com.ibm.rational.test.common.models.behavior.variables.CBVarContainer getHiddenVarsContainer()
      • setHiddenVarsContainer

        public void setHiddenVarsContainer(com.ibm.rational.test.common.models.behavior.variables.CBVarContainer hiddenVarsContainer)
IBM Rational Performance Tester SDK

© Copyright IBM Corp. 2013. All rights reserved.