|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.etools.iseries.edit.codeassist.base.ISeriesEditorCodeAssistProcessor
public abstract class ISeriesEditorCodeAssistProcessor
Field Summary | |
---|---|
protected Image |
_defaultImage
|
protected static char[] |
_deliminators
|
protected static char[] |
_delimiters
|
protected HashMap |
_imageMap
|
protected Image |
_infoImage
|
protected Image |
_keywordImage
|
protected int |
_lastProposalCase
|
protected LpexSourceViewer |
_sourceViewer
|
protected Image |
_templateImage
|
protected IContextInformationValidator |
fValidator
|
Constructor Summary | |
---|---|
ISeriesEditorCodeAssistProcessor(LpexSourceViewer sourceViewer)
Constructor |
Method Summary | |
---|---|
protected void |
addToMatches(String[][] proposals,
ISeriesEditorProposalMatches matches,
String imageID)
|
protected void |
addToMatches(String[] proposals,
String[] helps,
ISeriesEditorProposalMatches matches,
String imageID)
|
protected void |
addToMatches(String[] proposals,
String help,
ISeriesEditorProposalMatches matches,
String imageID)
|
protected void |
addToMatches(String proposal,
String help,
ISeriesEditorProposalMatches matches,
String imageID)
|
protected void |
compareAndAddToMatches(String currentText,
String[][] proposals,
ISeriesEditorProposalMatches matches,
String imageID)
|
protected void |
compareAndAddToMatches(String currentText,
String[] proposals,
String[] helps,
ISeriesEditorProposalMatches matches,
String imageID)
|
protected void |
compareAndAddToMatches(String currentText,
String[] proposals,
String[] helps,
String[] postHelps,
ISeriesEditorProposalMatches matches,
String imageID)
|
protected void |
compareAndAddToMatches(String currentText,
String[] proposals,
String help,
ISeriesEditorProposalMatches matches,
String imageID)
|
protected void |
compareAndAddToMatches(String currentText,
String completion,
String help,
ISeriesEditorProposalMatches matches,
String imageID)
|
protected void |
compareAndAddToMatches(String currentText,
String completion,
String help,
ISeriesEditorProposalMatches matches,
String imageID,
boolean moreParameters)
|
protected boolean |
compareTextAt(int column,
String compareStr)
|
ICompletionProposal[] |
computeCompletionProposals(ITextViewer viewer,
int documentOffset)
Return a list of completion proposals, based on the current cursor location in the text viewer. |
IContextInformation[] |
computeContextInformation(ITextViewer viewer,
int documentOffsetBad)
Return information about possible contexts, based on the current cursor location in the text viewer. |
protected ICompletionProposal |
createCompletionProposal(ISeriesEditorProposalMatch match,
int replacementLength,
int replacementOffset,
int DSOffSet,
int completionMode,
boolean isReadonly,
int theCase,
String currentText,
String currentFullText,
int iCurrentLinePosition)
|
int |
currentElement()
|
int |
currentPosition()
|
protected List |
findFunctionalMatches(String searchStr,
ISeriesEditorFunctionalProposalMatch[] toSearch,
int minParams)
|
protected LpexDocumentLocation |
findLastPositionOf(char compareChar,
int position,
int element)
|
protected LpexDocumentLocation |
findLastPositionOf(String compareString,
int position,
int element)
|
protected ISeriesEditorProposalMatch |
findMatch(String searchStr,
ISeriesEditorProposalMatch[] toSearch)
|
protected String |
formatTemplateProposal(int columnOffset,
String proposal)
|
protected LpexView |
getActiveView()
Retrieves the active LPEX view |
protected int |
getCase(String currentText,
String currentFullText,
int iCurrentLinePosition)
|
protected char |
getCharAt(int column)
|
protected char |
getCharAt(int column,
int element)
|
char[] |
getCompletionProposalAutoActivationCharacters()
Return the characters which, when entered by the user, should automatically trigger the presentation of possible completions. |
char[] |
getContextInformationAutoActivationCharacters()
Return the characters which, when entered by the user, should automatically trigger the presentation of context information. |
IContextInformationValidator |
getContextInformationValidator()
Return a validator which will be used to determine when displayed post-insertion context information (tip) should be dismissed. |
abstract ISeriesEditorProposalMatches |
getContextMatches(int documentOffset,
String currentText)
|
protected String |
getCurrentFullText()
|
protected String |
getCurrentText()
Get the current whitespace-delimited document text preceding the cursor, for purposes of content assist. |
protected String |
getCurrentTextIgnoreParentheses()
Get the current whitespace-delimited document text preceding the cursor, for purposes of content assist. |
protected int |
getCursorArgument(int position,
int element,
boolean continuation,
int minColumn)
|
protected int |
getCursorArgument(String functionName,
int position,
int element,
boolean continuation,
int minColumn)
|
String |
getErrorMessage()
|
protected String |
getFirstTextBetween(int scolumn,
int fcolumn,
boolean preserveCase,
int element)
|
protected Image |
getInfoImage()
|
protected char |
getNextDeliminator()
|
protected char |
getNextDeliminator(boolean ignoreSpaces)
|
protected int |
getPositionOfNextDeliminator()
|
protected int |
getPositionOfPreviousDeliminator()
|
protected char |
getPreviousChar(int position,
int element)
|
protected char |
getPreviousChar(int position,
int element,
boolean lettersOnly)
|
protected char |
getPreviousDeliminator()
|
protected String |
getPreviousText()
|
protected String |
getPreviousText(int position)
|
abstract ISeriesEditorProposalMatches |
getProposalMatches(int documentOffset,
String currentText)
|
protected Image |
getTemplateImage()
|
protected ISeriesTemplate[] |
getTemplates()
|
protected String |
getTextAt(int column,
boolean preserveCase)
|
protected String |
getTextAt(int column,
boolean preserveCase,
int element)
|
protected String |
getTextInRange(int startPosition,
int endPosition,
int element)
|
protected String |
getTokenText(int position,
int minPosition,
int element)
|
protected Image |
getTypeImage(String typeID)
|
protected abstract boolean |
inParamBlock(int position,
int element,
int minPosition)
|
protected abstract boolean |
inParamBlock(String functionName,
int position,
int element,
int minPosition)
|
protected boolean |
inParams()
|
protected boolean |
inParams(int position,
int element,
int minPosition)
|
protected boolean |
inParams(String functionName,
int position,
int element,
int minPosition)
|
protected boolean |
isDeliminator(char c)
|
protected boolean |
isDelimiter(char c)
|
protected boolean |
isTextBefore(int position)
|
boolean |
lineHasCharBefore(int position,
int element,
char c)
|
protected void |
processTemplates(String context,
int iCurrentLinePosition,
String currentText,
ISeriesEditorProposalMatches matches)
|
protected String |
stripLeadingChars(String currentText,
int fromColumn,
int toColumn)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected LpexSourceViewer _sourceViewer
protected int _lastProposalCase
protected Image _templateImage
protected Image _defaultImage
protected Image _infoImage
protected Image _keywordImage
protected HashMap _imageMap
protected static final char[] _deliminators
protected static final char[] _delimiters
protected IContextInformationValidator fValidator
Constructor Detail |
---|
public ISeriesEditorCodeAssistProcessor(LpexSourceViewer sourceViewer)
Method Detail |
---|
protected ISeriesTemplate[] getTemplates()
public IContextInformationValidator getContextInformationValidator()
IContentAssistProcessor#getContextInformationValidator()
public char[] getContextInformationAutoActivationCharacters()
IContentAssistProcessor#getContextInformationAutoActivationCharacters()
public char[] getCompletionProposalAutoActivationCharacters()
IContentAssistProcessor#getCompletionProposalAutoActivationCharacters()
public String getErrorMessage()
IContentAssistProcessor#getErrorMessage()
public IContextInformation[] computeContextInformation(ITextViewer viewer, int documentOffsetBad)
viewer
- the LpexTextViewer requesting context informationdocumentOffset
- ignored - content assist at the current
cursor position is currently assumedIContentAssistProcessor#computeContextInformation(ITextViewer,int)
public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer, int documentOffset)
viewer
- the LpexTextViewer requesting content-assist proposalsdocumentOffset
- ignored - content assist at the current
cursor position is currently assumedIContentAssistProcessor#computeCompletionProposals(ITextViewer,int)
protected ICompletionProposal createCompletionProposal(ISeriesEditorProposalMatch match, int replacementLength, int replacementOffset, int DSOffSet, int completionMode, boolean isReadonly, int theCase, String currentText, String currentFullText, int iCurrentLinePosition)
protected String formatTemplateProposal(int columnOffset, String proposal)
protected void processTemplates(String context, int iCurrentLinePosition, String currentText, ISeriesEditorProposalMatches matches)
protected Image getInfoImage()
protected Image getTemplateImage()
protected Image getTypeImage(String typeID)
protected void compareAndAddToMatches(String currentText, String completion, String help, ISeriesEditorProposalMatches matches, String imageID)
protected void compareAndAddToMatches(String currentText, String completion, String help, ISeriesEditorProposalMatches matches, String imageID, boolean moreParameters)
protected void compareAndAddToMatches(String currentText, String[] proposals, String[] helps, ISeriesEditorProposalMatches matches, String imageID)
protected void compareAndAddToMatches(String currentText, String[] proposals, String[] helps, String[] postHelps, ISeriesEditorProposalMatches matches, String imageID)
protected void compareAndAddToMatches(String currentText, String[] proposals, String help, ISeriesEditorProposalMatches matches, String imageID)
protected void compareAndAddToMatches(String currentText, String[][] proposals, ISeriesEditorProposalMatches matches, String imageID)
protected void addToMatches(String[] proposals, String[] helps, ISeriesEditorProposalMatches matches, String imageID)
protected void addToMatches(String[][] proposals, ISeriesEditorProposalMatches matches, String imageID)
protected void addToMatches(String[] proposals, String help, ISeriesEditorProposalMatches matches, String imageID)
protected void addToMatches(String proposal, String help, ISeriesEditorProposalMatches matches, String imageID)
protected List findFunctionalMatches(String searchStr, ISeriesEditorFunctionalProposalMatch[] toSearch, int minParams)
protected ISeriesEditorProposalMatch findMatch(String searchStr, ISeriesEditorProposalMatch[] toSearch)
protected String getCurrentText()
protected String getCurrentTextIgnoreParentheses()
protected int getPositionOfPreviousDeliminator()
protected char getPreviousDeliminator()
protected int getPositionOfNextDeliminator()
protected char getNextDeliminator()
protected char getNextDeliminator(boolean ignoreSpaces)
protected String getPreviousText()
protected String getPreviousText(int position)
protected boolean isDeliminator(char c)
protected boolean isDelimiter(char c)
protected int getCase(String currentText, String currentFullText, int iCurrentLinePosition)
protected LpexDocumentLocation findLastPositionOf(char compareChar, int position, int element)
protected LpexDocumentLocation findLastPositionOf(String compareString, int position, int element)
protected char getPreviousChar(int position, int element)
protected char getPreviousChar(int position, int element, boolean lettersOnly)
protected boolean inParams()
protected boolean inParams(int position, int element, int minPosition)
protected boolean inParams(String functionName, int position, int element, int minPosition)
protected char getCharAt(int column)
protected char getCharAt(int column, int element)
protected String getTextAt(int column, boolean preserveCase)
protected String getFirstTextBetween(int scolumn, int fcolumn, boolean preserveCase, int element)
protected String getTextAt(int column, boolean preserveCase, int element)
protected String stripLeadingChars(String currentText, int fromColumn, int toColumn)
protected boolean compareTextAt(int column, String compareStr)
protected String getCurrentFullText()
protected String getTokenText(int position, int minPosition, int element)
protected boolean isTextBefore(int position)
protected String getTextInRange(int startPosition, int endPosition, int element)
protected int getCursorArgument(int position, int element, boolean continuation, int minColumn)
protected int getCursorArgument(String functionName, int position, int element, boolean continuation, int minColumn)
public boolean lineHasCharBefore(int position, int element, char c)
public int currentElement()
public int currentPosition()
public abstract ISeriesEditorProposalMatches getContextMatches(int documentOffset, String currentText)
public abstract ISeriesEditorProposalMatches getProposalMatches(int documentOffset, String currentText)
protected abstract boolean inParamBlock(String functionName, int position, int element, int minPosition)
protected abstract boolean inParamBlock(int position, int element, int minPosition)
protected LpexView getActiveView()
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |