org.eclipse.jdt.internal.codeassist
Interface ISelectionRequestor

All Known Implementing Classes:
SelectionRequestor

public interface ISelectionRequestor

A selection requestor accepts results from the selection engine.


Method Summary
 void acceptError(CategorizedProblem error)
          Code assist notification of a compilation error detected during selection.
 void acceptField(char[] declaringTypePackageName, char[] declaringTypeName, char[] name, boolean isDeclaration, char[] uniqueKey, int start, int end)
          Code assist notification of a field selection.
 void acceptMethod(char[] declaringTypePackageName, char[] declaringTypeName, java.lang.String enclosingDeclaringTypeSignature, char[] selector, char[][] parameterPackageNames, char[][] parameterTypeNames, java.lang.String[] parameterSignatures, char[][] typeParameterNames, char[][][] typeParameterBoundNames, boolean isConstructor, boolean isDeclaration, char[] uniqueKey, int start, int end)
          Code assist notification of a method selection.
 void acceptMethodTypeParameter(char[] declaringTypePackageName, char[] declaringTypeName, char[] selector, int selectorStart, int selectorEnd, char[] typeParameterName, boolean isDeclaration, int start, int end)
          Code assist notification of a type parameter selection.
 void acceptPackage(char[] packageName)
          Code assist notification of a package selection.
 void acceptType(char[] packageName, char[] annotationName, int modifiers, boolean isDeclaration, char[] genericTypeSignature, int start, int end)
          Code assist notification of a enum selection.
 void acceptTypeParameter(char[] declaringTypePackageName, char[] declaringTypeName, char[] typeParameterName, boolean isDeclaration, int start, int end)
          Code assist notification of a type parameter selection.
 

Method Detail

acceptType

void acceptType(char[] packageName,
                char[] annotationName,
                int modifiers,
                boolean isDeclaration,
                char[] genericTypeSignature,
                int start,
                int end)
Code assist notification of a enum selection.

Parameters:
packageName - char[] Declaring package name of the type.
annotationName - char[] Name of the type.
isDeclaration - boolean Answer if the selected type is a declaration
genericTypeSignature - genric type signature of the selected type if it is a parameterized type
start - Start of the selection
end - End of the selection NOTE - All package and type names are presented in their readable form: Package names are in the form "a.b.c". Nested type names are in the qualified form "A.M". The default package is represented by an empty array.

acceptError

void acceptError(CategorizedProblem error)
Code assist notification of a compilation error detected during selection.

Parameters:
error - CategorizedProblem Only problems which are categorized as errors are notified to the requestor, warnings are silently ignored. In case an error got signaled, no other completions might be available, therefore the problem message should be presented to the user. The source positions of the problem are related to the source where it was detected (might be in another compilation unit, if it was indirectly requested during the code assist process). Note: the problem knows its originating file name.

acceptField

void acceptField(char[] declaringTypePackageName,
                 char[] declaringTypeName,
                 char[] name,
                 boolean isDeclaration,
                 char[] uniqueKey,
                 int start,
                 int end)
Code assist notification of a field selection.

Parameters:
declaringTypePackageName - char[] Name of the package in which the type that contains this field is declared.
declaringTypeName - char[] Name of the type declaring this new field.
name - char[] Name of the field.
isDeclaration - boolean Answer if the selected field is a declaration
uniqueKey - unique key of this field
start - Start of the selection
end - End of the selection NOTE - All package and type names are presented in their readable form: Package names are in the form "a.b.c". Nested type names are in the qualified form "A.M". The default package is represented by an empty array.

acceptMethod

void acceptMethod(char[] declaringTypePackageName,
                  char[] declaringTypeName,
                  java.lang.String enclosingDeclaringTypeSignature,
                  char[] selector,
                  char[][] parameterPackageNames,
                  char[][] parameterTypeNames,
                  java.lang.String[] parameterSignatures,
                  char[][] typeParameterNames,
                  char[][][] typeParameterBoundNames,
                  boolean isConstructor,
                  boolean isDeclaration,
                  char[] uniqueKey,
                  int start,
                  int end)
Code assist notification of a method selection.

Parameters:
declaringTypePackageName - char[] Name of the package in which the type that contains this new method is declared.
declaringTypeName - char[] Name of the type declaring this new method.
enclosingDeclaringTypeSignature - String Type signature of the declaring type of the declaring type or null if declaring type is a top level type.
selector - char[] Name of the new method.
parameterPackageNames - char[][] Names of the packages in which the parameter types are declared. Should contain as many elements as parameterTypeNames.
parameterTypeNames - char[][] Names of the parameters types. Should contain as many elements as parameterPackageNames.
parameterSignatures - String[] Signature of the parameters types. Should contain as many elements as parameterPackageNames.
isConstructor - boolean Answer if the method is a constructor.
isDeclaration - boolean Answer if the selected method is a declaration
uniqueKey - unique key of the method
start - Start of the selection
end - End of the selection NOTE - All package and type names are presented in their readable form: Package names are in the form "a.b.c". Base types are in the form "int" or "boolean". Array types are in the qualified form "M[]" or "int[]". Nested type names are in the qualified form "A.M". The default package is represented by an empty array.

acceptPackage

void acceptPackage(char[] packageName)
Code assist notification of a package selection.

Parameters:
packageName - char[] The package name. NOTE - All package names are presented in their readable form: Package names are in the form "a.b.c". The default package is represented by an empty array.

acceptTypeParameter

void acceptTypeParameter(char[] declaringTypePackageName,
                         char[] declaringTypeName,
                         char[] typeParameterName,
                         boolean isDeclaration,
                         int start,
                         int end)
Code assist notification of a type parameter selection.

Parameters:
declaringTypePackageName - char[] Name of the package in which the type that contains this new method is declared.
declaringTypeName - char[] Name of the type declaring this new method.
typeParameterName - char[] Name of the type parameter.
isDeclaration - boolean Answer if the selected type parameter is a declaration
start - Start of the selection
end - End of the selection NOTE - All package and type names are presented in their readable form: Package names are in the form "a.b.c". Nested type names are in the qualified form "A.M". The default package is represented by an empty array.

acceptMethodTypeParameter

void acceptMethodTypeParameter(char[] declaringTypePackageName,
                               char[] declaringTypeName,
                               char[] selector,
                               int selectorStart,
                               int selectorEnd,
                               char[] typeParameterName,
                               boolean isDeclaration,
                               int start,
                               int end)
Code assist notification of a type parameter selection.

Parameters:
declaringTypePackageName - char[] Name of the package in which the type that contains this new method is declared.
declaringTypeName - char[] Name of the type declaring this new method.
selector - char[] Name of the declaring method.
selectorStart - int Start of the selector.
selectorEnd - int End of the selector.
typeParameterName - char[] Name of the type parameter.
isDeclaration - boolean Answer if the selected type parameter is a declaration
start - Start of the selection
end - End of the selection NOTE - All package and type names are presented in their readable form: Package names are in the form "a.b.c". Nested type names are in the qualified form "A.M". The default package is represented by an empty array.