blob: 8ba960ac11a08b23723c5b3e0898154ab735f382 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta name="copyright" content=
"Copyright (c) IBM Corporation and others 2000, 2010. 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=utf-8" />
<link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css" />
<title>
Java Editor
</title>
</head>
<body>
<h1>
Java Editor
</h1>
<p>
The Java editor provides specialized features for editing Java code.
</p>
<p>
Associated with the editor is a Java-specific Outline view, which shows the structure of the
active Java compilation unit. It is updated as the user edits the compilation unit.
</p>
<p>
The editor can also show a breadcrumb navigation bar. The breadcrumb shows the parent chain
of the element at the current cursor position. It is also updated when the user edits the
compilation unit or changes the selection.
</p>
<p>
The Java editor can be opened on binary CLASS files. If a JAR file containing the CLASS files
has a source attachment, then the editor shows the corresponding source.
</p>
<p>
The editor includes the following features:
</p>
<ul>
<li>Syntax highlighting
</li>
<li>Content/code assist
</li>
<li>Code formatting
</li>
<li>Import assistance
</li>
<li>Quick fix
</li>
<li>Integrated debugging features
</li>
</ul>
<p>
The Java editor can be configured to either show an entire compilation unit or a single Java
element only. To change the setting, use the toolbar button <span class="control">Show Source
of Selected Element Only</span>.
</p>
<p>
The most common way to invoke the Java editor is to open a Java file from the Package
Explorer using pop-up menus or by clicking the file (single or double-click depending on the
user preferences). You can also open the editor by opening Java elements, such as types,
methods, or fields, from other views.
</p>
<h3 class="related">Related concepts</h3>
<a href="concept-quickfix-assist.htm">Quick fix and assist</a><br />
<a href="concept-editor-templates.htm">Templates</a><br />
<h3 class="related">Related tasks</h3>
<a href="../tasks/tasks-73.htm">Opening an editor for a selected element</a><br />
<a href="../tasks/task-view_runtime_exceptions.htm">Viewing runtime exceptions</a><br />
<a href="../tasks/task-evaluating_expressions.htm">Evaluating expressions</a><br />
<h3 class="related">Related references</h3>
<a href="../reference/ref-java-editor-quickassist.htm">Quick assists</a><br />
<a href="../reference/ref-java-editor-quickfix.htm">Quick fixes</a><br />
<a href="../reference/views/ref-java-editor.htm">Java editor actions</a><br />
<a href="../reference/preferences/java/ref-preferences-editor.htm">Java editor
preferences</a><br />
<a href="../reference/views/ref-view-outline.htm">Java outline</a><br />
<a href="../reference/ref-java-editor-breadcrumb.htm">Java Editor Breadcrumb</a><br />
<a href="../reference/views/ref-viewsandeditors.htm">Views and editors</a>
</body>
</html>