blob: 5b7fccf3acd9812f487accf22c21773815e3d103 [file] [log] [blame]
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Workbench Extension Points</title>
</head>
<body link="#0000FF" vlink="#800080">
<center>
<h1>
Resource Markers</h1></center>
<b><i>Identifier: </i></b>org.eclipse.core.resources.markers
<p><b><i>Description: </i></b>The workspace supports the notion of markers
on arbitrary resources.&nbsp; A marker is a kind of metadata (similar to
properties) which can be used to tag resources with user information.&nbsp;
Markers are optionally persisted by the workspace whenever a workspace
save or snapshot is done.
<p>Users can define and query for markers of a given type.&nbsp; Marker
types are defined in a hierarchy which supports multiple-inheritance.&nbsp;
Marker type definitions also specify a number of attributes which must or
may be present on a marker of that type as well as whether or not markers
of that type should be persisted.
<p>The markers extension-point allows marker writers to register their
marker types under a symbolic name that is then used from within the workspace
to create and query markers. The symbolic name is the id of the marker
extension. When defining a marker extension, users are encouraged to include
a human-readable value for the "name" attribute which indentifies their
marker and potentially may be presented to users.
<p><b><i>Configuration Markup:</i></b>
<p><tt>&nbsp;&nbsp; &lt;!ELEMENT super EMPTY></tt>
<br><tt>&nbsp;&nbsp; &lt;!ATTLIST super</tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
CDATA #REQUIRED</tt>
<br><tt>&nbsp;&nbsp; ></tt>
<ul>
<li>
<b>type -</b> the fully-qualified id of a marker super type (i.e., a marker
type defined by another marker extension)</li>
</ul>
<tt>&nbsp;&nbsp; &lt;!ELEMENT persistent EMPTY></tt>
<br><tt>&nbsp;&nbsp; &lt;!ATTLIST persistent</tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; value&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
CDATA #REQUIRED</tt>
<br><tt>&nbsp;&nbsp; ></tt>
<ul>
<li>
<b>value</b> - <tt>"true"</tt> or <tt>"false"</tt> indicating whether or
not markers of this type should be persisted by the workspace.&nbsp; If
the persistent characteristic is not specified, the marker type is <b>not</b>
persisted.</li>
</ul>
<tt>&nbsp;&nbsp; &lt;!ELEMENT attribute EMPTY></tt>
<br><tt>&nbsp;&nbsp; &lt;!ATTLIST attribute</tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
CDATA #REQUIRED</tt>
<br><tt>&nbsp;&nbsp; ></tt>
<ul>
<li>
<b>value</b> - the name of an attribute which may be present on markers
of this type</li>
</ul>
<b><i>Examples:</i></b>
<p>Following is an example of a marker configuration:
<p><tt>&nbsp;&nbsp; &lt;extension id="coolMarker" point="org.eclipse.core.resources.markers"
name="Cool Marker"></tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;persistent value="true"/></tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;super type="org.eclipse.core.resources.problemmarker"/></tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;super type="org.eclipse.core.resources.textmarker"/></tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;attribute name="owner"/></tt>
<br><tt>&nbsp;&nbsp; &lt;/extension></tt>
<p><b><i>API Information</i>:</b><i> </i>All markers, regardless of their
type, are instances of <tt>org.eclipse.core.resources.IMarker</tt>.
<p><b><i>Supplied Implementation:</i></b> The platform itself has a number
of <a href="base_markers.html">pre-defined marker types</a>. Particular
product installs may include additional markers as required.
<p><a href="hglegal.htm"><img SRC="ngibmcpy.gif" ALT="Copyright IBM Corp. 2000, 2002. All Rights Reserved." BORDER=0 height=12 width=195></a>
</body>
</html>