User Tools

Site Tools


core_expressions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
core_expressions [2013/11/02 07:35]
mihael created
core_expressions [2013/11/02 07:36]
mihael
Line 2: Line 2:
 Core expressions are declared in the plugin.xml file. Core expressions are declared in the plugin.xml file.
  
 +===== Selection of Specific Class =====
 +To check if the selection is an instance of a specific class.
 +
 +<sxh xml>
 +    <​extension
 +         ​point="​org.eclipse.core.expressions.definitions">​
 +      <​definition
 +            id="​miworkplace.ui.core.expression.isConnection">​
 +         <​with
 +               ​variable="​org.eclipse.ui.selection">​
 +            <iterate
 +                  ifEmpty="​false"​
 +                  operator="​or">​
 +               <​instanceof
 +                     ​value="​miworkplace.connection.api.IConnection">​
 +               </​instanceof>​
 +            </​iterate>​
 +         </​with>​
 +      </​definition>​
 +   </​extension>​
 +</​sxh>​
 +
 +The bundle ''​org.eclipse.core.expressions''​ needs to be added as a dependency to get the core expression extension point.
 +
 +{{tag>​e4}}
core_expressions.txt ยท Last modified: 2013/11/02 07:36 by mihael