IBM Rational Performance Tester SDK

com.ibm.rational.test.lt.testeditor.common
Class ExtendedStyledText

java.lang.Object
  extended by com.ibm.rational.test.lt.testeditor.common.StyledTextLogic
      extended by com.ibm.rational.test.lt.testeditor.common.ExtendedStyledText
All Implemented Interfaces:
com.ibm.rational.common.test.editor.framework.kernel.actions.ITestEditorActionIDs, EventListener, ExtendedModifyListener, LineBackgroundListener, LineStyleListener, VerifyKeyListener, DisposeListener, KeyListener, MouseListener, MouseTrackListener, PaintListener, VerifyListener, org.eclipse.swt.internal.SWTEventListener

Deprecated. Use DataCorrelatingTextAttrField instead.

public abstract class ExtendedStyledText
extends StyledTextLogic

ExtendedStyledText

Implements datacorrelation handling for text attributes of ModelElements. A ModelElement must implement DataSourceHost and/or SubstituterHost interfaces.

Supported operations include:

  • Create Reference (for selected text fragment)
  • Clear Reference
  • Create Field Reference
  • Remove Field Reference
  • Substitute (from variuous datasources)
  • Encode/Decode substituted text

  • Field Summary
    protected  com.ibm.rational.test.lt.testeditor.common.VisualCue m_cue
              Deprecated.  
    protected  boolean m_isEncodingEnabled
              Deprecated.  
    protected  boolean m_isHarvestEnabled
              Deprecated.  
    protected  boolean m_isJumpToEnabled
              Deprecated.  
    protected  boolean m_isPlainTextEnabled
              Deprecated.  
    protected  boolean m_isSubstitutorEnabled
              Deprecated.  
    protected  DataBoundStyleRange m_theCurrentDataRange
              Deprecated.  
     
    Fields inherited from class com.ibm.rational.test.lt.testeditor.common.StyledTextLogic
    ACTION_NEXT_RANGE, ACTION_PREV_RANGE, EXTENDED_LOGIC, m_mmenu, m_st
     
    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
     
    Constructor Summary
    ExtendedStyledText(ExtLayoutProvider hostLayoutProvider, CBActionElement element, StyledText stext, String attributeName)
              Deprecated. Constructor
    ExtendedStyledText(ExtLayoutProvider hostLayoutProvider, com.ibm.rational.test.lt.testeditor.common.IContentHidingHelper contentHidingHelper, StyledText stext, String attributeName)
              Deprecated. Constructor
     
    Method Summary
    protected  boolean attributeMatch(String otherAttribute)
              Deprecated. When parsing lists of harvesters (references) and substituters, ExtendedStyledText will call this method to filter out those datacorrelation objects that do not belong to this atttribute/field.
    protected  boolean canPerform(int action)
              Deprecated. Provides addition checking for conditions for Cut/Paste/Delete actions.
    protected  void clearFieldHarvester(boolean removeFormCache)
              Deprecated.  
    protected  void createActions()
              Deprecated. Creates internal actions.
    protected  void createBuiltinSubstituter()
              Deprecated. Substitutes selected text to or changes datasource in the existing substituter to one obtained from DatacorrelatorSelectionWizardDialog.
    protected  void createDatapoolSubstituter()
              Deprecated. Substitutes selected text to or changes datasource in the existing substituter to one obtained from DatapoolAndColumnSelectionDialog.
    protected  MenuManager createMenuManager()
              Deprecated. Creates MenuManager.
    protected  void createNewHarvester(boolean fieldRef)
              Deprecated. Creates new Reference.
    protected abstract  String doDecode(String selection)
              Deprecated. This method is called by createDatapoolSubstituter and createBuiltinSubstituter methods.
    protected  void fillMenu(IMenuManager menu)
              Deprecated. Fills context menu with datacorrelation related actions.
    protected  com.ibm.rational.test.lt.testeditor.common.ExtendedStyledText.CreateReferenceAction getActionCreateFieldReference()
              Deprecated.  
    protected  com.ibm.rational.test.lt.testeditor.common.ExtendedStyledText.CreateReferenceAction getActionCreateReference()
              Deprecated.  
    protected  com.ibm.rational.test.lt.testeditor.common.ExtendedStyledText.RemoveReferenceAction getActionRemoveFieldReference()
              Deprecated.  
    protected  com.ibm.rational.test.lt.testeditor.common.ExtendedStyledText.RemoveReferenceAction getActionRemoveReference()
              Deprecated.  
    protected  com.ibm.rational.test.lt.testeditor.common.ExtendedStyledText.SearchForOtherInputAction getActionSearchForOtherInput()
              Deprecated.  
    protected  com.ibm.rational.test.lt.testeditor.common.ExtendedStyledText.SubstFromBuiltInAction getActionSubstFromBuiltIn()
              Deprecated.  
    protected  com.ibm.rational.test.lt.testeditor.common.ExtendedStyledText.SubstFromDatapoolAction getActionSubstFromDatapool()
              Deprecated.  
    protected  com.ibm.rational.test.lt.testeditor.common.ExtendedStyledText.ToggleEncodingAction getActionToggleEncoding()
              Deprecated.  
     String getAttrName()
              Deprecated.  
     com.ibm.rational.test.lt.testeditor.common.VisualCue getCue()
              Deprecated.  
     LoadTestEditor getEditor()
              Deprecated.  
    protected  com.ibm.rational.test.common.models.behavior.cbdata.CorrelationHarvester getFieldHarvester()
              Deprecated.  
     CBActionElement getHostElement()
              Deprecated.  
    protected  List getListOfHarvesters()
              Deprecated. Returns list of data sources or empty list.
    protected  List getListOfSubstituters()
              Deprecated. Returns list of substituters or an empty list.
    static ExtendedStyledText getLogic(StyledText st)
              Deprecated.  
    protected abstract  CBActionElement getRelatedHostElement()
              Deprecated.  
    protected  DataBoundStyleRange getSelectedRange()
              Deprecated.  
    protected  IDCStringLocator getStringLocatorFromData(DataBoundStyleRange dbsr)
              Deprecated. Utility method creates, populates and returns an instance of IDCStringLocator with contents, representing correlation attribute contained in the arguemnt.
    protected  IDCStringLocator getStringLocatorFromSelection(Point selection)
              Deprecated. Utility method creates, populates and returns an instance of IDCStringLocator with contents (offset and length) representing range contained in the arguemnt.
    static String getText(StyledText st)
              Deprecated.  
    protected  String getToolTipFor(StyleRange sr)
              Deprecated.  
    static boolean hasExtendedLogic(StyledText st)
              Deprecated.  
     void keyReleased(KeyEvent e)
              Deprecated. Updates statusLine in the Editor.
     void mouseDown(MouseEvent e)
              Deprecated. Updates status line in the editor.
     void mouseUp(MouseEvent e)
              Deprecated. Updates status line in the editor.
    protected  void parse()
              Deprecated. Refreshes internal lists of references (harvesters) and substituters and updates visual que.
    protected  void parseHarvesters()
              Deprecated. If getHostElement() is not DataSourceHost, does nothing.
    protected  void parseSubstituters()
              Deprecated. If getHostElement() is not SubstituterHost, does nothing.
    protected  boolean removeCorrelationAttribute(boolean isFieldRef)
              Deprecated. Deletes datacorrelation attribute (reference or substituter).
    protected  void setAttrName(String attrName)
              Deprecated.  
    protected  void setEncoding()
              Deprecated. Calls su.setEncode( !
     void setEncodingEnabled(boolean isEncodingEnabled)
              Deprecated. Sets flag that allows the encoding of substituted text behavior.
     void setHarvestEnabled(boolean b)
              Deprecated. Enables/disables "Create Reference" and "Create Field Reference" actions in the context menu.
     void setHarvestEnabled(boolean enableReference, boolean enableFieldReference)
              Deprecated. Enables/disables "Create Reference" and "Create Field Reference" actions in the context menu.
    protected  void setHostElement(CBActionElement req)
              Deprecated. Sets host element.
     void setJumpToEnabled(boolean b)
              Deprecated. Enables/disabled navigate context menus.
     void setPlainTextEnabled(boolean b)
              Deprecated. Enables/disables "Remove Field Reference" and "Clear Reference" actions in the context menu.
    protected  void setStatusLineErrorMessage(String string)
              Deprecated. Utility method, calls getEditor().setStatusLineMessage( string, true );
    protected  void setStatusLineMessage(String string)
              Deprecated. Utility method, calls getEditor().setStatusLineMessage( string );
     void setStyledText(StyledText text)
              Deprecated. Initializes this instance with new StyledText.
     void setSubstitutionEnabled(boolean b)
              Deprecated. Enables/disables "Substitute From" sub-menu in the context menu.
     void setText(String text)
              Deprecated.  
     void setText(String text, CBActionElement httpreq)
              Deprecated.  
    protected  int shift(int start, int len, int shift, String replacedText)
              Deprecated. Called in response to ModifyEvent after text in StyledText is modified.
    static String trimMenuText(String mtext)
              Deprecated. Trims long text that is about to be used as a menu item.
     void widgetDisposed(DisposeEvent e)
              Deprecated.  
     
    Methods inherited from class com.ibm.rational.test.lt.testeditor.common.StyledTextLogic
    add, addListeners, clear, containsPoint, createKeyBindings, doPerform, enableKeyBindings, get, getHighlights, getRangeForSelection, getStyledText, getText, isCursorInRange, isMouseInRange, isSelectionOverlapsWithRangesEx, keyPressed, lineGetBackground, lineGetStyle, modifyText, mouseDoubleClick, mouseEnter, mouseExit, mouseHover, paintControl, remove, remove, removeListeners, setTooltipText, size, updateActions, verifyKey, verifyText
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Field Detail

    m_isHarvestEnabled

    protected boolean m_isHarvestEnabled
    Deprecated. 

    m_isSubstitutorEnabled

    protected boolean m_isSubstitutorEnabled
    Deprecated. 

    m_isPlainTextEnabled

    protected boolean m_isPlainTextEnabled
    Deprecated. 

    m_isJumpToEnabled

    protected boolean m_isJumpToEnabled
    Deprecated. 

    m_isEncodingEnabled

    protected boolean m_isEncodingEnabled
    Deprecated. 

    m_theCurrentDataRange

    protected DataBoundStyleRange m_theCurrentDataRange
    Deprecated. 

    m_cue

    protected com.ibm.rational.test.lt.testeditor.common.VisualCue m_cue
    Deprecated. 
    Constructor Detail

    ExtendedStyledText

    public ExtendedStyledText(ExtLayoutProvider hostLayoutProvider,
                              com.ibm.rational.test.lt.testeditor.common.IContentHidingHelper contentHidingHelper,
                              StyledText stext,
                              String attributeName)
    Deprecated. 
    Constructor

    Parameters:
    hostLayoutProvider - ExtLayotProvider that displays this attribue.
    contentHidingHelper - IContentHidingHelper
    stext - StyledText to be extended.
    attributeName - String attribute name to be used for filtering during parse call and for new datacorrelation attributes.

    ExtendedStyledText

    public ExtendedStyledText(ExtLayoutProvider hostLayoutProvider,
                              CBActionElement element,
                              StyledText stext,
                              String attributeName)
    Deprecated. 
    Constructor

    Parameters:
    hostLayoutProvider - ExtLayotProvider that displays this attribue.
    element - CBActionElement host model element. Must implement DataSOurceHost or SubstituterHost or both.
    stext - StyledText to be extended.
    attributeName - String attribute name to be used for filtering during parse call and for new datacorrelation attributes.
    Method Detail

    createActions

    protected void createActions()
    Deprecated. 
    Creates internal actions. Clients may override to add their own actions, but must call super.createActions first.

    Overrides:
    createActions in class StyledTextLogic
    See Also:
    StyledTextLogic.createActions()

    getLogic

    public static ExtendedStyledText getLogic(StyledText st)
    Deprecated. 
    Parameters:
    st - StyledText.
    Returns:
    ExtendeedStyledText if argument has one attached to it, null otherwise.

    hasExtendedLogic

    public static boolean hasExtendedLogic(StyledText st)
    Deprecated. 
    Parameters:
    st - StyledText
    Returns:
    boolean true if argument has ExtendedStyledText attached to it, false otherwise.

    getText

    public static String getText(StyledText st)
    Deprecated. 
    Parameters:
    st - StyledText
    Returns:
    String text contained in the StyledText argument.

    createMenuManager

    protected MenuManager createMenuManager()
    Deprecated. 
    Creates MenuManager.

    Clients should not override this method.

    Specified by:
    createMenuManager in class StyledTextLogic
    Returns:
    MenuManager
    See Also:
    StyledTextLogic.createMenuManager()

    fillMenu

    protected void fillMenu(IMenuManager menu)
    Deprecated. 
    Fills context menu with datacorrelation related actions. Defines following group markers:
  • IWorkbenchActionConstants.MB_ADDITIONS + "-dc.ref.start"
  • IWorkbenchActionConstants.MB_ADDITIONS + "-dc.ref.end"
  • IWorkbenchActionConstants.MB_ADDITIONS + "-dc.subst.start"
  • IWorkbenchActionConstants.MB_ADDITIONS + "-dc.subst.end"
  • IWorkbenchActionConstants.MB_ADDITIONS + "-dc.nav.start"
  • IWorkbenchActionConstants.MB_ADDITIONS + "-dc.nav.end"
  • IWorkbenchActionConstants.MB_ADDITIONS
  • IWorkbenchActionConstants.MB_ADDITIONS + ".end"
  • Overrides:
    fillMenu in class StyledTextLogic
    Parameters:
    menu - IMenuManager
    See Also:
    StyledTextLogic.fillMenu(org.eclipse.jface.action.IMenuManager)

    setEncoding

    protected void setEncoding()
    Deprecated. 
    Calls su.setEncode( !su.isEncode()) method for Substituter that is currently selected or under curser. Does nothing otherwise.

    This method is called from ToggleEncodingAction action and should not be called by clients.


    createDatapoolSubstituter

    protected void createDatapoolSubstituter()
    Deprecated. 
    Substitutes selected text to or changes datasource in the existing substituter to one obtained from DatapoolAndColumnSelectionDialog. This method is called from SubstituteFromDatapoolAction.run().


    createNewHarvester

    protected void createNewHarvester(boolean fieldRef)
    Deprecated. 
    Creates new Reference. Calls DataCorrelationUtil.createCorrelationHarvester and updates visual state and internal data. This method is called from CreateReferenceAction.run().


    setSubstitutionEnabled

    public void setSubstitutionEnabled(boolean b)
    Deprecated. 
    Enables/disables "Substitute From" sub-menu in the context menu.

    Parameters:
    b -

    setHarvestEnabled

    public void setHarvestEnabled(boolean b)
    Deprecated. 
    Enables/disables "Create Reference" and "Create Field Reference" actions in the context menu.

    Parameters:
    b -

    setHarvestEnabled

    public void setHarvestEnabled(boolean enableReference,
                                  boolean enableFieldReference)
    Deprecated. 
    Enables/disables "Create Reference" and "Create Field Reference" actions in the context menu.

    Parameters:
    enableReference -
    enableFieldReference -

    setPlainTextEnabled

    public void setPlainTextEnabled(boolean b)
    Deprecated. 
    Enables/disables "Remove Field Reference" and "Clear Reference" actions in the context menu.

    Parameters:
    b -

    setJumpToEnabled

    public void setJumpToEnabled(boolean b)
    Deprecated. 
    Enables/disabled navigate context menus.


    canPerform

    protected boolean canPerform(int action)
    Deprecated. 
    Provides addition checking for conditions for Cut/Paste/Delete actions.

    Overrides:
    canPerform in class StyledTextLogic
    Parameters:
    action - one of the supported actions (ST.COPY, ST.CUT, ST.PASTE, ST.SELECT_ALL, ST.DELETE_NEXT)
    Returns:
    boolean true if action is allowed, false otherwise.
    See Also:
    StyledTextLogic.canPerform(int)

    getEditor

    public LoadTestEditor getEditor()
    Deprecated. 
    Returns:
    Returns the loadTestEditor.

    setStatusLineMessage

    protected void setStatusLineMessage(String string)
    Deprecated. 
    Utility method, calls getEditor().setStatusLineMessage( string );

    Parameters:
    string - text message.

    setStatusLineErrorMessage

    protected void setStatusLineErrorMessage(String string)
    Deprecated. 
    Utility method, calls getEditor().setStatusLineMessage( string, true );

    Parameters:
    string - text message.

    getRelatedHostElement

    protected abstract CBActionElement getRelatedHostElement()
    Deprecated. 
    Returns:
    Returns the related host element. In most cases, the related model element is the same as the host element. However there are cases when a related host element is different from the host element. This can happen if one model element contains datacorrelation objects for itself and for some other model element (as opposed to each model element contains its own datacorrelation objects).

    For example, in HTTP protocol, HTTP Request may contain datacorrelation objects for itself, its HTTP Responce object, for HTTP request headers and for HTTP Response headers. HTTP Protocol extension then would need to create four derived classes (of ExtendedStyledText) that would implement getRelatedHostElement() to return, HTTPRequest, HTTPResponse, HTTPRequestHeader and HTTPResponseHeader.


    getHostElement

    public CBActionElement getHostElement()
    Deprecated. 
    Returns:
    Returns the host element.

    setHostElement

    protected void setHostElement(CBActionElement req)
    Deprecated. 
    Sets host element. Host element is model element that contains DataSources (references) and Substituters. Such model element must implement DataSourceHost and/or SubstituterHost interfaces.

    Parameters:
    req - The CBActionElement to set.

    getAttrName

    public String getAttrName()
    Deprecated. 
    Returns:
    String Returns the m_AttrName. Attribute Name is string that will be used by dataCorrelation routines to identify and references datacorrelation objects contained in this ModelElement.
    See Also:
    ExtendedStyledText.getHostElement()

    attributeMatch

    protected boolean attributeMatch(String otherAttribute)
    Deprecated. 
    When parsing lists of harvesters (references) and substituters, ExtendedStyledText will call this method to filter out those datacorrelation objects that do not belong to this atttribute/field.

    For example, suppose that some model elemnt has two fields (attribues) A and B, both of which have data correlation. In the editor's UI, there are two StyledText widgets that display contents of these two attributes. For each of those widgets, there is instance of ExtendedStyledText class. One should look for datacorrelation objects with attribute A, the other should look for attribute B. Clients should override this method only if some more complex comparisons are needed. The default implementation calls:

            otherAttribute.equals( getAttrName() )
     

    Parameters:
    otherAttribute - datacorrelation attribute, must not be null.
    Returns:
    boolean

    setAttrName

    protected void setAttrName(String attrName)
    Deprecated. 
    Parameters:
    attrName - The attrName to set. Attribute Name is string that will be used by dataCorrelation routines to identify and references datacorrelation objects contained in this ModelElement.

    setStyledText

    public void setStyledText(StyledText text)
    Deprecated. 
    Initializes this instance with new StyledText.

    Overrides:
    setStyledText in class StyledTextLogic
    See Also:
    StyledTextLogic.setStyledText(org.eclipse.swt.custom.StyledText)

    widgetDisposed

    public void widgetDisposed(DisposeEvent e)
    Deprecated. 
    Specified by:
    widgetDisposed in interface DisposeListener
    Overrides:
    widgetDisposed in class StyledTextLogic

    keyReleased

    public void keyReleased(KeyEvent e)
    Deprecated. 
    Updates statusLine in the Editor.

    Specified by:
    keyReleased in interface KeyListener
    Overrides:
    keyReleased in class StyledTextLogic
    See Also:
    KeyListener.keyReleased(org.eclipse.swt.events.KeyEvent)

    mouseUp

    public void mouseUp(MouseEvent e)
    Deprecated. 
    Updates status line in the editor.

    Specified by:
    mouseUp in interface MouseListener
    Overrides:
    mouseUp in class StyledTextLogic
    See Also:
    MouseListener.mouseUp(org.eclipse.swt.events.MouseEvent)

    mouseDown

    public void mouseDown(MouseEvent e)
    Deprecated. 
    Updates status line in the editor.

    Specified by:
    mouseDown in interface MouseListener
    Overrides:
    mouseDown in class StyledTextLogic
    See Also:
    MouseListener.mouseDown(org.eclipse.swt.events.MouseEvent)

    getCue

    public com.ibm.rational.test.lt.testeditor.common.VisualCue getCue()
    Deprecated. 
    Returns:
    VisualCue.

    shift

    protected int shift(int start,
                        int len,
                        int shift,
                        String replacedText)
    Deprecated. 
    Called in response to ModifyEvent after text in StyledText is modified. Loops over internal lists of references and substituters and adjusts their offsets and lengths.

    Specified by:
    shift in class StyledTextLogic
    Returns:
    0
    See Also:
    StyledTextLogic.shift(int, int, int, java.lang.String)

    parse

    protected void parse()
    Deprecated. 
    Refreshes internal lists of references (harvesters) and substituters and updates visual que.

    Clients should not override this method.


    parseSubstituters

    protected void parseSubstituters()
    Deprecated. 
    If getHostElement() is not SubstituterHost, does nothing. Otherwise, calls DataCorrelationLabelProvider.getSubstitutersFor to obtain list of Substituters, and stores them in the internal list.


    parseHarvesters

    protected void parseHarvesters()
    Deprecated. 
    If getHostElement() is not DataSourceHost, does nothing. Otherwise, calls DataCorrelationLabelProvider.getHarvestersFor to obtain list of DataSources, and stores them in the internal list.


    getSelectedRange

    protected DataBoundStyleRange getSelectedRange()
    Deprecated. 
    Returns:
    DataBoundStyleRange a range that is either entirely covered by selection (calls getRangeForSelection), or has coursor inside its boundaries (calls isCursorInRange( false, true ).

    Some actions consider these two situations identical for their purposes.

    Cursor position is considered to be inside a range if a character at its left belongs to range.


    getFieldHarvester

    protected com.ibm.rational.test.common.models.behavior.cbdata.CorrelationHarvester getFieldHarvester()
    Deprecated. 
    Returns:
    Returns the fieldHarvester or null if Fierd Reference does not exist.

    getStringLocatorFromSelection

    protected IDCStringLocator getStringLocatorFromSelection(Point selection)
    Deprecated. 
    Utility method creates, populates and returns an instance of IDCStringLocator with contents (offset and length) representing range contained in the arguemnt.

    Cleints should not override this method.

    Parameters:
    selection - Point reresenting selection in the styled text.
    Returns:
    IDCStringLocator

    getStringLocatorFromData

    protected IDCStringLocator getStringLocatorFromData(DataBoundStyleRange dbsr)
    Deprecated. 
    Utility method creates, populates and returns an instance of IDCStringLocator with contents, representing correlation attribute contained in the arguemnt.

    Cleints should not override this method.

    Parameters:
    dbsr - DataBoundStyleRange
    Returns:
    IDCStringLocator

    removeCorrelationAttribute

    protected boolean removeCorrelationAttribute(boolean isFieldRef)
    Deprecated. 
    Deletes datacorrelation attribute (reference or substituter). Clients should not override this method.

    Parameters:
    isFieldRef - boolean If true and there is a field reference, it will be removed.
    If false, the method getSelectedRange is called to find the currently selected datacorrelation range.
    Returns:
    boolean - true if correlation attribute was successfully removed, false otherwies.

    getListOfHarvesters

    protected List getListOfHarvesters()
    Deprecated. 
    Returns list of data sources or empty list.
       if( getHostElement() instanceof DataSourceHost )
           return ((DataSourceHost)getHostElement()).getDataSources();
       return Collections.EMPTY_LIST;
     

    Returns:
    List

    getListOfSubstituters

    protected List getListOfSubstituters()
    Deprecated. 
    Returns list of substituters or an empty list.
     if( getHostElement() instanceof SubstituterHost )
          return ((SubstituterHost)getHostElement()).getSubstituters();
     return Collections.EMPTY_LIST;
     
     

    Returns:
    list of substituters.

    clearFieldHarvester

    protected void clearFieldHarvester(boolean removeFormCache)
    Deprecated. 

    getToolTipFor

    protected String getToolTipFor(StyleRange sr)
    Deprecated. 
    Overrides:
    getToolTipFor in class StyledTextLogic
    Parameters:
    sr - DataBoundStyledRange
    Returns:
    formatted text that is used as a tooltip for currently selected correlation attribute. Calls DataCorrelationLabelProvider.describe methods.
    See Also:
    StyledTextLogic.getToolTipFor(org.eclipse.swt.custom.StyleRange)

    createBuiltinSubstituter

    protected void createBuiltinSubstituter()
    Deprecated. 
    Substitutes selected text to or changes datasource in the existing substituter to one obtained from DatacorrelatorSelectionWizardDialog. This method is called from SubstituteFromBuiltInAction.run().


    trimMenuText

    public static String trimMenuText(String mtext)
    Deprecated. 
    Trims long text that is about to be used as a menu item. This is useful for menu items that represent DataSources and/or Substituters as they tend to be very long.

    Parameters:
    mtext -
    Returns:
    String

    doDecode

    protected abstract String doDecode(String selection)
    Deprecated. 
    This method is called by createDatapoolSubstituter and createBuiltinSubstituter methods. Clients may want to change passed selection text according to their protocol's specifications.

    For example, createDatapoolSubstituter will pass two values (columnName and columnValue) to DatapoolAndColumnSelectionDialog. These values may end up in the .datapool file, in which case they must be converted to approporiate form. HTTP Protocol implementation should call URLDecoder.decode().

    Parameters:
    selection -
    Returns:
    String decoded value.

    getActionCreateFieldReference

    protected com.ibm.rational.test.lt.testeditor.common.ExtendedStyledText.CreateReferenceAction getActionCreateFieldReference()
    Deprecated. 
    Returns:
    Returns the CreateReferenceAction. Clients can call various methods of this class, but must not dispose of it.

    getActionCreateReference

    protected com.ibm.rational.test.lt.testeditor.common.ExtendedStyledText.CreateReferenceAction getActionCreateReference()
    Deprecated. 
    Returns:
    Returns the CreateReferenceAction. Clients can call various methods of this class, but must not dispose of it.

    getActionRemoveFieldReference

    protected com.ibm.rational.test.lt.testeditor.common.ExtendedStyledText.RemoveReferenceAction getActionRemoveFieldReference()
    Deprecated. 
    Returns:
    Returns the RemoveReferenceAction. Clients can call various methods of this class, but must not dispose of it.

    getActionRemoveReference

    protected com.ibm.rational.test.lt.testeditor.common.ExtendedStyledText.RemoveReferenceAction getActionRemoveReference()
    Deprecated. 
    Returns:
    Returns the RemoveReferenceAction. Clients can call various methods of this class, but must not dispose of it.

    getActionSearchForOtherInput

    protected com.ibm.rational.test.lt.testeditor.common.ExtendedStyledText.SearchForOtherInputAction getActionSearchForOtherInput()
    Deprecated. 
    Returns:
    Returns the SearchForOtherInputAction. Clients can call various methods of this class, but must not dispose of it.

    getActionSubstFromBuiltIn

    protected com.ibm.rational.test.lt.testeditor.common.ExtendedStyledText.SubstFromBuiltInAction getActionSubstFromBuiltIn()
    Deprecated. 
    Returns:
    Returns the SubstFromBuiltInAction. Clients can call various methods of this class, but must not dispose of it.

    getActionSubstFromDatapool

    protected com.ibm.rational.test.lt.testeditor.common.ExtendedStyledText.SubstFromDatapoolAction getActionSubstFromDatapool()
    Deprecated. 
    Returns:
    Returns the SubstFromDatapoolAction. Clients can call various methods of this class, but must not dispose of it.

    getActionToggleEncoding

    protected com.ibm.rational.test.lt.testeditor.common.ExtendedStyledText.ToggleEncodingAction getActionToggleEncoding()
    Deprecated. 
    Returns:
    Returns the ToggleEncodingAction. Clients can call various methods of this class, but must not dispose of it.

    setEncodingEnabled

    public void setEncodingEnabled(boolean isEncodingEnabled)
    Deprecated. 
    Sets flag that allows the encoding of substituted text behavior. Calling this method affects visibility of ToggleEncodingAction action in the context menu.

    Parameters:
    isEncodingEnabled - true encoding enabled, encoding disabled.

    setText

    public void setText(String text,
                        CBActionElement httpreq)
    Deprecated. 

    setText

    public void setText(String text)
    Deprecated. 
    Overrides:
    setText in class StyledTextLogic

    IBM Rational Performance Tester SDK

    © Copyright IBM Corp. 2012. All rights reserved.