|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public interface ICompletionProposalComputer
Computes completions and context information displayed by editor content assistants for the COBOL, PL/I, and JCL languages. Contributions to the com.ibm.systemz.editor.completionProposalComputer extension point must implement this interface.
| Method Summary | |
|---|---|
java.util.List<SimpleCompletionProposal> |
computeCompletionProposals(IContentAssistInvocationContext context,
org.eclipse.core.runtime.IProgressMonitor monitor)
Returns a list of completion proposals valid at the given invocation context. |
java.util.List<org.eclipse.jface.text.contentassist.IContextInformation> |
computeContextInformation(IContentAssistInvocationContext context,
org.eclipse.core.runtime.IProgressMonitor monitor)
Returns context information objects valid at the given invocation context. |
java.lang.String |
getErrorMessage()
Returns the reason why this computer was unable to produce any completion proposals or context information. |
void |
sessionEnded()
Informs the computer that a content assist session has ended. |
void |
sessionStarted()
Informs the computer that a content assist session has started. |
| Method Detail |
|---|
java.util.List<SimpleCompletionProposal> computeCompletionProposals(IContentAssistInvocationContext context,
org.eclipse.core.runtime.IProgressMonitor monitor)
context - the context of the content assist invocationmonitor - a progress monitor to report progress. The monitor is private to this
invocation, i.e. there is no need for the receiver to spawn a sub monitor.
SimpleCompletionProposal)
java.util.List<org.eclipse.jface.text.contentassist.IContextInformation> computeContextInformation(IContentAssistInvocationContext context,
org.eclipse.core.runtime.IProgressMonitor monitor)
Returns context information objects valid at the given invocation context.
A good example of Context Information objects are the parameter assistance displays in the Java Editor when entering parameters into a method invocation.
It is recommended for the returned objects to implement IContextInformationExtension and override their equals() methods to prevent duplicate contexts from being displayed. Returned objects may additionally implement IContextInformationValidator to override when the displayed context information is dismissed, and IContextInformationPresenter to add text styling to the presentation.
To see an example of Context Information, type ctrl+shift+space while using the Java Editor when the caret is on a method name.
context - the context of the content assist invocationmonitor - a progress monitor to report progress. The monitor is private to this
invocation, i.e. there is no need for the receiver to spawn a sub monitor.
IContextInformation)void sessionStarted()
void sessionEnded()
java.lang.String getErrorMessage()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||