blob: 9ad1cfbc49fd04cbf52be13c0ba98c4ef64e5729 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<head>
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2006, 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">
<script language="JavaScript" src="PLUGINS_ROOT/org.eclipse.help/livehelp.js"> </script>
<title>Filtering in Java views</title>
</head>
<body>
<h1>Filtering in Java views</h1>
<h2>Applying View Filters</h2>
<p>All Java views allow to filter the displayed Java elements. The set of available filters depends on the view.</p>
<p>To filter elements:</p>
<ol>
<li>On the view toolbar, click the <strong>Menu</strong> button and choose <strong>Filters...</strong>.</li>
<li>Select or clear the filters that you want to apply to the view (read <strong>Filter description</strong> to learn about the selected filter's functionality).</li>
<li>Optionally, you can select patterns for filtering the view:
<ul>
<li>Select the <strong>Name filter patterns</strong> checkbox at the top of the dialog.</li>
<li>In the text field below, specify the desired patterns (names matching one of the patterns will be hidden).</li>
</ul>
</li>
</ol>
<h2>Filtering Members</h2>
<p>Several Java views (e.g. <strong>Outline</strong>, <strong>Package Explorer</strong>, <strong>Members</strong>) offer filtering of members (fields, types and methods).
The filters are available as toolbar buttons or as view menu items, depending on the view. There are
3 member filters:</p>
<ul>
<li><span class="control">Hide Fields</span>: when activated, this filter causes all fields to be removed from the view.</li>
<li><span class="control">Hide Static Fields and Methods</span>: when activated, this filter causes all static members to be removed from the view.</li>
<li><span class="control">Hide Non-Public Members</span>: when activated, this filter causes all non-public members to be removed from the view.</li>
</ul>
Additionally, the <strong>Package Explorer</strong> view can display or hide all elements inside compilation units.
<p>To show or hide members in the <strong>Package Explorer</strong> view, select or clear the <span class="control">Show members in Package Explorer</span> checkbox in the
<a class="command-link" href='javascript:executeCommand("org.eclipse.ui.window.preferences(preferencePageId=org.eclipse.jdt.ui.preferences.AppearancePreferencePage)")'>
<img src="PLUGINS_ROOT/org.eclipse.help/command_link.png" alt="Opens the Appearance preference page">
<span class="control">Java &gt; Appearance</span></a> preference page.
</p>
<p><img src="../images/ngrelc.png" alt="Related concepts" border="0" ></p>
<p><a href="../concepts/concepts-3.htm">Java projects</a></p>
<p><img src="../images/ngrelr.png" alt="Related reference" border="0" ></p>
<p>
<a href="../reference/ref-dialog-java-element-filters.htm">Java element filter dialog</a><br>
<a href="../reference/ref-view-package-explorer.htm">Package Explorer</a>
</p>
</body>
</html>