Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
blob: 352183a7566fbafc11196079b37d921c25b8250a (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>

<plugin>
  
  <!-- We need this plugin to be loaded at startup time so that the
       ServicePolicyPropertyTester class will always be loaded.  If this is
       not done then the Service Policy project property page will appear
       on all project property pages until the plugin has been loaded. 
       -->
  <extension point="org.eclipse.ui.startup"/>
  
   <extension point="org.eclipse.core.expressions.propertyTesters">
    <propertyTester
      id="org.eclipse.wst.ws.service.policy.test.service.ws.service.policy.foo"
      type="org.eclipse.core.resources.IProject"
      namespace="org.eclipse.wst.ws.service.policy.test.service.ws.service.policy.foo"
      properties="projectHasFOOfiles"
      class="org.eclipse.wst.ws.service.policy.test.internal.properties.FOOFilePropertyTester">
    </propertyTester>
 	</extension>
   <extension point="org.eclipse.wst.ws.service.policy.servicepolicy">
     <servicePolicy>
      <enablement>
         <test property="org.eclipse.wst.ws.service.policy.test.service.ws.service.policy.foo.projectHasFOOfiles"/>
       </enablement> 
       <policy parentPolicyId="someparent" id="id1" enumListId="org.eclipse.wst.service.policy.errorWarnEnum" mutable="true">
         <descriptor shortName="id1 shortName" description="id1 description"/>
         <relationship enumList="org.eclipse.wst.warn org.eclipse.wst.error">
           <targetPolicy id="id2"
                   itemList="org.eclipse.wst.warn org.eclipse.wst.error"/>
           <targetPolicy id="id3"
                   itemList="org.eclipse.wst.warn"/>
           <targetPolicy id="id4"
                   itemList="org.eclipse.wst.error"/>
           <targetPolicy id="id22"
                   itemList="org.eclipse.wst.warn2 org.eclipse.wst.error2"/>
  			<targetPolicy id="id_boolean2"
                   itemList="org.eclipse.wst.false"/>  
         </relationship>
         
         <relationship enumList="org.eclipse.wst.ignore">
           <targetPolicy id="id3"
                   itemList="org.eclipse.wst.warn org.eclipse.wst.error"/>
         </relationship>
       </policy>
       
       <policy id="someparent">
         <descriptor longName="parent longname" />
       </policy>
       
       <policy id="id2" parentPolicyId="someparent" 
                        enumListId="org.eclipse.wst.service.policy.errorWarnEnum"
                        defaultEnumId="org.eclipse.wst.warn"
                        mutable="true">
         <descriptor shortName="id2 shortname" contextHelpId="somecontextid.A001"/>
         <state key="id2_key" value="id2_value" />
       </policy>
       
       <policy id="id3" parentPolicyId="id2" 
       					enumListId="org.eclipse.wst.service.policy.errorWarnEnum"
       					defaultEnumId="org.eclipse.wst.error">
         <descriptor shortName="id3 short name"/>
       </policy>
       <policy id="id5" parentPolicyId="id3" 
       					enumListId="org.eclipse.wst.service.policy.errorWarnEnum"
       					defaultEnumId="org.eclipse.wst.error">
         <descriptor shortName="id5 short name"/>
         <relationship enumList="org.eclipse.wst.warn">
           <targetPolicy id="id2" 
                   itemList="org.eclipse.wst.ignore"/>
         </relationship>  
       </policy>
       <policy id="id6" parentPolicyId="id5" 
       					enumListId="org.eclipse.wst.service.policy.errorWarnEnum"
       					defaultEnumId="org.eclipse.wst.error">
         <descriptor shortName="id6 short name"/>
       </policy>

       <policy id="id10" parentPolicyId="id22" 
       					enumListId="org.eclipse.wst.service.policy.errorWarnEnum"
       					defaultEnumId="org.eclipse.wst.error">
         <descriptor shortName="id10 short name"/>
       </policy>
       <policy id="id11" parentPolicyId="id10" 
       					enumListId="org.eclipse.wst.service.policy.errorWarnEnum"
       					defaultEnumId="org.eclipse.wst.error">
         <descriptor shortName="id11 short name"/>
         <relationship enumList="org.eclipse.wst.warn">
           <targetPolicy id="id2" 
                   itemList="org.eclipse.wst.ignore"/>
         </relationship>  
       </policy>
       <policy id="id12" parentPolicyId="id11" 
       					enumListId="org.eclipse.wst.service.policy.errorWarnEnum"
       					defaultEnumId="org.eclipse.wst.error">
         <descriptor shortName="id12 short name"/>
       </policy>
       
       <policy id="id7" parentPolicyId="id2" 
       					enumListId="org.eclipse.wst.service.policy.errorWarnEnum"
       					defaultEnumId="org.eclipse.wst.error">
         <descriptor shortName="id7 short name"/>
       </policy>
       <policy id="id8" parentPolicyId="id7" 
       					enumListId="org.eclipse.wst.service.policy.errorWarnEnum"
       					defaultEnumId="org.eclipse.wst.error">
         <descriptor shortName="id8 short name"/>
       </policy>
       <policy id="id9" parentPolicyId="id8" 
       					enumListId="org.eclipse.wst.service.policy.errorWarnEnum"
       					defaultEnumId="org.eclipse.wst.error">
         <descriptor shortName="id9 short name"/>
         <relationship enumList="org.eclipse.wst.warn">
           <targetPolicy id="id2" 
                   itemList="org.eclipse.wst.ignore"/>
         </relationship>  
       </policy>
       
       <policy id="id4" enumListId="org.eclipse.wst.service.policy.errorWarnEnum">
         <descriptor shortName="id4 short name" longName="id4 long name" />
       </policy>
       
       <policy id="id22" parentPolicyId="someparent" 
                        enumListId="org.eclipse.wst.service.policy.errorWarnEnum2"
                        defaultEnumId="org.eclipse.wst.warn2">
         <descriptor shortName="id22 shortname" contextHelpId="somecontextid.A001"/>
       </policy>
       
       <policy id="id_boolean1" enumListId="org.eclipse.wst.service.policy.booleanEnum"
                                defaultEnumId="org.eclipse.wst.true">
         <descriptor shortName="boolean1 short name" longName="boolean1 long name" />
       </policy>
       
       <policy id="id_boolean2" enumListId="org.eclipse.wst.service.policy.booleanEnum"
                                defaultEnumId="org.eclipse.wst.true">
         <descriptor shortName="boolean2 short name" longName="boolean2 long name" />
       </policy>
       <enumeration id="org.eclipse.wst.service.policy.errorWarnEnum2" 
                    default="org.eclipse.wst.ignore2">
         <item id="org.eclipse.wst.ignore2"
               shortName="IGNORE SHORTNAME2" longName="IGNORE LONGNAME2" />
         <item id="org.eclipse.wst.warn2"
               shortName="WARN SHORTNAME2" longName="WARN LONGNAME2" />
         <item id="org.eclipse.wst.error2"
               shortName="ERROR SHORTNAME2" longName="ERROR LONGNAME2" />
       </enumeration> 
       
     </servicePolicy>      
   </extension>
   
   <extension point="org.eclipse.wst.ws.service.policy.ui.servicepolicyui">
     <servicePolicyUI> 
       <operation id="service.ui.operation1" defaultdata="true"
                      policyPattern="id3|id2" >
         <descriptor shortName="UI policy1 short name" longName="UI policy1 long name" />
         <enumeration id="org.eclipse.wst.service.policy.errorWarnEnum"/>
         <enabled multiselect="true"/>
       </operation>
       
       <operation id="service.ui.operation2" defaultdata="true"
                      policyPattern="id\d.*" >
         <descriptor shortName="UI policy2 short name" longName="UI policy2 long name" />
         <enumeration id="org.eclipse.wst.service.policy.errorWarnEnum"/>
         <enabled multiselect="false"/>
       </operation> 
       
       <operation id="service.ui.operation3" defaultdata="false"
                      policyPattern="id4" >
         <descriptor shortName="UI policy3 short name" longName="UI policy3 long name" />
         <enumeration id="org.eclipse.wst.service.policy.errorWarnEnum"/>
       </operation>
       
       <operation id="service.ui.operation4" defaultdata="true"
                      policyPattern="id1|id2|id3" >
         <descriptor shortName="UI policy4 short name" longName="UI policy4 long name" />
         <enumeration id="org.eclipse.wst.service.policy.errorWarnEnum"/>
       </operation>
     
       <operation id="service.ui.operation5" defaultdata="false"
                      policyPattern="id22" workspaceOnly="true">
         <descriptor shortName="UI policy5 short name" longName="UI policy5 long name" />
         <enumeration id="org.eclipse.wst.service.policy.errorWarnEnum2"/>
       </operation>      
       <operation id="service.ui.boolean.operation1" defaultdata="false"
                      policyPattern="id_bool.*" workspaceOnly="true">
         <descriptor shortName="UI policy2b bool short name" longName="UI policy2b bool long name" />
         <selection/>
       </operation>
       
       <operation id="service.ui.boolean.operation2" defaultdata="true"
                      policyPattern="id_boolean2" >
         <descriptor shortName="UI policy3 bool short name" longName="UI policy3 bool long name" />
         <selection icon="true"/>
       </operation>
       
       <operation id="service.ui.complex.operation1" defaultdata="false"
                      policyPattern="someparent| id4" >
         <descriptor shortName="UI policy4 short name" longName="UI policy4 long name" />
         <complex launchClass="org.eclipse.wst.ws.service.policy.test.TestLaunchClass"/>
         <enabled multiselect="true"
                  enabledClass="org.eclipse.wst.ws.service.policy.test.TestEnabledClass"/>
       </operation>
       
       <quickFix pluginId="org.eclipse.wst.ws.service.policy.test"
                 code="1">
          <action class="org.eclipse.wst.ws.service.policy.test.action1">
             <descriptor shortName="quick fix 1 for code 1"/>
          </action>
          <action class="org.eclipse.wst.ws.service.policy.test.action2">
             <descriptor shortName="quick fix 2 for code 1"/>
          </action>
       </quickFix>
       
       <quickFix pluginId="org.eclipse.wst.ws.service.policy.test"
                 code="2">
          <action class="org.eclipse.wst.ws.service.policy.test.action3">
             <descriptor shortName="quick fix 1 for code 2"/>
          </action>
       </quickFix>
     </servicePolicyUI>
   </extension>

</plugin>

Back to the top