blob: a25245d4f0b951b5427d6b8e1681a620cb85c1db [file] [log] [blame]
<!doctype html public "-//w3c//dtd html 4.0//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Eclipse Workbench Extension Point: Property Pages</title>
</head>
<body link="#0000FF" vlink="#800080">
<center>
<h1>
Property Pages</h1></center>
<b><i>Identifier: </i></b>org.eclipse.ui.propertyPages
<p><b><i>Description</i>: </b>This extension point is used to add additional
property page for objects of a given type.&nbsp; Once defined, these property
pages will appear in the Properties Dialog for objects of that type.
<p>A property page is a user friendly way to interact with the properties
of an object.&nbsp; Unlike the Properties view, which restricts the space
available for editing an object property, a property page may benefit from
the freedom to define larger, more complex controls with labels, icons,
etc.&nbsp; Properties which logically go together may also be clustered
in a page, rather than scattered in the property sheet. However, in most
applications it will be appropriate to expose some properties of an object
via the property sheet and some via the property pages.
<p>Property pages are shown in a dialog box that is normally visible when the
"Properties" menu item is selected on a pop-up menu for an object. In addition
to the object class, the name filter can optionally be supplied to register
property pages only for specific object types.
<p>If these filtering mechanisms are inadequate a property page
may use the <tt>filter</tt> mechanism.&nbsp; In this case the attributes
of the target object are described in a series of key value pairs.&nbsp;
The attributes which apply to the selection are type specific and beyond
the domain of the workbench itself, so the workbench will delegate filtering
at this level to the actual selection.
<p><b><i>Configuration Markup:</i></b>
<p><tt>&nbsp;&nbsp; &lt;!ELEMENT page (filter)*></tt>
<br><tt>&nbsp;&nbsp; &lt;!ATTLIST page</tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
CDATA&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #REQUIRED</tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
CDATA&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #REQUIRED</tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; icon&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
CDATA&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #IMPLIED</tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; objectClass&nbsp; CDATA&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
#REQUIRED</tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; class&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
CDATA&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #REQUIRED</tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nameFilter&nbsp;&nbsp; CDATA&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
#IMPLIED</tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; adaptable&nbsp;&nbsp;&nbsp; (true|false)&nbsp;
#IMPLIED</tt>
<br><tt>&nbsp;&nbsp; ></tt>
<ul>
<li>
<b>id</b> - a unique name that will be used to identify this page.</li>
<li>
<b>name</b> - a translatable name that will be used in the UI for this
page.</li>
<li>
<b>icon</b> - a relative path to an icon that will be used in the UI in
addition to the page name.</li>
<li>
<b>objectClass</b> - a fully qualified name of the class for which the
page is registered.</li>
<li>
<b>class</b> - a fully qualified name of the class that implements <tt>org.eclipse.ui.IWorkbenchPropertyPage</tt>.</li>
<li>
<b>nameFilter</b> - an optional attribute that allows registration conditional
on a wild card match applied to the target object name.</li>
<li>
<b>adaptable</b> - a flag that indicates if types that adapt to IResource should
use this property page. This flag is used only if objectClass adapts to
IResource. Default value is false.</li>
</ul>
<tt>&nbsp;&nbsp; &lt;!ELEMENT filter EMPTY></tt>
<br><tt>&nbsp;&nbsp; &lt;!ATTLIST filter</tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
CDATA #REQUIRED</tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; value&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
CDATA #REQUIRED</tt>
<br><tt>&nbsp;&nbsp; ></tt>
<ul>
<li>
<b>name</b> - the name of an object attribute.</li>
<li>
<b>value</b> - the value of an object attribute.&nbsp; In combination with
the name attribute, the name value pair is used to define the target object
for a property page.</li>
</ul>
<b><i>Examples:</i></b>
<p>The following is an example of a property page extension:
<p><tt>&nbsp;&nbsp; &lt;extension point="org.eclipse.ui.propertyPages"></tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;page</tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; id="com.xyz.projectPage"</tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; name="XYZ Java
Properties"</tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; objectClass="org.eclipse.core.resources.IFile"</tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; class="com.xyz.ppages.JavaPropertyPage"</tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nameFilter="*.java"></tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;filter name="readOnly" value="true"/></tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/page></tt>
<br><tt>&nbsp;&nbsp;&nbsp; &lt;/extension></tt>
<p><b><i>API Information</i></b>: The attribute <tt>class</tt> must specify
a fully qualified name of a class that implements <tt>org.eclipse.ui.IWorkbenchPropertyPage</tt>.
<p><b><i>Supplied Implementation</i>: </b>Some objects provided by the
workbench may have property pages registered. Plug-ins are allowed to add
more property pages for these objects. Property pages are not limited to
workbench resources: all objects showing up in the workbench (even domain
specific objects created by the plug-ins) may have property pages and other
plug-ins are allowed to register property pages for them.
<p><a href="hglegal2002.htm"><img SRC="ngibmcpy2002.gif" ALT="Copyright IBM Corporation and others 2000, 2002." BORDER=0></a>
</body>
</html>