File: plugin.xml

package info (click to toggle)
eclipse-wtp 3.35-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 19,860 kB
  • sloc: java: 215,049; xml: 3,946; sh: 70; makefile: 9
file content (97 lines) | stat: -rwxr-xr-x 3,546 bytes parent folder | download | duplicates (3)
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
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin>
	<extension point="org.eclipse.ui.commands">
		<command
			description="%VBF_UI_POPUP_RUNVALIDATIONDESC"
			id="org.eclipse.wst.validation.ValidationCommand"
			name="%VBF_UI_POPUP_RUNVALIDATION_NOMNEMONIC" />
	</extension>

    <extension point="org.eclipse.ui.handlers">
       <handler
             class="org.eclipse.wst.validation.internal.ui.ValidationHandler"
             commandId="org.eclipse.wst.validation.ValidationCommand">
             <enabledWhen>
	           <or>
		        <with variable="activePart">
					<test forcePluginActivation="true"
						property="org.eclipse.ui.ide.editor.input"
						value="ignored?"/>
		        </with>
				<with variable="selection">
                    <iterate ifEmpty="false">
	                    <adapt type="org.eclipse.core.resources.IResource">
	                    </adapt>
                    </iterate>
                </with>
               </or>
             </enabledWhen>
       </handler>
	</extension>

 	<extension point="org.eclipse.ui.menus">
     <menuContribution locationURI="popup:org.eclipse.ui.popup.any?endof=additions" allPopups="true">
		<command commandId="org.eclipse.wst.validation.ValidationCommand" id="ValidationCommand" style="push" icon="icons/ok_tbl.gif" disabledIcon="icons/ok_tbl_disabled.gif">
		   <visibleWhen checkEnabled="false">
           <and>
	           <not>
		           <systemTest
		                 property="org.eclipse.wst.validation.ui.disable.validation.context.menu" value="true">
		           </systemTest>
	           </not>
	           <not>
				<test forcePluginActivation="true"
					property="org.eclipse.wst.common.core.productProperty"
					args="org.eclipse.wst.validation.ui.disable.validation.context.menu"
					value="true" />
	           </not>
	           <or>
		        <with variable="activePart">
					<test forcePluginActivation="true"
						property="org.eclipse.ui.ide.editor.input"
						value="ignored?"/>
		        </with>
				<with variable="selection">
                    <iterate ifEmpty="false">
	                    <adapt type="org.eclipse.core.resources.IResource">
	                    </adapt>
                    </iterate>
                </with>
               </or>
              </and>
			</visibleWhen>
		</command>
	</menuContribution>
	</extension>
  

<!-- ====================================================== -->
<!--           Validation preference page                   -->
<!-- ====================================================== -->
   <extension
         point="org.eclipse.ui.preferencePages">
      <page
            name="%VBF_TITLE_PREFERENCE"
            class="org.eclipse.wst.validation.ui.internal.preferences.ValidationPreferencePage"
            id="ValidationPreferencePage">
      </page>
   </extension>
   
<!-- ====================================================== -->
<!--           Validation properties page                   -->
<!-- ====================================================== -->
<!-- By saying "adaptable=true", this item will appear on both IProject and IJavaProject -->
   <extension
         point="org.eclipse.ui.propertyPages">
      <page
            name="%VBF_TITLE_PROPERTIES"
            class="org.eclipse.wst.validation.ui.internal.preferences.ValidationPropertyPage"
            id="ValidationPropertiesPage">
         <enabledWhen>
	         <adapt type="org.eclipse.core.resources.IProject"/>
         </enabledWhen>
      </page>
   </extension>

</plugin>