blob: 88cfca1762c977e5a3426a7f6112541a71e6cfd7 [file] [log] [blame]
Benjamin Cabef55d6062009-07-01 15:46:44 +00001<?xml version="1.0" encoding="UTF-8"?>
2<?eclipse version="3.4"?>
3<plugin>
4 <extension
5 id="scrBuilder"
6 name="Scr Model Validator"
7 point="org.eclipse.core.resources.builders">
8 <builder
9 isConfigurable="true">
10 <run
11 class="org.eclipse.pde.ds.builder.internal.validation.ScrBuilder">
12 </run>
13 </builder>
14 </extension>
15 <extension
16 point="org.eclipse.emf.validation.constraintProviders">
17 <category
18 id="org.eclipse.pde.ds.builder.validation"
19 mandatory="true"
20 name="Declarative Services Validation">
21 </category>
22 <constraintProvider
Benjamin Cabe84cef4d2009-07-01 21:57:53 +000023 cache="true">
Benjamin Cabef55d6062009-07-01 15:46:44 +000024 <package
25 namespaceUri="http://www.osgi.org/xmlns/scr/v1.1.0">
26 </package>
27 <constraints
28 categories="org.eclipse.pde.ds.builder.validation">
29 <constraint
30 class="org.eclipse.pde.ds.builder.internal.validation.constraints.ComponentImplementationTypeIsOnClasspath"
Benjamin Cabe84cef4d2009-07-01 21:57:53 +000031 id="org.eclipse.pde.ds.builder.constraintComponentImplementationTypeIsOnClasspath"
32 lang="Java"
33 mode="Live"
34 name="Implementation class is a valid Java type"
35 severity="ERROR"
36 statusCode="1">
37 <message>
38 {0} is not in the plug-in's classpath
39 </message>
40 <target
41 class="Implementation">
42 </target>
43 </constraint>
44 <constraint
45 class="org.eclipse.pde.ds.builder.internal.validation.constraints.ComponentMethodsAreValidAndAccessible"
Benjamin Cabef55d6062009-07-01 15:46:44 +000046 id="org.eclipse.pde.ds.builder.constraintComponentMethodsAreValidAndAccessible"
47 lang="Java"
Benjamin Cabe53a02722009-07-01 17:40:35 +000048 mode="Live"
Benjamin Cabef55d6062009-07-01 15:46:44 +000049 name="Components methods validation"
50 severity="ERROR"
51 statusCode="2">
52 <message>
53 {0} method can't be found
54 </message>
55 <target
56 class="Component">
Benjamin Cabe53a02722009-07-01 17:40:35 +000057 <event
58 name="Set">
59 <feature
60 name="activate">
61 </feature>
62 </event>
63 <event
64 name="Set">
65 <feature
66 name="deactivate">
67 </feature>
68 </event>
69 <event
70 name="Set">
71 <feature
72 name="modified">
73 </feature>
74 </event>
75 <event
76 name="Unset">
77 <feature
78 name="activate">
79 </feature>
80 </event>
81 <event
82 name="Unset">
83 <feature
84 name="deactivate">
85 </feature>
86 </event>
87 <event
88 name="Unset">
89 <feature
90 name="modified">
91 </feature>
92 </event>
Benjamin Cabef55d6062009-07-01 15:46:44 +000093 </target>
94 </constraint>
Benjamin Cabef55d6062009-07-01 15:46:44 +000095 </constraints>
96 </constraintProvider>
97 </extension>
98 <extension
99 point="org.eclipse.emf.validation.constraintBindings">
100 <clientContext
101 default="false"
102 id="org.eclipse.pde.ds.builder.validationContext">
103 <enablement>
104 <instanceof
105 value="java.lang.Object">
106 </instanceof></enablement>
107 </clientContext>
108 <binding
109 context="org.eclipse.pde.ds.builder.validationContext"
110 category="org.eclipse.pde.ds.builder.validation"/>
111 </extension> >
112</plugin>