-
Notifications
You must be signed in to change notification settings - Fork 66
/
ref-menu-search.htm
308 lines (300 loc) · 8.28 KB
/
ref-menu-search.htm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2008. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<title>
Search Actions
</title>
<link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css">
</head>
<body>
<h1>
Search Actions
</h1>
<p>
Search menu commands:
</p>
<table border="1" cellspacing="0" cellpadding="5" width="100%" summary="Search menu commands">
<tr>
<th>
<p>
Name
</p>
</th>
<th>
<p>
Function
</p>
</th>
</tr>
<tr align="left" valign="top">
<td align="left" valign="top">
<p>
Search...
</p>
</td>
<td align="left" valign="top">
<p>
Opens the search dialog (<b>Ctrl+H</b>)
</p>
</td>
</tr>
<tr>
<td align="left" valign="top">
<p>
File...
</p>
</td>
<td align="left" valign="top">
<p>
Opens the search dialog on the File search page
</p>
</td>
</tr>
<tr>
<td align="left" valign="top">
<p>
Java...
</p>
</td>
<td align="left" valign="top">
<p>
Opens the search dialog on the Java search page
</p>
</td>
</tr>
<tr>
<td align="left" valign="top">
<p>
Text
</p>
</td>
<td align="left" valign="top">
<p>
Searches for the selected text in the chosen scope:
</p>
<ul>
<li>Workspace (<b>Ctrl+Alt+G</b>)</li>
<li>Project</li>
<li>Hierarchy</li>
<li>Working Set</li>
</ul>
</td>
</tr>
<tr>
<td align="left" valign="top">
<p>
References
</p>
</td>
<td align="left" valign="top">
<p>
Finds all references to the selected Java element in the chosen scope:
</p>
<ul>
<li>Workspace (<b>Ctrl+Shift+G</b>):</li>
<li>Project</li>
<li>Hierarchy</li>
<li>Working Set</li>
</ul>
</td>
</tr>
<tr>
<td align="left" valign="top">
<p>
Declarations
</p>
</td>
<td>
<p>
Finds all declarations of the selected Java element in the chosen scope:
</p>
<ul>
<li>Workspace (<b>Ctrl+G</b>)</li>
<li>Project</li>
<li>Hierarchy</li>
<li>Working Set</li>
</ul>
<p>Note: A strict declaration search would only ever return a single declaration. Since that's not interesting,
declaration searches are relaxed as follows:</p>
<ul>
<li>Method declarations: Hierarchy search finds overriding and overridden methods in the hierarchy.
Other searches find methods with the same name and signature, but ignoring declaring type and return type.</li>
<li>Field declarations: Ignore the declaring type and the field's type.</li>
</ul>
</td>
</tr>
<tr align="left" valign="top">
<td align="left" valign="top">
<p>
Implementors
</p>
</td>
<td>
<p>
Finds all implementors of the selected interface in the chosen scope:
</p>
<ul>
<li>Workspace</li>
<li>Project</li>
<li>Working Set</li>
</ul>
</td>
</tr>
<tr align="left" valign="top">
<td>
Read Access
</td>
<td>
<p>
Finds all read accesses to the selected field in the chosen scope:
</p>
<ul>
<li>Workspace</li>
<li>Project</li>
<li>Hierarchy</li>
<li>Working Set</li>
</ul>
</td>
</tr>
<tr align="left" valign="top">
<td>
Write Access
</td>
<td>
<p>
Finds all write accesses to the selected field in the chosen scope:
</p>
<ul>
<li>Workspace</li>
<li>Project</li>
<li>Hierarchy</li>
<li>Working Set</li>
</ul>
</td>
</tr>
<tr>
<td valign="top">
<p>Occurrences in File</p>
</td>
<td valign="top">
<p>Finds all occurrences of the selected Java element in its file (<b>Ctrl+Shift+U</b>)
</p>
<ul>
<li>Identifier: Occurrences of all identifiers resolving to the selected element</li>
<li>Implementing Methods: All methods implemented by the selected super-interface declaration</li>
<li>Throwing Exceptions: All statements that possible throw the selected declared exception</li>
<li>Method Exits: All statements that can exit the method of the selected return type</li>
<li>Break/Continue Target: The targets of the selected break and continue statement</li>
</ul>
</td>
</tr>
<tr>
<td valign="top">
<p>Referring Tests</p>
</td>
<td valign="top">
<p>Finds all JUnit tests that refer to the currently selected type</p>
</td>
</tr>
</table>
<p>
Search scopes submenu:
</p>
<table border="1" cellspacing="0" cellpadding="5" summary="Search scopes submenu">
<tr>
<th>
<p>
Scope
</p>
</th>
<td>
<strong>Availability</strong>
</td>
<th>
<p>
Description
</p>
</th>
</tr>
<tr>
<td align="left" valign="top">
<p>
Workspace
</p>
</td>
<td>
all elements
</td>
<td align="left" valign="top">
<p>
Searches in the full workspace
</p>
</td>
</tr>
<tr>
<td align="left" valign="top">
<p>
Project
</p>
</td>
<td>
all elements
</td>
<td align="left" valign="top">
<p>
Searches in the project enclosing the selected element
</p>
</td>
</tr>
<tr>
<td align="left" valign="top">
<p>
Hierarchy
</p>
</td>
<td>
types and members
</td>
<td align="left" valign="top">
<p>
Searches in the type's hierarchy
</p>
</td>
</tr>
<tr>
<td align="left" valign="top">
<p>
Working Set
</p>
</td>
<td>
all elements
</td>
<td align="left" valign="top">
<p>
Searches in a working set
</p>
</td>
</tr>
</table>
<p>
Custom scopes can be configured using the working set dialog. Existing working sets
are shown in the Search scope submenus after they've been used in a search.
</p>
<p>
A Java search can also be conducted via the context menu of all Java views.
The search context menu is also available in the Java editor. The search is only performed if the currently selected text can be resolved to a Java element.
</p>
<p>
The type of the selected Java element defines which search context menus are available. The Java editor does not constrain the list of available Java searches based on the
selection.
</p>
<h3 class="related">Related concepts</h3>
<a href="../concepts/concept-java-search.htm">Java search</a>
<h3 class="related">Related references</h3>
<a href="../reference/ref-dialog-java-search.htm">Java search tab</a>
</body>
</html>