Java Reference
In-Depth Information
Figure 2.11
The Go To | Class command makes it easy to
load classes into the editor; all you have to know
is the names (or part of the names).
You can quickly load any Java class into the editor by using the Go To | Class
( Ctrl+N ) command and entering the name of the class into the dialog box that
appears. As you type, matching entries will appear in the drop-down box, making
locating your file quick and convenient. Use the arrows keys or mouse to select an
entry, and then press Enter or double-click to load it. By default, only files that
are included in your project path are included. If you enable the Include non-
project classes option, however, your entire source path will be searched, includ-
ing libraries and the JDK . The wildcard character (*) can be used anywhere in the
name to expand the search, as illustrated in figure 2.11.
The Go To | Class command is aware of the CamelHumps pattern (the
typical use of upper- and lowercase letters in naming Java classes) and
can use it to search for class names. For example, if you need to open the
ArrayIndexOutOfBoundsException class, type AIOOB in the Go To |
Class field, and IDEA will find all classes that follow the CamelHumps
pattern. (Don't forget to select the Include non-project classes option,
for this example to work!)
TIP
The Go To | File ( Ctrl+Shift+N ) command works the same way, but it loads files
by filename rather than by class name. You can see an example of this feature in
action in figure 2.12. This command can be used to load text, JSP , HTML , and
other text files. By default, Java files aren't included in the search results unless
you enable the Include java files option. Wildcard expansion is also supported
by this command.
Figure 2.12
The Go To | File command works exactly like the Go To |
Class command, but it operates on non-Java files.
 
 
 
Search WWH ::




Custom Search