blob: 9d695f9d3cc7fb9ded8759ef73450c0a62f9df8c [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="actionSetPartAssociations" name="Action Set Part Associations"/>
</appinfo>
<documentation>
This extension point is used to define an action set which should be added to a perspective when a part (view or editor) is opened in the perspective.
In the case of an editor, the action set will remain visible while the editor is the current editor.
In the case of a view, the action set will be visible when the view is the active part.
</documentation>
</annotation>
<element name="extension">
<complexType>
<sequence>
<element ref="actionSetPartAssociation" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute name="point" type="string" use="required">
<annotation>
<documentation>
a fully qualified identifier of the target extension point
</documentation>
</annotation>
</attribute>
<attribute name="id" type="string">
<annotation>
<documentation>
an optional identifier of the extension instance
</documentation>
</annotation>
</attribute>
<attribute name="name" type="string">
<annotation>
<documentation>
an optional name of the extension instance
</documentation>
<appinfo>
<meta.attribute translatable="true"/>
</appinfo>
</annotation>
</attribute>
</complexType>
</element>
<element name="actionSetPartAssociation">
<complexType>
<sequence>
<element ref="part" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute name="targetID" type="string" use="required">
<annotation>
<documentation>
the unique identifier of the action set (as specified in the
registry) which is to be associated with particular workbench
views and/or editors.
</documentation>
<appinfo>
<meta.attribute kind="identifier" basedOn="org.eclipse.ui.actionSets/actionSet/@id"/>
</appinfo>
</annotation>
</attribute>
</complexType>
</element>
<element name="part">
<complexType>
<attribute name="id" type="string" use="required">
<annotation>
<documentation>
the unique identifier of the part (view or editor) to be associated with the action set.
</documentation>
</annotation>
</attribute>
</complexType>
</element>
<annotation>
<appinfo>
<meta.section type="examples"/>
</appinfo>
<documentation>
The following is an example of an action set part association (note the subelement and the way attributes are used):
&lt;p&gt;
&lt;pre&gt;
&lt;extension point=&quot;org.eclipse.ui.actionSetPartAssociations&quot;&gt;
&lt;actionSetPartAssociation targetID=&quot;org.eclipse.jdt.ui.refactoring.actionSet&quot;&gt;
&lt;part id=&quot;org.eclipse.jdt.ui.PackageExplorer&quot;/&gt;
&lt;part id=&quot;org.eclipse.jdt.ui.CompilationUnitError&quot;/&gt;
&lt;/actionSetPartAssociation&gt;
&lt;/extension&gt;
&lt;/pre&gt;
&lt;/p&gt;
In the example above, a view or editor are associated with the refactoring action set.
</documentation>
</annotation>
<annotation>
<appinfo>
<meta.section type="apiInfo"/>
</appinfo>
<documentation>
The user may override these associations using the customize perspective dialog. Regardless of these associations,
action sets which the user turns off will never appear and action sets which the user turns on will always be visible.
</documentation>
</annotation>
<annotation>
<appinfo>
<meta.section type="copyright"/>
</appinfo>
<documentation>
Copyright (c) 2002, 2007 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>