Package com.iizigo.java.assist
Class JavaCodeCompletion
java.lang.Object
com.iizigo.java.assist.JavaCodeCompletion
- All Implemented Interfaces:
- IJavaCompletionProposalComputer
The Code Completion for Java code that handles String's and Annotations.
- Author:
- Christopher Mindus
- Constructor SummaryConstructors
- Method SummaryModifier and TypeMethodDescription- computeCompletionProposals- (ContentAssistInvocationContext context, IProgressMonitor monitor) Returns a list of completion proposals valid at the given invocation context.- computeContextInformation- (ContentAssistInvocationContext context, IProgressMonitor monitor) Returns context information objects valid at the given invocation context.Returns the reason why this computer was unable to produce any completion proposals or context information.- voidInforms the computer that a content assist session has ended.- voidInforms the computer that a content assist session has started.
- Constructor Details- JavaCodeCompletionpublic JavaCodeCompletion()Default Eclipse constructor.
 
- Method Details- sessionStartedpublic void sessionStarted()Informs the computer that a content assist session has started. This call will always be followed by a- sessionEnded()call, but not necessarily by calls to computeCompletionProposals or computeContextInformation.- Specified by:
- sessionStartedin interface- IJavaCompletionProposalComputer
 
- computeCompletionProposalspublic List<ICompletionProposal> computeCompletionProposals- (ContentAssistInvocationContext context, IProgressMonitor monitor) Returns a list of completion proposals valid at the given invocation context.- Specified by:
- computeCompletionProposalsin interface- IJavaCompletionProposalComputer
- Parameters:
- context- the context of the content assist invocation
- monitor- 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.
- Returns:
- a list of completion proposals (element type: ICompletionProposal)
 
- computeContextInformationpublic List<IContextInformation> computeContextInformation- (ContentAssistInvocationContext context, IProgressMonitor monitor) Returns context information objects valid at the given invocation context.- Specified by:
- computeContextInformationin interface- IJavaCompletionProposalComputer
- Parameters:
- context- the context of the content assist invocation
- monitor- 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.
- Returns:
- A list of context information objects (element type: IContextInformation).
 
- getErrorMessageReturns the reason why this computer was unable to produce any completion proposals or context information.- Specified by:
- getErrorMessagein interface- IJavaCompletionProposalComputer
- Returns:
- An error message or nullif no error occurred.
 
- sessionEndedpublic void sessionEnded()Informs the computer that a content assist session has ended. This call will always be after any calls to computeCompletionProposals and computeContextInformation.- Specified by:
- sessionEndedin interface- IJavaCompletionProposalComputer