org.eclipse.jdt.ui.javaCompletionProposalComputer
extension-point.public interface IJavadocCompletionProcessor
This interface must be implemented by clients who extend the
org.eclipse.jdt.ui.javadocCompletionProcessor
extension-point
Modifier and Type | Field and Description |
---|---|
static int |
RESTRICT_TO_MATCHING_CASE
Deprecated.
Flag used by
computeCompletionProposals . |
Modifier and Type | Method and Description |
---|---|
IJavaCompletionProposal[] |
computeCompletionProposals(ICompilationUnit cu,
int offset,
int length,
int flags)
Deprecated.
Returns the completion proposals based on the specified location
within the compilation unit.
|
IContextInformation[] |
computeContextInformation(ICompilationUnit cu,
int offset)
Deprecated.
Returns information about possible contexts based on the
specified location within the compilation unit.
|
String |
getErrorMessage()
Deprecated.
Returns the reason why this completion processor was unable
to produce a completion proposals or context information.
|
static final int RESTRICT_TO_MATCHING_CASE
computeCompletionProposals
.
Specifies that only proposals should be returned that match
the case of the prefix in the code (value: 1
).IContextInformation[] computeContextInformation(ICompilationUnit cu, int offset)
cu
- the working copy of the compilation unit which
is used to compute the possible contextsoffset
- an offset within the compilation unit for
which context information should be computednull
if no context could be foundIJavaCompletionProposal[] computeCompletionProposals(ICompilationUnit cu, int offset, int length, int flags)
cu
- the working copy of the compilation unit in which the
completion request has been called.offset
- an offset within the compilation unit for which
completion proposals should be computedlength
- the length of the current selection.flags
- settings for the code assist. Flags as defined in this interface,
e.g. RESTRICT_TO_MATCHING_CASE
.null
if
no proposals could be foundString getErrorMessage()
null
if no error occurred
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.