Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.edit.codeassist.base
Class ISeriesEditorTemplateCompletionProposal

java.lang.Object
  extended by com.ibm.etools.iseries.edit.codeassist.base.ISeriesEditorBaseCompletionProposal
      extended by com.ibm.etools.iseries.edit.codeassist.base.ISeriesEditorCompletionProposal
          extended by com.ibm.etools.iseries.edit.codeassist.base.ISeriesEditorTemplateCompletionProposal

public class ISeriesEditorTemplateCompletionProposal
extends ISeriesEditorCompletionProposal


Field Summary
 
Fields inherited from class com.ibm.etools.iseries.edit.codeassist.base.ISeriesEditorCompletionProposal
_match, _maxColumn, _minColumn
 
Fields inherited from class com.ibm.etools.iseries.edit.codeassist.base.ISeriesEditorBaseCompletionProposal
fAdditionalProposalInfo, fContextInformation, fCursorPosition, fDisplayString, fImage, fReplacementLength, fReplacementOffset, fReplacementString
 
Constructor Summary
ISeriesEditorTemplateCompletionProposal(String replacementString, int replacementOffset, int replacementLength, int cursorPosition, Image image, String displayString, IContextInformation contextInformation, String additionalProposalInfo, ISeriesEditorTemplateProposalMatch match)
           
 
Method Summary
protected  com.ibm.etools.iseries.edit.codeassist.base.ISeriesEditorTemplateCompletionProposal.CursorOffset getCursorOffset(int originalElement, int originalPosition, String replacementString)
           
protected  int getReplacementWidth(int offset)
           
protected  String getSubstitution(String variable)
           
protected  void insertText(LpexView lpexView, String replacementString)
           
protected  String makeSubstitutions(String replacementString)
           
protected  String makeSubstitutions(String replacementString, List vars, List values)
           
protected  void trimLeadingWhitespace(int amount)
           
 
Methods inherited from class com.ibm.etools.iseries.edit.codeassist.base.ISeriesEditorCompletionProposal
apply, blankString, deleteBlanksBefore, doDelete, getAdditionalColumnWidth, getHSpecIndent, insertLine, positionOfLastSeparator, resetColumnSensitivity, trimTrailingWhitespace, turnOffColumnSensitivity
 
Methods inherited from class com.ibm.etools.iseries.edit.codeassist.base.ISeriesEditorBaseCompletionProposal
getAdditionalProposalInfo, getContextInformation, getDisplayString, getImage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ISeriesEditorTemplateCompletionProposal

public ISeriesEditorTemplateCompletionProposal(String replacementString,
                                               int replacementOffset,
                                               int replacementLength,
                                               int cursorPosition,
                                               Image image,
                                               String displayString,
                                               IContextInformation contextInformation,
                                               String additionalProposalInfo,
                                               ISeriesEditorTemplateProposalMatch match)
Method Detail

getReplacementWidth

protected int getReplacementWidth(int offset)
Overrides:
getReplacementWidth in class ISeriesEditorCompletionProposal

trimLeadingWhitespace

protected void trimLeadingWhitespace(int amount)
Overrides:
trimLeadingWhitespace in class ISeriesEditorCompletionProposal

getCursorOffset

protected com.ibm.etools.iseries.edit.codeassist.base.ISeriesEditorTemplateCompletionProposal.CursorOffset getCursorOffset(int originalElement,
                                                                                                                           int originalPosition,
                                                                                                                           String replacementString)

insertText

protected void insertText(LpexView lpexView,
                          String replacementString)
Overrides:
insertText in class ISeriesEditorCompletionProposal

makeSubstitutions

protected String makeSubstitutions(String replacementString)

makeSubstitutions

protected String makeSubstitutions(String replacementString,
                                   List vars,
                                   List values)

getSubstitution

protected String getSubstitution(String variable)

Rational Developer for Power Systems Software
V7.6

Copyright © 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.