-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplugin.xml
More file actions
74 lines (73 loc) · 2.5 KB
/
plugin.xml
File metadata and controls
74 lines (73 loc) · 2.5 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
point="org.eclipse.ui.commands">
<category
description="Commands related to the PHPMD"
id="org.phpsrc.eclipse.pti.tools.phpmd.command.category"
name="PHPMD">
</category>
<command
categoryId="org.phpsrc.eclipse.pti.tools.phpmd.command.category"
description="Run PHP Mess Detector"
id="org.phpsrc.eclipse.pti.tools.phpmd.commands.runMessDetector"
name="Run PHP Mess Detector">
</command>
</extension>
<extension
point="org.eclipse.ui.menus">
<menuContribution
locationURI="popup:org.phpsrc.eclipse.pti.ui.menus.phptools?after=additions">
<command
commandId="org.phpsrc.eclipse.pti.tools.phpmd.commands.runMessDetector"
style="push"
tooltip="Run PHP Mess Detector on selected files or folders">
<visibleWhen>
<with
variable="activeMenuSelection">
<iterate>
<adapt
type="org.eclipse.core.resources.IResource">
</adapt>
</iterate>
</with>
</visibleWhen>
</command>
</menuContribution>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
class="org.phpsrc.eclipse.pti.tools.phpmd.handlers.PhpmdHandler"
commandId="org.phpsrc.eclipse.pti.tools.phpmd.commands.runMessDetector">
<enabledWhen>
<with
variable="selection">
<count
value="?">
</count>
<or>
<instanceof
value="org.eclipse.jface.viewers.IStructuredSelection">
</instanceof>
<instanceof
value="org.eclipse.jface.text.ITextSelection">
</instanceof>
</or>
</with>
</enabledWhen>
</handler>
</extension>
<extension
point="org.eclipse.ui.views">
<view
category="org.eclipse.php.ui.views"
class="org.phpsrc.eclipse.pti.tools.phpmd.views.PhpmdView"
icon="icons/16x16/phpmd.png"
id="org.phpsrc.eclipse.pti.tools.phpmd.views.PhpmdView"
name="PHPMD"
restorable="true">
</view>
</extension>
</plugin>