Skip to main content
summaryrefslogtreecommitdiffstats
blob: 9b7920c89b5169db3a0ea92b78d6f1c7d0247968 (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
47
48
49
50
51
52
53
54
55
56
57
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
   
   <extension point="org.eclipse.emf.validation.constraintProviders">
      <category id="org.eclipse.papyrus.uml.controlmode.profile/duplicateProfileApplication" mandatory="false" name="duplicateProfileApplication">
         <![CDATA[Validate that Profile Application is correctly duplicated on controlled Packages]]>
      </category>
      <constraintProvider cache="true">
         <package namespaceUri="http://www.eclipse.org/uml2/3.0.0/UML"/>
         <constraints categories="org.eclipse.papyrus.uml.controlmode.profile/duplicateProfileApplication">
         <constraint id="org.eclipse.papyrus.uml.controlmode.profile.validation.ProfileApplicationDuplicationChecker"
            lang="Java"
            name="ProfileApplicationDuplicationChecker"
            class="org.eclipse.papyrus.uml.controlmode.profile.validation.ProfileApplicationDuplicationChecker"
            mode="Live"
            severity="ERROR" statusCode="200">
            <description><![CDATA[Profile Applications must be duplicated on controlled Packages]]></description>
            <message><![CDATA[Profile Applications modification did not successfully completed]]></message>
            <target class="uml.ProfileApplication"/>
            <target class="uml.Package"/>
         </constraint>
         </constraints>
      </constraintProvider>
   </extension>

   <extension point="org.eclipse.emf.validation.constraintBindings">
      <clientContext default="false" id="org.eclipse.papyrus.controlmodeDefaultCtx">
         <selector class="org.eclipse.papyrus.uml.controlmode.profile.providers.UMLValidationProvider$DefaultCtx"/>
      </clientContext>
      <binding context="org.eclipse.papyrus.controlmodeDefaultCtx">
         <constraint ref="org.eclipse.papyrus.uml.controlmode.profile.validation.ProfileApplicationDuplicationChecker"/>
      </binding>
   </extension>

   <extension point="org.eclipse.emf.validation.ui.UIRegisteredClientContext">
      <clientContext id="org.eclipse.papyrus.controlmodeDefaultCtx"/>
   </extension>
   <extension
         point="org.eclipse.papyrus.infra.services.controlmode.participant">
      <participant
            class="org.eclipse.papyrus.uml.controlmode.profile.UMLProfileControlParticipant">
      </participant>
   </extension>
   <extension
         point="org.eclipse.papyrus.infra.emf.readonly.readOnlyHandler">
      <readOnlyHandler
            class="org.eclipse.papyrus.uml.controlmode.profile.ControlledElementReadOnlyHandler"
            id="org.eclipse.papyrus.uml.controlmode.profile.ControlledElementReadOnlyHandler"
            priority="50">
         <affinity
               axis="discretion">
         </affinity>
      </readOnlyHandler>
   </extension>

</plugin>

Back to the top