blob: be1a72df460e35cbeb9417762d0e359fcdab9514 [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="activities" name="Activities"/>
</appinfo>
<documentation>
&lt;p&gt;
The &lt;code&gt;org.eclipse.ui.activities&lt;/code&gt; extension point is used to declare activities and associated elements. Activities are used by the platform to filter certain plugin contributions from the users view until such a time that they express interest in them. This allows Eclipse to grow dynamically based on the usage pattern of a user.
&lt;/p&gt;
</documentation>
</annotation>
<include schemaLocation="schema://org.eclipse.core.expressions/schema/expressionLanguage.exsd"/>
<include schemaLocation="schema://org.eclipse.core.expressions/schema/expressionLanguage.exsd"/>
<element name="extension">
<complexType>
<sequence minOccurs="0" maxOccurs="unbounded">
<element ref="activity"/>
<element ref="activityRequirementBinding"/>
<element ref="activityPatternBinding"/>
<element ref="category"/>
<element ref="categoryActivityBinding"/>
<element ref="defaultEnablement"/>
</sequence>
<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>
<attribute name="point" type="string" use="required">
<annotation>
<documentation>
a fully qualified identifier of the target extension point
</documentation>
</annotation>
</attribute>
</complexType>
</element>
<element name="activity">
<annotation>
<documentation>
This element is used to define activities. If more than one of these elements exist with the same &lt;code&gt;id&lt;/code&gt; attribute, only the last declared element (in order of reading the registry) is considered valid.
</documentation>
</annotation>
<complexType>
<sequence>
<element ref="enabledWhen" minOccurs="0" maxOccurs="1"/>
</sequence>
<attribute name="description" type="string">
<annotation>
<documentation>
a translatable short description of this activity for display in the UI
</documentation>
<appinfo>
<meta.attribute translatable="true"/>
</appinfo>
</annotation>
</attribute>
<attribute name="id" type="string" use="required">
<annotation>
<documentation>
the unique identifier of this activity
</documentation>
</annotation>
</attribute>
<attribute name="name" type="string" use="required">
<annotation>
<documentation>
the translatable name of this activity for display in the UI
</documentation>
<appinfo>
<meta.attribute translatable="true"/>
</appinfo>
</annotation>
</attribute>
</complexType>
</element>
<element name="activityRequirementBinding">
<annotation>
<documentation>
This element allows one to bind activities to activities. The relationship is such that if the activityId is ever enabled then the requiredActivityId is enabled as well.
</documentation>
</annotation>
<complexType>
<attribute name="requiredActivityId" type="string" use="required">
<annotation>
<documentation>
the unique identifier of required activity to bind
</documentation>
<appinfo>
<meta.attribute kind="identifier" basedOn="org.eclipse.ui.activities/activity/@id"/>
</appinfo>
</annotation>
</attribute>
<attribute name="activityId" type="string" use="required">
<annotation>
<documentation>
the unique identifier of the activity to bind
</documentation>
<appinfo>
<meta.attribute kind="identifier" basedOn="org.eclipse.ui.activities/activity/@id"/>
</appinfo>
</annotation>
</attribute>
</complexType>
</element>
<element name="activityPatternBinding">
<annotation>
<documentation>
This element allows one to bind activities to patterns.
</documentation>
</annotation>
<complexType>
<attribute name="activityId" type="string" use="required">
<annotation>
<documentation>
the unique identifier of the activity to bind
</documentation>
<appinfo>
<meta.attribute kind="identifier" basedOn="org.eclipse.ui.activities/activity/@id"/>
</appinfo>
</annotation>
</attribute>
<attribute name="pattern" type="string" use="required">
<annotation>
<documentation>
the pattern to be bound. Patterns are regular expressions which match unique identifiers. Please see the Java documentation for &lt;code&gt;java.util.regex.Pattern&lt;/code&gt; for further details.
</documentation>
</annotation>
</attribute>
<attribute name="isEqualityPattern" type="boolean">
<annotation>
<documentation>
if the pattern should be considered &quot;as is&quot;. This is an optional attribute and if ommited the value is false If this is false the pattern string will be compiled into a regular expression when determining whether or not a given identifier matches the pattern. If this is true, a direct equality comparison is performed instead.
Since 3.4
</documentation>
</annotation>
</attribute>
</complexType>
</element>
<element name="category">
<annotation>
<documentation>
This element is used to define categories. If more than one of these elements exist with the same &lt;code&gt;id&lt;/code&gt; attribute, only the last declared element (in order of reading the registry) is considered valid.
</documentation>
</annotation>
<complexType>
<attribute name="description" type="string">
<annotation>
<documentation>
a translatable short description of this category for display in the UI
</documentation>
<appinfo>
<meta.attribute translatable="true"/>
</appinfo>
</annotation>
</attribute>
<attribute name="id" type="string" use="required">
<annotation>
<documentation>
the unique identifier of this category
</documentation>
</annotation>
</attribute>
<attribute name="name" type="string" use="required">
<annotation>
<documentation>
the translatable name of this category for display in the UI
</documentation>
<appinfo>
<meta.attribute translatable="true"/>
</appinfo>
</annotation>
</attribute>
</complexType>
</element>
<element name="categoryActivityBinding">
<annotation>
<documentation>
This element allows one to bind categories to activities.
</documentation>
</annotation>
<complexType>
<attribute name="activityId" type="string" use="required">
<annotation>
<documentation>
the unique identifier of the activity to bind
</documentation>
<appinfo>
<meta.attribute kind="identifier" basedOn="org.eclipse.ui.activities/activity/@id"/>
</appinfo>
</annotation>
</attribute>
<attribute name="categoryId" type="string" use="required">
<annotation>
<documentation>
the unique identifier of the category to bind
</documentation>
<appinfo>
<meta.attribute kind="identifier" basedOn="org.eclipse.ui.activities/category/@id"/>
</appinfo>
</annotation>
</attribute>
</complexType>
</element>
<element name="defaultEnablement">
<annotation>
<documentation>
This element allows one to specify that a given activity should be enabled by default.
</documentation>
</annotation>
<complexType>
<attribute name="id" type="string" use="required">
<annotation>
<documentation>
the unique identifier of the activity
</documentation>
<appinfo>
<meta.attribute kind="identifier" basedOn="org.eclipse.ui.activities/activity/@id"/>
</appinfo>
</annotation>
</attribute>
</complexType>
</element>
<element name="enabledWhen">
<annotation>
<documentation>
&lt;p&gt;Contains a core expression used by the workbench handler proxy to determine when this handler is enabled without loading it.&lt;/p&gt;
</documentation>
</annotation>
<complexType>
<choice>
<element ref="not"/>
<element ref="and"/>
<element ref="or"/>
<element ref="instanceof"/>
<element ref="test"/>
<element ref="systemTest"/>
<element ref="equals"/>
<element ref="count"/>
<element ref="with"/>
<element ref="resolve"/>
<element ref="adapt"/>
<element ref="iterate"/>
<element ref="reference"/>
</choice>
</complexType>
</element>
<annotation>
<appinfo>
<meta.section type="since"/>
</appinfo>
<documentation>
&lt;p&gt;
3.0
&lt;/p&gt;
</documentation>
</annotation>
<annotation>
<appinfo>
<meta.section type="examples"/>
</appinfo>
<documentation>
The following is an example of several activity and category definitions as well as associated bindings.
&lt;p&gt;
&lt;pre&gt;
&lt;extension point=&quot;org.eclipse.ui.activities&quot;&gt;
&lt;activity id=&quot;com.xyz.Activity&quot;
description=&quot;Filters contributions from com.xyz&quot;
name=&quot;My Activity&quot; /&gt;
&lt;activity id=&quot;com.xyz.OtherActivity&quot;
description=&quot;Filters other contributions from com.xyz&quot;
name=&quot;My Other Activity&quot; /&gt;
&lt;!-- other activity requires activity --&gt;
&lt;activityRequirementBinding activityId=&quot;com.xyz.OtherActivity&quot;
requiredActivityId=&quot;com.xyz.Activity&quot; /&gt;
&lt;category id=&quot;com.xyz.Category&quot;
description=&quot;com.xyz Activities&quot;
name=&quot;My Category&quot; /&gt;
&lt;!-- put the activity in the category --&gt;
&lt;categoryActivityBinding activityId=&quot;com.xyz.Activity&quot;
categoryId=&quot;com.xyz.Category&quot; /&gt;
&lt;!-- bind all contributions from plugin com.xyz --&gt;
&lt;activityPatternBinding id=&quot;com.xyz.Activity&quot;
pattern=&quot;com\.xyz/.*&quot; /&gt;
&lt;!-- bind my.contribution from plugin com.xyz.other --&gt;
&lt;activityPatternBinding id=&quot;com.xyz.OtherActivity&quot;
pattern=&quot;com\.xyz\.other/my.contribution&quot; /&gt;
&lt;!-- the same, but not with a regular expression, since the pattern
should match the id exactly anyway --&gt;
&lt;activityPatternBinding id=&quot;com.xyz.OtherActivity&quot;
isEqualityPattern=&quot;true&quot;
pattern=&quot;com.xyz.other/my.contribution&quot; /&gt;
&lt;!-- our activity should be enabled by default --&gt;
&lt;defaultEnablement id=&quot;com.xyz.Activity&quot; /&gt;
&lt;/extension&gt;
&lt;/pre&gt;
&lt;/p&gt;
</documentation>
</annotation>
<annotation>
<appinfo>
<meta.section type="apiInfo"/>
</appinfo>
<documentation>
&lt;p&gt;
There is currently no public API for declaring activities or associated elements other than this extension point. The state of activities in the workbench is accessible via &lt;code&gt;org.eclipse.ui.IWorkbench.getActivitySupport()&lt;/code&gt;. From here you may query and update the set of currently enabled activities.
&lt;/p&gt;
</documentation>
</annotation>
<annotation>
<appinfo>
<meta.section type="implementation"/>
</appinfo>
<documentation>
There are no &quot;default activities&quot; provided by the workbench. Activities are intended to be defined at the product level, such as the Eclipse SDK, so as to tightly integrate all of the (known) components that product contains.
</documentation>
</annotation>
<annotation>
<appinfo>
<meta.section type="copyright"/>
</appinfo>
<documentation>
Copyright (c) 2000, 2005 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>