blob: 425a098eb516e180e209ce8df14fdc95eb067d87 [file] [log] [blame]
<?xml version='1.0' encoding='UTF-8'?>
<!-- Schema file written by PDE -->
<schema targetNamespace="org.eclipse.ui" xmlns="http://www.w3.org/2001/XMLSchema">
<annotation>
<appinfo>
<meta.schema plugin="org.eclipse.ui" id="commonAction" name="Common Action"/>
</appinfo>
<documentation>
</documentation>
</annotation>
<element name="menu">
<annotation>
<appinfo>
<meta.element labelAttribute="label"/>
</appinfo>
<documentation>
This element is used to defined a new menu.
</documentation>
</annotation>
<complexType>
<sequence>
<element ref="separator" minOccurs="0" maxOccurs="unbounded"/>
<element ref="groupMarker" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute name="id" type="string" use="required">
<annotation>
<documentation>
a unique identifier that can be used to reference this menu.
</documentation>
</annotation>
</attribute>
<attribute name="label" type="string" use="required">
<annotation>
<documentation>
a translatable name used by the Workbench for this new menu. The name should include mnemonic information.
</documentation>
<appinfo>
<meta.attribute translatable="true"/>
</appinfo>
</annotation>
</attribute>
<attribute name="path" type="string">
<annotation>
<documentation>
the location of the new menu starting from the root of the menu. Each token in the path must refer to an existing menu, except the last token which should represent a named group in the last menu in the path. If omitted, the new menu will be added to the &lt;samp&gt;additions&lt;/samp&gt; named group of the menu.
</documentation>
</annotation>
</attribute>
<attribute name="icon" type="string">
<annotation>
<documentation>
a relative path of an icon used to visually represent the menu in its context.
The path is relative to the location of the plugin.xml file of the contributing plug-in.
</documentation>
<appinfo>
<meta.attribute kind="resource"/>
</appinfo>
</annotation>
</attribute>
</complexType>
</element>
<element name="separator">
<annotation>
<appinfo>
<meta.element labelAttribute="name"/>
</appinfo>
<documentation>
This element is used to create a menu separator in the new menu.
</documentation>
</annotation>
<complexType>
<attribute name="name" type="string" use="required">
<annotation>
<documentation>
the name of the menu separator. This name can later be referenced as the last token in a menu path. Therefore, a separator also serves as named group into which actions and menus can be added.
</documentation>
</annotation>
</attribute>
</complexType>
</element>
<element name="groupMarker">
<annotation>
<appinfo>
<meta.element labelAttribute="name"/>
</appinfo>
<documentation>
This element is used to create a named group in the new menu. It has no visual representation in the new menu, unlike the &lt;samp&gt;separator&lt;/samp&gt; element.
</documentation>
</annotation>
<complexType>
<attribute name="name" type="string" use="required">
<annotation>
<documentation>
the name of the group marker. This name can later be referenced as the last token in the menu path. It serves as named group into which actions and menus can be added.
</documentation>
</annotation>
</attribute>
</complexType>
</element>
<element name="selection">
<annotation>
<appinfo>
<meta.element labelAttribute="class"/>
</appinfo>
<documentation>
This element is used to help determine the action enablement based on the current selection. Ignored if the &lt;samp&gt;enablement&lt;/samp&gt; element is specified.
</documentation>
</annotation>
<complexType>
<attribute name="class" type="string" use="required">
<annotation>
<documentation>
a fully qualified name of the class or interface that each object in the selection must implement in order to enable the action.
</documentation>
<appinfo>
<meta.attribute kind="java" basedOn="java.lang.Object"/>
</appinfo>
</annotation>
</attribute>
<attribute name="name" type="string">
<annotation>
<documentation>
an optional wild card filter for the name that can be applied to all objects in the selection. If specified and the match fails, the action will be disabled.
</documentation>
</annotation>
</attribute>
</complexType>
</element>
<annotation>
<appinfo>
<meta.section type="copyright"/>
</appinfo>
<documentation>
Copyright (c) 2000, 2006 IBM Corporation and others.&lt;br&gt;
All rights reserved. This program and the accompanying materials are made
available under the terms of the Eclipse Public License v1.0 which accompanies
this distribution, and is available at &lt;a
href=&quot;http://www.eclipse.org/legal/epl-v10.html&quot;&gt;http://www.eclipse.org/legal/epl-v10.html&lt;/a&gt;
</documentation>
</annotation>
</schema>