| <?xml version='1.0' encoding='UTF-8'?> |
| <!-- Schema file written by PDE --> |
| <schema targetNamespace="org.eclipse.core.expressions"> |
| <annotation> |
| <appInfo> |
| <meta.schema plugin="org.eclipse.core.expressions" id="definitions" name="Expression Definitions"/> |
| </appInfo> |
| <documentation> |
| <p> |
| This extension point allows you to create reusable extensions. They can then be used in other core expression constructs. |
| </p> |
| <p> |
| The reference element in a core expression will evaluated the expression definition with the evaluation context that is active for the reference element. |
| </p> |
| |
| </documentation> |
| </annotation> |
| |
| <include schemaLocation="expressionLanguage.exsd"/> |
| |
| <element name="extension"> |
| <complexType> |
| <sequence> |
| <element ref="definition" 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="definition"> |
| <annotation> |
| <documentation> |
| Provides a global definition of an expression to be used with the &lt;reference/&gt; expression element. This helps to reuse common expressions. |
| </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"/> |
| </choice> |
| <attribute name="id" type="string" use="required"> |
| <annotation> |
| <documentation> |
| A globally unique identifier for the expression definition. |
| </documentation> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="examples"/> |
| </appInfo> |
| <documentation> |
| You can define and the use core expressions: |
| |
| <p> |
| <pre> |
| &lt;extension point="org.eclipse.core.expressions.definitions"&gt; |
| &lt;definition id="com.example.parts.activeProblemsView"&gt; |
| &lt;with variable="activePartId"&gt; |
| &lt;equals value="org.eclipse.ui.views.ProblemsView"/&gt; |
| &lt;/with&gt; |
| &lt;/definition&gt; |
| &lt;definition id="com.example.markers.markerSelection"&gt; |
| &lt;iterate&gt; |
| &lt;instanceof value="org.eclipse.core.resources.IMarker"/&gt; |
| &lt;/with&gt; |
| &lt;/definition&gt; |
| &lt;/extension&gt; |
| </pre> |
| </p> |
| <p> |
| Then this expression definition can be used when composing other expressions. |
| </p> |
| <p> |
| <pre> |
| &lt;enabledWhen&gt; |
| &lt;reference definitionId="com.example.parts.activeProblemsView"&gt; |
| &lt;/enabledWhen&gt; |
| </pre> |
| <pre> |
| &lt;visibleWhen&gt; |
| &lt;and&gt; |
| &lt;reference definitionId="com.example.parts.activeProblemsView"/&gt; |
| &lt;reference definitionId="com.example.markers.markerSelection"/&gt; |
| &lt;/and&gt; |
| &lt;/visibleWhen&gt; |
| </pre> |
| </p> |
| |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="since"/> |
| </appInfo> |
| <documentation> |
| 3.3 |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="apiInfo"/> |
| </appInfo> |
| <documentation> |
| |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="implementation"/> |
| </appInfo> |
| <documentation> |
| |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="copyright"/> |
| </appInfo> |
| <documentation> |
| Copyright (c) 2007 IBM Corporation and others.<br> |
| 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 <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a> |
| </documentation> |
| </annotation> |
| |
| </schema> |