Benjamin Cabe | f55d606 | 2009-07-01 15:46:44 +0000 | [diff] [blame^] | 1 | <?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 |
| 23 | cache="true" |
| 24 | mode="Batch"> |
| 25 | <package |
| 26 | namespaceUri="http://www.osgi.org/xmlns/scr/v1.1.0"> |
| 27 | </package> |
| 28 | <constraints |
| 29 | categories="org.eclipse.pde.ds.builder.validation"> |
| 30 | <constraint |
| 31 | class="org.eclipse.pde.ds.builder.internal.validation.constraints.ComponentImplementationTypeIsOnClasspath" |
| 32 | id="org.eclipse.pde.ds.builder.constraintComponentMethodsAreValidAndAccessible" |
| 33 | lang="Java" |
| 34 | mode="Batch" |
| 35 | name="Components methods validation" |
| 36 | severity="ERROR" |
| 37 | statusCode="2"> |
| 38 | <message> |
| 39 | {0} method can't be found |
| 40 | </message> |
| 41 | <target |
| 42 | class="Component"> |
| 43 | </target> |
| 44 | </constraint> |
| 45 | <constraint |
| 46 | class="org.eclipse.pde.ds.builder.internal.validation.constraints.ComponentImplementationTypeIsOnClasspath" |
| 47 | id="org.eclipse.pde.ds.builder.constraintComponentImplementationTypeIsOnClasspath" |
| 48 | lang="Java" |
| 49 | mode="Batch" |
| 50 | name="Java types validation" |
| 51 | severity="ERROR" |
| 52 | statusCode="1"> |
| 53 | <message> |
| 54 | {0} is not in the plug-in's classpath |
| 55 | </message> |
| 56 | <target |
| 57 | class="Implementation"> |
| 58 | </target> |
| 59 | </constraint> |
| 60 | </constraints> |
| 61 | </constraintProvider> |
| 62 | </extension> |
| 63 | <extension |
| 64 | point="org.eclipse.emf.validation.constraintBindings"> |
| 65 | <clientContext |
| 66 | default="false" |
| 67 | id="org.eclipse.pde.ds.builder.validationContext"> |
| 68 | <enablement> |
| 69 | <instanceof |
| 70 | value="java.lang.Object"> |
| 71 | </instanceof></enablement> |
| 72 | </clientContext> |
| 73 | <binding |
| 74 | context="org.eclipse.pde.ds.builder.validationContext" |
| 75 | category="org.eclipse.pde.ds.builder.validation"/> |
| 76 | </extension> > |
| 77 | </plugin> |