|
LPEX 4.4.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ICompletionProposal
Interface for completion proposals generated by content-assist processors. A completion proposal contains information used to present the proposed completion to the user, to insert the completion should the user select it, and to present context information for the chosen completion once it has been inserted.
This interface can be implemented by clients. By default, clients use
CompletionProposal
as the standard
implementer of this interface.
This is the LPEX version of
org.eclipse.jface.text.contentassist.ICompletionProposal
.
It has a different apply() method, and drops method getSelection(IDocument).
IContentAssistProcessor
Method Summary | |
---|---|
void |
apply(LpexTextViewer textViewer)
Insert the proposed completion into the document of the given text viewer. |
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. |
Method Detail |
---|
void apply(LpexTextViewer textViewer)
textViewer
- the LpexTextViewer into whose document the proposed
completion should be insertedString getAdditionalProposalInfo()
null
String getDisplayString()
Image getImage()
null
if no image is desiredIContextInformation getContextInformation()
null
|
LPEX 4.4.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |