|
LPEX 4.4.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.lpex.alef.contentassist.CompletionProposal
public final class CompletionProposal
The standard LPEX implementation of the ICompletionProposal
interface.
Constructor Summary | |
---|---|
CompletionProposal(String replacementString,
int replacementOffset,
int replacementLength,
int cursorPosition)
Create a new completion proposal based on the information provided. |
|
CompletionProposal(String replacementString,
int replacementOffset,
int replacementLength,
int cursorPosition,
Image image,
String displayString,
IContextInformation contextInformation,
String additionalProposalInfo)
Create a new completion proposal. |
Method Summary | |
---|---|
void |
apply(LpexTextViewer viewer)
In LPEX, we apply against the LpexTextViewer directly, not its document. |
String |
getAdditionalProposalInfo()
Return optional additional information about the proposal. |
IContextInformation |
getContextInformation()
Return optional context information associated with this proposal. |
String |
getDisplayString()
Return the string to be displayed in the list of completion proposals. |
Image |
getImage()
Return the image to be displayed in the list of completion proposals. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompletionProposal(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 replaced relative to the
current cursor position (i.e., 0 or < 0)replacementLength
- the length of the text to be replacedcursorPosition
- N/U (in Eclipse: the position of the cursor following the
insert, relative to replacementOffset)public CompletionProposal(String replacementString, int replacementOffset, int replacementLength, int cursorPosition, Image image, String displayString, IContextInformation contextInformation, String additionalProposalInfo)
replacementString
- the actual string to be inserted into the documentreplacementOffset
- the offset of the text to be replaced relative to the
current cursor position (i.e., 0 or < 0)replacementLength
- the length of the text to be replacedcursorPosition
- N/U (in Eclipse: the position of the cursor following the
insert, relative to replacementOffset)image
- the image to display for this proposaldisplayString
- the string to be displayed for the proposalcontextInformation
- the context information associated with this proposaladditionalProposalInfo
- the additional information associated with this proposalMethod Detail |
---|
public void apply(LpexTextViewer viewer)
apply
in interface ICompletionProposal
viewer
- the LpexTextViewer into whose document the proposed
completion should be insertedpublic IContextInformation getContextInformation()
ICompletionProposal
getContextInformation
in interface ICompletionProposal
null
public Image getImage()
ICompletionProposal
getImage
in interface ICompletionProposal
null
if no image is desiredpublic String getDisplayString()
ICompletionProposal
getDisplayString
in interface ICompletionProposal
public String getAdditionalProposalInfo()
ICompletionProposal
getAdditionalProposalInfo
in interface ICompletionProposal
null
|
LPEX 4.4.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |