blob: e1c762df592104295a3502881d064b3d3959eefc [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<head>
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2007. 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">
<link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css">
<title> Using quick views </title>
</head>
<body>
<h1> Using quick views </h1>
<p>
In this section, you will be introduced to the quick outline view. Quick views are in-place views which
are shown on top of the editor area and can easily be controlled using the keyboard. A second quick view will
be introduced in the <a href="qs-6.htm#quick_type_hierarchy">Type Hierarchy section</a>.
</p>
<h2>Quick Outline <a name="quick_outline"></a></h2>
<p>To use the quick outline view in the Java editor:</p>
<ol>
<li>Open
<em>junit.samples.VectorTest.java</em> file in the Java editor
if you do not already have it open.</li>
<li> Press <kbd>Ctrl+O</kbd> or select <strong>Navigate &gt; Quick Outline</strong> and
you will see an in-place outline of the current source file. <br>
<img src="images/editor_vectortest_quickoutline.png" alt="Quick outline of VectorTest"> </li>
<li>Press <kbd>Ctrl+O</kbd> a second time and all inherited fields,
types and methods are shown as well. Inherited members are shown in grey. </li>
<li>Start typing while the quick outline view is shown to filter the list of displayed elements.
Further, use the arrow keys to navigate in the outline view
and press <kbd>Enter</kbd> to reveal the selected element in the Java editor. <br>
<img src="images/quickoutline_submethods.png" alt="Filtered quick outline view">
</li>
<li>Click the triangle in the upper right corner to see the quick view menu: <br>
<img src="images/quickoutline_menu.png" alt="Quick view menu">
<br>
The menu items can be divided into 3 categories:
<ul>
<li><em>Position</em> - Allows you to resize and move the quick view and to remember these settings</li>
<li><em>Filter</em> - Define filters so that not all members are shown in the quick outline.</li>
<li><em>Sort</em> - Sort the members by their defining type or alphabetically.</li>
</ul>
</li>
</ol>
<p><em>Note:</em> <kbd>Ctrl+O</kbd> always opens the outline for the current Java editor.
Press <kbd>Ctrl+O</kbd> to open the quick outline for the currently selected type.
</p>
<P class="nav_footer" id="nav_footer">Next Section: <A href="qs-AddMethod.htm">Adding new methods</A>
</P>
</body>
</html>