-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.xml
More file actions
89 lines (88 loc) · 3 KB
/
plugin.xml
File metadata and controls
89 lines (88 loc) · 3 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
point="org.eclipse.debug.core.launchConfigurationTypes">
<launchConfigurationType
id="com.example.jmhplugin.launchconfigType"
name="JMH Benchmark"
delegate="com.example.jmhplugin.launchconfig.JmhLaunchConfigurationDelegate"
modes="run">
</launchConfigurationType>
</extension>
<extension
point="org.eclipse.debug.ui.launchConfigurationTypeImages">
<launchConfigurationTypeImage
icon="$nl$/icons/jmh.png"
configTypeID="com.example.jmhplugin.launchconfigType"
id="org.eclipse.jdt.junit.launchimage">
</launchConfigurationTypeImage>
</extension>
<extension
point="org.eclipse.debug.ui.launchConfigurationTabGroups">
<launchConfigurationTabGroup
id="com.example.launchConfig.launchconfig"
type="com.example.jmhplugin.launchconfigType"
class="com.example.jmhplugin.ui.launchconfig.LunchTabGroup">
</launchConfigurationTabGroup>
</extension>
<extension
point="org.eclipse.ui.commands">
<command
id="jmh.launch.command"
name="Launch JMH Benchmark">
</command>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
commandId="jmh.launch.command"
class="com.example.jmhplugin.launchconfig.JMHLaunchHandler">
</handler>
</extension>
<extension
point="org.eclipse.debug.ui.launchShortcuts">
<shortcut
label="JMH Benchmark"
icon="$nl$/icons/jmh.png"
helpContextId="org.eclipse.jdt.junit.launch_shortcut"
class="com.example.jmhplugin.launchconfig.JmhLaunchShortcut"
modes="run, debug"
id="com.example.jmhplugin.jmhShortcut">
<contextualLaunch>
<enablement>
<with variable="selection">
<count value="1"/>
<iterate>
<adapt type="org.eclipse.jdt.core.IJavaElement">
<!--<and>
<test property="org.eclipse.jdt.core.hasTypeOnClasspath" value="org.openjdk.jmh.annotations.Benchmark"/>
</and>-->
</adapt>
</iterate>
</with>
</enablement>
</contextualLaunch>
<configurationType
id="com.example.jmhplugin.launchconfig">
</configurationType>
<description
description="Debug JMH Benchmark"
mode="debug">
</description>
<description
description="Run JMH Benchmark"
mode="run">
</description>
</shortcut>
</extension>
<extension
point="org.eclipse.ui.preferencePages">
<page
category="org.eclipse.jdt.ui.preferences.JavaBasePreferencePage"
class="com.example.jmhplugin.ui.preferences.JmhPreferencePage"
id="com.example.jmhplugin.jmhPreferences"
name="JMH">
</page>
</extension>
</plugin>