https://protegewiki.stanford.edu/index.php?title=PluginManifestsAndJars&feed=atom&action=historyPluginManifestsAndJars - Revision history2024-03-29T14:49:40ZRevision history for this page on the wikiMediaWiki 1.27.7https://protegewiki.stanford.edu/index.php?title=PluginManifestsAndJars&diff=1327&oldid=prevJenniferVendetti: migrating page from main protege site2008-02-23T01:20:33Z<p>migrating page from main protege site</p>
<p><b>New page</b></p><div><span style="font-weight:bold; font-size:18px;">Creating Protege plug-in manifests and JAR files</span><br /><br /><br />
<br />
A Protege plug-in JAR file can be built with the standard "jar" Java Archive Tool. (See the documentation on Sun's Java Technology Web site for more information about [http://java.sun.com/docs/books/tutorial/jar/index.html working with JAR and manifest files]). A JAR file can contain one or more Protege plug-ins. The manifest for a plug-in JAR file must contain a section which describes the plug-in and every manifest must start with the following line:<br /><br /><br />
<br />
<code>Manifest-Version: 1.0</code><br /><br /><br />
<br />
After this line, you must put a blank line followed by any number of Protege plug-in entries. The entries must be separated by blank lines and the last line in the file must be a blank line. Examples of manifest entries are given below.<br /><br /><br />
<br />
'''tab widget plug-in:'''<br />
<br />
<code>Name: edu/stanford/smi/protege/ui/ClsesTab.class<br /><br />
Tab-Widget: True</code><br /><br /><br />
<br />
'''slot widget plug-in:'''<br />
<br />
The following is the standard, simple manifest entry for a slot widget plug-in.<br />
<br />
<code>Name: edu/stanford/smi/protegex/imagemap/ImageMapToSymbolWidget.class<br /><br />
Slot-Widget: True</code><br />
<br />
The following entry is more specialized. It will cause to system to assign the declared slot widget plug-in as the widget for any slot which has single cardinality, type Instance, and has allowed classes of "URI".<br />
<br />
<code>Name: edu/stanford/smi/protegex/rdf/uri/widget/URIFieldWidget.class<br /><br />
Slot-Widget: True<br /><br />
Default-Widget: True<br /><br />
Default-Widget-For-Cardinality: Single<br /><br />
Default-Widget-For-Type: Instance<br /><br />
Default-Widget-For-Allowed-Class: URI</code><br /><br /><br />
<br />
'''back-end plug-in:'''<br />
<br />
<code>Name: edu/stanford/db/protegex/storage/rdf/RDFKnowledgeBaseFactory.class<br /><br />
Storage-Factory: True</code><br /><br /><br />
<br />
'''project plug-in''':<br />
<br />
<code>Name: examples/projectplugin/MenuItemInserter.class<br /><br />
Project-Plugin: True</code><br /><br /><br />
<br />
'''createproject plug-in''':<br />
<br />
<code>Name: examples/createprojectplugin/FooCreator.class<br /><br />
Create-Project-Plugin: True</code><br /><br /><br />
<br />
'''export plug-in''':<br />
<br />
<code>Name: examples/exportplugin/FooExporter.class<br /><br />
Export-Plugin: True</div>JenniferVendetti