|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.ibm.lpex.alef.contentassist.CompletionProposal
The standard LPEX implementation of the ICompletionProposal
interface.
| Constructor Summary | |
CompletionProposal(java.lang.String replacementString,
int replacementOffset,
int replacementLength,
int cursorPosition)
Creates a new completion proposal based on the provided information. |
|
CompletionProposal(java.lang.String replacementString,
int replacementOffset,
int replacementLength,
int cursorPosition,
org.eclipse.swt.graphics.Image image,
java.lang.String displayString,
IContextInformation contextInformation,
java.lang.String additionalProposalInfo)
Creates a new completion proposal. |
|
| Method Summary | |
void |
apply(org.eclipse.jface.text.IDocument document)
Inserts the proposed completion into the given document. |
void |
apply(LpexTextViewer viewer)
|
java.lang.String |
getAdditionalProposalInfo()
Returns optional additional information about the proposal. |
IContextInformation |
getContextInformation()
Returns optional context information associated with this proposal. |
java.lang.String |
getDisplayString()
Returns the string to be displayed in the list of completion proposals. |
org.eclipse.swt.graphics.Image |
getImage()
Returns the image to be displayed in the list of completion proposals. |
org.eclipse.swt.graphics.Point |
getSelection(org.eclipse.jface.text.IDocument document)
Returns the new selection after the proposal has been applied to the given document in absolute document coordinates. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CompletionProposal(java.lang.String replacementString,
int replacementOffset,
int replacementLength,
int cursorPosition)
null.replacementString - the actual string to be inserted into the documentreplacementOffset - the offset of the text to be replacedreplacementLength - the length of the text to be replacedcursorPosition - the position of the cursor following the insert relative to replacementOffset
public CompletionProposal(java.lang.String replacementString,
int replacementOffset,
int replacementLength,
int cursorPosition,
org.eclipse.swt.graphics.Image image,
java.lang.String displayString,
IContextInformation contextInformation,
java.lang.String additionalProposalInfo)
replacementString - the actual string to be inserted into the documentreplacementOffset - the offset of the text to be replacedreplacementLength - the length of the text to be replacedcursorPosition - the position of the cursor following the insert relative to replacementOffsetimage - the image to display for this proposaldisplayString - the string to be displayed for the proposalcontentInformation - the context information associated with this proposaladditionalProposalInfo - the additional information associated with this proposal| Method Detail |
public void apply(org.eclipse.jface.text.IDocument document)
ICompletionProposalapply in interface ICompletionProposalcom.ibm.lpex.alef.contentassist.ICompletionProposaldocument - the document into which to insert the proposed completionpublic void apply(LpexTextViewer viewer)
public org.eclipse.swt.graphics.Point getSelection(org.eclipse.jface.text.IDocument document)
ICompletionProposalgetSelection in interface ICompletionProposalcom.ibm.lpex.alef.contentassist.ICompletionProposaldocument - the document into which the proposed completion has been insertedpublic IContextInformation getContextInformation()
ICompletionProposalgetContextInformation in interface ICompletionProposalcom.ibm.lpex.alef.contentassist.ICompletionProposalnullpublic org.eclipse.swt.graphics.Image getImage()
ICompletionProposalgetImage in interface ICompletionProposalcom.ibm.lpex.alef.contentassist.ICompletionProposalnull if no image is desiredpublic java.lang.String getDisplayString()
ICompletionProposalgetDisplayString in interface ICompletionProposalcom.ibm.lpex.alef.contentassist.ICompletionProposalpublic java.lang.String getAdditionalProposalInfo()
ICompletionProposalgetAdditionalProposalInfo in interface ICompletionProposalcom.ibm.lpex.alef.contentassist.ICompletionProposalnull
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||