schema.definitions.exsd Maven / Gradle / Ivy
<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>
a fully qualified identifier of the target extension point
an optional identifier of the extension instance
an optional name of the extension instance
Provides a global definition of an expression to be used with the <reference/> expression element. This helps to reuse common expressions.
A globally unique identifier for the expression definition.
3.3
You can define and the use core expressions:
<p>
<pre>
<extension point="org.eclipse.core.expressions.definitions">
<definition id="com.example.parts.activeProblemsView">
<with variable="activePartId">
<equals value="org.eclipse.ui.views.ProblemsView"/>
</with>
</definition>
<definition id="com.example.markers.markerSelection">
<iterate>
<instanceof value="org.eclipse.core.resources.IMarker"/>
</with>
</definition>
</extension>
</pre>
</p>
<p>
Then this expression definition can be used when composing other expressions.
</p>
<p>
<pre>
<enabledWhen>
<reference definitionId="com.example.parts.activeProblemsView">
</enabledWhen>
</pre>
<pre>
<visibleWhen>
<and>
<reference definitionId="com.example.parts.activeProblemsView"/>
<reference definitionId="com.example.markers.markerSelection"/>
</and>
</visibleWhen>
</pre>
</p>
Copyright (c) 2007, 2008 IBM Corporation and others.<br>
This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which accompanies this distribution, and is available at <a href="https://www.eclipse.org/legal/epl-2.0">https://www.eclipse.org/legal/epl-v20.html</a>/
SPDX-License-Identifier: EPL-2.0