forked from sukyoung/safe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.xml
107 lines (107 loc) · 4.42 KB
/
plugin.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
point="org.eclipse.ui.commands">
<category
name="Clone Category"
id="kr.ac.kaist.jsaf.clone_refactor.commands.category"></category>
<command
name="Clone Analysis"
categoryId="kr.ac.kaist.jsaf.clone_refactor.commands.category"
id="kr.ac.kaist.jsaf.clone_refactor.commands.analysisCommand"></command>
<command
name="Pull Up Method"
categoryId="kr.ac.kaist.jsaf.clone_refactor.commands.category"
id="kr.ac.kaist.jsaf.clone_refactor.commands.pullupCommand"></command>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
commandId="kr.ac.kaist.jsaf.clone_refactor.commands.analysisCommand"
class="kr.ac.kaist.jsaf.clone_refactor.eclipse.AnalysisHandler"></handler>
<handler
commandId="kr.ac.kaist.jsaf.clone_refactor.commands.pullupCommand"
class="kr.ac.kaist.jsaf.clone_refactor.eclipse.PullUpMethodHandler"></handler>
</extension>
<extension
point="org.eclipse.ui.bindings">
<key
commandId="kr.ac.kaist.jsaf.clone_refactor.commands.analysisCommand"
contextId="org.eclipse.ui.contexts.window"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="M1+6"></key>
</extension>
<extension
point="org.eclipse.ui.menus">
<menuContribution
locationURI="menu:org.eclipse.ui.main.menu?after=additions">
<menu
id="kr.ac.kaist.jsaf.clone_refactor.menus.refactorMenu"
label="Clone Refactor"
mnemonic="R">
<command
commandId="kr.ac.kaist.jsaf.clone_refactor.commands.analysisCommand"
id="kr.ac.kaist.jsaf.clone_refactor.menus.analysisCommand"
mnemonic="A"></command>
</menu>
</menuContribution>
<menuContribution
locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
<toolbar
id="kr.ac.kaist.jsaf.clone_refactor.toolbars.sampleToolbar">
<command
commandId="kr.ac.kaist.jsaf.clone_refactor.commands.analysisCommand"
icon="icons/clone.gif"
tooltip="Analyze code clones in the current application"
id="kr.ac.kaist.jsaf.clone_refactor.toolbars.analysisCommand"></command>
</toolbar>
</menuContribution>
</extension>
<extension point="org.eclipse.core.resources.markers" id="kr.ac.kaist.jsaf.clonemarker"
name="Clone Marker">
<super type="org.eclipse.core.resources.textmarker"/>
<super type="org.eclipse.core.resources.marker"/>
<super type="org.eclipse.core.resources.problemmarker"/>
<persistent value="false"/>
<attribute name="description"/>
</extension>
<extension point="org.eclipse.ui.editors.markerUpdaters">
<updater
id="kr.ac.kaist.jsaf.clone_refactor.marker.MarkerUpdater"
class="kr.ac.kaist.jsaf.clone_refactor.marker.MarkerUpdater"
markerType="kr.ac.kaist.jsaf.clonemarker"></updater>
</extension>:
<extension point="org.eclipse.ui.decorators">
<decorator
id="kr.ac.kaist.jsaf.clone_refactor.marker.FileDecorator"
label="MyMarker Decorator"
state="true"
class= "kr.ac.kaist.jsaf.clone_refactor.marker.FileDecorator"
adaptable="true"
lightweight="true">
<enablement>
<objectClass name="org.eclipse.core.resources.IResource"/>
</enablement>
</decorator>
</extension>
<extension point="org.eclipse.ui.views">
<view id="kr.ac.kaist.jsaf.clone_refactor.views.cloneview"
name="Clone View"
class="kr.ac.kaist.jsaf.clone_refactor.views.CloneView"
icon="icons/clone.gif"/>
</extension>
<extension point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension
targetID="org.eclipse.jdt.ui.JavaPerspective">
<view
id="kr.ac.kaist.jsaf.clone_refactor.views.cloneview"
ratio="0.5"
relationship="bottom"
relative="org.eclipse.ui.views.ContentOutline"
showTitle="true"
visible="true">
</view>
</perspectiveExtension>
</extension>
</plugin>