blob: 2adf937ff400039f06aa953bc51ce50c5c3a31f5 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HEAD><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</HEAD>
<HTML>
<BODY>
<H1><CENTER>Working Sets</CENTER></H1>
<b><i>Identifier: </i></b>org.eclipse.ui.workingSets<p>
<b><i>Since: </i></b>Release 2.0<p>
<b><i>Description: </i></b>This extension point is used to define a working set wizard page. Working sets contain a number of elements of type IAdaptable and can be used to group elements for presentation to the user or for operations on a set of elements. A working set wizard page is used to create and edit working sets that contain elements of a specific type.
<p>
To select a working set the user is presented with a list of working sets that exist in the workbench. From that list a working set can be selected and edited using one of the wizard pages defined using this extension point. An existing working set is always edited with the wizard page that was used to create it or with the default resource based working set page if the original page is not available.
<p>
A new working set can be defined by the user from the same working set selection dialog. When a new working set is defined, the plugin provided wizard page is preceded by a page listing all available working set types. This list is made up of the name attribute values of each working set extension.
<p>
Views provide a user interface to open the working set selection dialog and must store the selected working set.
<p>
The resource navigator uses a working set to filter elements from the navigator view. Only parents and children of working set elements are shown in the view, in addition to the working set elements themselves.<p><b><i>Configuration Markup:</i></b><p>
<p><samp>&nbsp;&nbsp; &lt;!ELEMENT extension (workingSet*)&gt;</samp>
<br><br><samp>&nbsp;&nbsp; &lt;!ATTLIST extension</samp>
<br><samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;point&nbsp;CDATA #REQUIRED</samp>
<br><samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;id&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED</samp>
<br><samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name&nbsp;&nbsp;CDATA #IMPLIED</samp>
<br><samp>&nbsp;&nbsp; &gt;</samp>
<ul>
<li><b>point</b> - a fully qualified identifier of the target extension point</li><li><b>id</b> - an optional identifier of the extension instance</li><li><b>name</b> - an optional name of the extension instance</li></ul>
<p><samp>&nbsp;&nbsp; &lt;!ELEMENT workingSet EMPTY&gt;</samp>
<br><br><samp>&nbsp;&nbsp; &lt;!ATTLIST workingSet</samp>
<br><samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED</samp>
<br><samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED</samp>
<br><samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;icon&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED</samp>
<br><samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pageClass&nbsp;CDATA #REQUIRED</samp>
<br><samp>&nbsp;&nbsp; &gt;</samp>
<ul>
<li><b>id</b> - a unique name that can be used to identify this working set dialog.</li><li><b>name</b> - the name of the element type that will be displayed and edited by the working set page. This should be a descriptive name like "Resource" or "Java Element".</li><li><b>icon</b> - the relative path of an image that will be displayed in the working set type list on the first page of the working set creation wizard as well as in the working set selection dialog.</li><li><b>pageClass</b> - the fully qualified name of a Java class implementing <samp>org.eclipse.ui.dialogs.IWorkingSetPage</samp>.</li></ul>
<b><i>Examples: </i></b>Following is an example of how the resource working set dialog extension is defined to display and edit generic IResource elements:
<p>
<pre>
&lt;extension point=&quot;org.eclipse.ui.workingSets&quot;&gt;
&lt;workingSet
id=&quot;org.eclipse.ui.resourceWorkingSetPage&quot;
name=&quot;Resource&quot;
icon=&quot;icons/resworkset.gif&quot;
pageClass=&quot;org.eclipse.ui.internal.dialogs.ResourceWorkingSetPage&quot;&gt;
&lt;/workingSet&gt;
&lt;/extension&gt;
</pre>
</p><p>
<b><i>API Information: </i></b>The value of the pageClass attribute must represent a class that implements the <samp>org.eclipse.ui.dialogs.IWorkingSetPage</samp> interface.<p>
<b><i>Supplied Implementation: </i></b>The workbench provides a working set wizard page for creating and editing resource based working sets.<p>
<p>
Copyright (c) 2002 IBM Corporation and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Common Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/cpl-v10.html<p>
</BODY>
</HTML>