Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 910d951ec360a5e2847065be75aabb2e1f308ba3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?xml version="1.0" encoding="UTF-8"?>
<query:ModelQuerySet xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:query="http://www.eclipse.org/EmfFacet/infra/query/0.8.incubation" name="custom">
  <associatedMetamodels href="http://www.eclipse.org/papyrus/properties/contexts/0.9#/"/>
  <associatedMetamodels href="http://www.eclipse.org/papyrus/properties/ui/0.9#/"/>
  <associatedMetamodels href="http://www.eclipse.org/papyrus/constraints/0.9#/"/>
  <queries xsi:type="query:OCLModelQuery" name="isGroup" lowerBound="1" query="widgetType.widgetClass = 'Group' and widgetType.namespace.oclIsUndefined()">
    <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
    <scope href="http://www.eclipse.org/papyrus/properties/ui/0.9#//CompositeWidget"/>
  </queries>
  <queries xsi:type="query:OCLModelQuery" name="isUmlInstanceOf" description="" lowerBound="1" query="self.constraintType.constraintClass = 'org.eclipse.papyrus.uml.properties.constraints.UmlInstanceOfConstraint'">
    <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
    <scope href="http://www.eclipse.org/papyrus/constraints/0.9#//ConstraintDescriptor"/>
  </queries>
  <queries xsi:type="query:OCLModelQuery" name="isEcoreInstanceOf" lowerBound="1" query="self.constraintType.constraintClass = 'org.eclipse.papyrus.views.properties.constraints.EMFInstanceOfConstraint'">
    <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
    <scope href="http://www.eclipse.org/papyrus/constraints/0.9#//ConstraintDescriptor"/>
  </queries>
  <queries xsi:type="query:OCLModelQuery" name="isOclQuery" lowerBound="1" query="self.constraintType.constraintClass = 'org.eclipse.papyrus.views.properties.constraints.EMFQueryConstraint'">
    <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
    <scope href="http://www.eclipse.org/papyrus/constraints/0.9#//ConstraintDescriptor"/>
  </queries>
  <queries xsi:type="query:OCLModelQuery" name="isStereotype" description="" lowerBound="1" query="self.constraintType.constraintClass = 'org.eclipse.papyrus.uml.properties.constraints.HasStereotypeConstraint'">
    <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
    <scope href="http://www.eclipse.org/papyrus/constraints/0.9#//ConstraintDescriptor"/>
  </queries>
  <queries xsi:type="query:OCLModelQuery" name="isGridLayout" lowerBound="1" query="layoutType.widgetClass = 'GridLayout' or (layoutType.widgetClass = 'PropertiesLayout' and layoutType.namespace.name = 'ppel')">
    <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
    <scope href="http://www.eclipse.org/papyrus/properties/ui/0.9#//Layout"/>
  </queries>
  <queries xsi:type="query:OCLModelQuery" name="isLabel" description="Tests if a standard widget is an SWT Label" lowerBound="1" query="self.widgetType.widgetClass = 'Label' and widgetType.namespace.oclIsUndefined()">
    <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
    <scope href="http://www.eclipse.org/papyrus/properties/ui/0.9#//StandardWidget"/>
  </queries>
  <queries xsi:type="query:OCLModelQuery" name="isToggleButton" description="Tests if the given PropertyEditor is a ToggleButton" lowerBound="1" query="widgetType.widgetClass = 'BooleanToggle' and widgetType.namespace.name = 'ppe'">
    <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
    <scope href="http://www.eclipse.org/papyrus/properties/ui/0.9#//PropertyEditor"/>
  </queries>
  <queries xsi:type="query:OCLModelQuery" name="isFileSelector" description="Tests if a PropertyEditor is a File Selector" lowerBound="1" query="widgetType.widgetClass = 'StringFileSelector' and widgetType.namespace.name = 'ppe'">
    <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
    <scope href="http://www.eclipse.org/papyrus/properties/ui/0.9#//PropertyEditor"/>
  </queries>
  <queries xsi:type="query:OCLModelQuery" name="isIntegerSpinner" description="Tests if a PropertyEditor is an IntegerSpinner" lowerBound="1" query="widgetType.widgetClass = 'IntegerSpinner' and widgetType.namespace.name = 'ppe'">
    <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
    <scope href="http://www.eclipse.org/papyrus/properties/ui/0.9#//PropertyEditor"/>
  </queries>
</query:ModelQuerySet>

Back to the top