KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > core > CompletionRequestorAdapter


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdt.core;
12
13 import org.eclipse.jdt.core.compiler.IProblem;
14
15 /**
16  * Adapter of the requestor interface <code>ICompletionRequestor</code>.
17  * <p>
18  * This class is intended to be instantiated and subclassed by clients.
19  * </p>
20  *
21  * @see ICompletionRequestor
22  * @since 2.0
23  * @deprecated Subclass {@link CompletionRequestor} instead.
24  */

25 public class CompletionRequestorAdapter implements ICompletionRequestor {
26
27     /*
28      * @see ICompletionRequestor#acceptAnonymousType(char[], char[], char[][], char[][], char[][], char[], int, int, int)
29      */

30     public void acceptAnonymousType(
31         char[] superTypePackageName,
32         char[] superTypeName,
33         char[][] parameterPackageNames,
34         char[][] parameterTypeNames,
35         char[][] parameterNames,
36         char[] completionName,
37         int modifiers,
38         int completionStart,
39         int completionEnd,
40         int relevance) {
41             // default behavior is to ignore
42
}
43
44     /*
45      * @see ICompletionRequestor#acceptClass(char[], char[], char[], int, int, int)
46      */

47     public void acceptClass(
48         char[] packageName,
49         char[] className,
50         char[] completionName,
51         int modifiers,
52         int completionStart,
53         int completionEnd,
54         int relevance) {
55             // default behavior is to ignore
56
}
57
58     /*
59      * @see ICompletionRequestor#acceptError(IProblem)
60      */

61     public void acceptError(IProblem error) {
62         // default behavior is to ignore
63
}
64
65     /*
66      * @see ICompletionRequestor#acceptField(char[], char[], char[], char[], char[], char[], int, int, int)
67      */

68     public void acceptField(
69         char[] declaringTypePackageName,
70         char[] declaringTypeName,
71         char[] name,
72         char[] typePackageName,
73         char[] typeName,
74         char[] completionName,
75         int modifiers,
76         int completionStart,
77         int completionEnd,
78         int relevance) {
79             // default behavior is to ignore
80
}
81
82     /*
83      * @see ICompletionRequestor#acceptInterface(char[], char[], char[], int, int, int)
84      */

85     public void acceptInterface(
86         char[] packageName,
87         char[] interfaceName,
88         char[] completionName,
89         int modifiers,
90         int completionStart,
91         int completionEnd,
92         int relevance) {
93             // default behavior is to ignore
94
}
95
96     /*
97      * @see ICompletionRequestor#acceptKeyword(char[], int, int)
98      */

99     public void acceptKeyword(
100         char[] keywordName,
101         int completionStart,
102         int completionEnd,
103         int relevance) {
104             // default behavior is to ignore
105
}
106
107     /*
108      * @see ICompletionRequestor#acceptLabel(char[], int, int)
109      */

110     public void acceptLabel(
111         char[] labelName,
112         int completionStart,
113         int completionEnd,
114         int relevance) {
115             // default behavior is to ignore
116
}
117
118     /*
119      * @see ICompletionRequestor#acceptLocalVariable(char[], char[], char[], int, int, int)
120      */

121     public void acceptLocalVariable(
122         char[] name,
123         char[] typePackageName,
124         char[] typeName,
125         int modifiers,
126         int completionStart,
127         int completionEnd,
128         int relevance) {
129             // default behavior is to ignore
130
}
131
132     /*
133      * @see ICompletionRequestor#acceptMethod(char[], char[], char[], char[][], char[][], char[][], char[], char[], char[], int, int, int)
134      */

135     public void acceptMethod(
136         char[] declaringTypePackageName,
137         char[] declaringTypeName,
138         char[] selector,
139         char[][] parameterPackageNames,
140         char[][] parameterTypeNames,
141         char[][] parameterNames,
142         char[] returnTypePackageName,
143         char[] returnTypeName,
144         char[] completionName,
145         int modifiers,
146         int completionStart,
147         int completionEnd,
148         int relevance) {
149             // default behavior is to ignore
150
}
151
152     /*
153      * @see ICompletionRequestor#acceptMethodDeclaration(char[], char[], char[], char[][], char[][], char[][], char[], char[], char[], int, int, int)
154      */

155     public void acceptMethodDeclaration(
156         char[] declaringTypePackageName,
157         char[] declaringTypeName,
158         char[] selector,
159         char[][] parameterPackageNames,
160         char[][] parameterTypeNames,
161         char[][] parameterNames,
162         char[] returnTypePackageName,
163         char[] returnTypeName,
164         char[] completionName,
165         int modifiers,
166         int completionStart,
167         int completionEnd,
168         int relevance) {
169             // default behavior is to ignore
170
}
171
172     /*
173      * @see ICompletionRequestor#acceptModifier(char[], int, int)
174      */

175     public void acceptModifier(
176         char[] modifierName,
177         int completionStart,
178         int completionEnd,
179         int relevance) {
180             // default behavior is to ignore
181
}
182
183     /*
184      * @see ICompletionRequestor#acceptPackage(char[], char[], int, int)
185      */

186     public void acceptPackage(
187         char[] packageName,
188         char[] completionName,
189         int completionStart,
190         int completionEnd,
191         int relevance) {
192             // default behavior is to ignore
193
}
194
195     /*
196      * @see ICompletionRequestor#acceptType(char[], char[], char[], int, int)
197      */

198     public void acceptType(
199         char[] packageName,
200         char[] typeName,
201         char[] completionName,
202         int completionStart,
203         int completionEnd,
204         int relevance) {
205             // default behavior is to ignore
206
}
207
208     /*
209      * @see ICompletionRequestor#acceptVariableName(char[], char[], char[], char[], int, int)
210      */

211     public void acceptVariableName(
212         char[] typePackageName,
213         char[] typeName,
214         char[] name,
215         char[] completionName,
216         int completionStart,
217         int completionEnd,
218         int relevance) {
219             // default behavior is to ignore
220
}
221 }
222
Popular Tags