-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplugin.xml
144 lines (133 loc) · 4.02 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
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
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
id="cn.gedobu.some.embeded.browser.fragment"
point="org.eclipse.e4.workbench.model">
<fragment
apply="notexists"
uri="fragment.e4xmi">
</fragment>
</extension>
<!-- Proprietary Syntax Highlighter Editor -->
<extension
point="org.eclipse.ui.editors">
<editor
id="cn.gedobu.some.med.editor.editors.MedEditor"
name="Med Editor"
icon="icons/sample.png"
extensions="med"
class="cn.gedobu.some.med.editor.editors.MedEditor">
</editor>
</extension>
<extension
point="org.eclipse.ui.editors">
<editor
id="cn.gedobu.some.med.editor.editors.MedXMLEditor"
name="Med XML Editor"
icon="icons/sample.png"
extensions="xml"
class="cn.gedobu.some.med.editor.editors.MedXMLEditor">
<contentTypeBinding
contentTypeId="org.eclipse.core.runtime.xml" />
<contentTypeBinding
contentTypeId="org.eclipse.wst.xml.core.xmlsource" />
</editor>
</extension>
<extension point="org.eclipse.wst.sse.ui.completionProposal">
<proposalCategory
icon="icons/sample.png"
id="cn.gedobu.some.editor.med.proposalCategory.medicalHistory"
name="Medical History">
</proposalCategory>
<proposalComputer
activate="true"
categoryId="cn.gedobu.some.editor.med.proposalCategory.medicalHistory"
class="cn.gedobu.some.editor.med.contentassist.XMLTemplatesCompletionProposalComputer"
id="cn.gedobu.some.editor.med.proposalComputer.medicalHistory">
<contentType
id="org.eclipse.core.runtime.xml">
</contentType>
</proposalComputer>
</extension>
<!-- Adopted from https://github.com/program-in-chinese/stone-editor-eclipse -->
<!-- Tell eclipse that you have defined a new file extension: med with its id as cn.gedobu.some.editor.med.grammar.med -->
<extension
point="org.eclipse.core.contenttype.contentTypes">
<content-type
file-extensions="med"
base-type="org.eclipse.core.runtime.text"
name="cn.gedobu.some.editor.med.grammar.med"
id="cn.gedobu.some.editor.med.grammar.med">
</content-type>
</extension>
<extension
point="org.eclipse.ui.editors">
<editorContentTypeBinding
contentTypeId="cn.gedobu.some.editor.med.grammar.med"
editorId="org.eclipse.ui.genericeditor.GenericEditor">
</editorContentTypeBinding>
</extension>
<extension
point="org.eclipse.ui.genericeditor.presentationReconcilers">
<presentationReconciler
class="cn.gedobu.some.editor.med.grammar.协调器"
contentType="cn.gedobu.some.editor.med.grammar.med">
</presentationReconciler>
</extension>
<extension
point="org.eclipse.ui.genericeditor.hoverProviders">
<hoverProvider
class="cn.gedobu.some.editor.med.grammar.悬浮提供器"
contentType="cn.gedobu.some.editor.med.grammar.med">
</hoverProvider>
</extension>
<extension
point="org.eclipse.ui.genericeditor.contentAssistProcessors">
<contentAssistProcessor
class="cn.gedobu.some.editor.med.grammar.内容辅助处理器"
contentType="cn.gedobu.some.editor.med.grammar.med">
</contentAssistProcessor>
</extension>
<extension
point="org.eclipse.core.filebuffers.documentSetup">
<participant
contentTypeId="cn.gedobu.some.editor.med.grammar.med"
extensions="med"
class="cn.gedobu.some.editor.med.grammar.ValidatorDocumentSetupParticipant">
</participant>
</extension>
<extension
point="org.eclipse.ui.views">
<category
id="SoMe"
name="SoMe">
</category>
<view
category="SoMe"
class="cn.gedobu.some.game.SoGaView"
icon="icons/sample.png"
id="cn.gedobu.some.game.SoGaView"
inject="true"
name="SoGa - SoMe Game">
</view>
</extension>
<extension
point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension
targetID="org.eclipse.jdt.ui.JavaPerspective">
<view
id="cn.gedobu.some.game.SoGaView"
ratio="0.5"
relationship="right"
relative="org.eclipse.ui.views.ProblemView">
</view>
</perspectiveExtension>
</extension>
<extension
point="org.eclipse.help.contexts">
<contexts
file="contexts.xml">
</contexts>
</extension>
</plugin>