(refs #7362) Creation of new SCL modules in SCL module browser
[simantics/platform.git] / bundles / org.simantics.scl.ui / plugin.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <?eclipse version="3.4"?>
3 <plugin>
4    <extension
5          point="org.eclipse.ui.editors">
6       <editor
7             class="org.simantics.scl.ui.editor.SCLEditor"
8             contributorClass="org.eclipse.ui.texteditor.BasicTextEditorActionContributor"
9             default="true"
10             extensions="scl"
11             filenames="*.scl"
12             id="org.simantics.scl.ui.editor"
13             name="SCL Editor">
14       </editor>
15       <editor
16             class="org.simantics.scl.ui.editor2.SCLModuleEditor2"
17             contributorClass="org.eclipse.ui.texteditor.BasicTextEditorActionContributor"
18             default="true"
19             extensions="scl"
20             filenames="*.scl"
21             id="org.simantics.scl.ui.editor2"
22             name="SCL Module Editor">
23       </editor>
24    </extension>
25    <extension
26          point="org.eclipse.core.filebuffers.documentSetup">
27       <participant
28             class="org.simantics.scl.ui.editor.SCLDocumentSetup"
29             extensions="scl">
30       </participant>
31    </extension>
32    <extension
33          point="org.eclipse.core.contenttype.contentTypes">
34       <content-type
35             default-charset="UTF-8"
36             file-extensions="scl"
37             id="org.simantics.scl.contentType"
38             name="SCL Source"
39             priority="normal">
40       </content-type>
41    </extension>
42    <extension
43          point="org.eclipse.ui.views">
44       <category
45             id="org.simantics.scl.ui.category"
46             name="SCL">
47       </category>
48       <view
49             allowMultiple="true"
50             category="org.simantics.scl.ui.category"
51             class="org.simantics.scl.ui.console.SCLConsoleView"
52             icon="icons/application_xp_terminal.png"
53             id="org.simantics.scl.ui.console"
54             name="SCL Console"
55             restorable="true">
56       </view>
57       <view
58             allowMultiple="false"
59             category="org.simantics.scl.ui.category"
60             class="org.simantics.scl.ui.issues.SCLIssuesView"
61             icon="icons/error.png"
62             id="org.simantics.scl.ui.issues"
63             name="SCL Issues"
64             restorable="true">
65       </view>
66       <view
67             allowMultiple="false"
68             category="org.simantics.scl.ui.category"
69             class="org.simantics.scl.ui.modulebrowser.SCLModuleBrowser"
70             icon="icons/lambda.png"
71             id="org.simantics.scl.ui.modulebrowser"
72             name="SCL Module Browser"
73             restorable="true">
74       </view>
75    </extension>
76    <extension
77          point="org.eclipse.ui.menus">
78       <menuContribution
79             allPopups="false"
80             locationURI="menu:help?after=group.main.ext">
81          <command
82                commandId="org.simantics.scl.ui.launchDocumentationBrowser"
83                label="SCL Documentation"
84                style="push">
85          </command>
86       </menuContribution>
87    </extension>
88    <extension
89          point="org.eclipse.ui.commands">
90       <command
91             id="org.simantics.scl.ui.launchDocumentationBrowser"
92             name="SCL module documentation">
93       </command>
94       <command
95             id="org.simantics.scl.editor.openModule"
96             name="Open SCL module">
97       </command>
98       <command
99             id="org.simantics.scl.editor.openDefinition"
100             name="Open SCL definition">
101       </command>
102       <command
103             id="org.simantics.scl.editor.openDeclaration"
104             name="Open Declaration">
105       </command>
106    </extension>
107    <extension
108          point="org.eclipse.ui.handlers">
109       <handler
110             class="org.simantics.scl.ui.browser.LaunchSCLDocumentationBrowser"
111             commandId="org.simantics.scl.ui.launchDocumentationBrowser">
112       </handler>   
113       <handler
114             class="org.simantics.scl.ui.editor2.OpenSCLModule"
115             commandId="org.simantics.scl.editor.openModule">
116       </handler>
117       <handler
118             class="org.simantics.scl.ui.editor2.OpenSCLDefinition"
119             commandId="org.simantics.scl.editor.openDefinition">
120       </handler>
121       <handler
122             class="org.simantics.scl.ui.editor2.OpenDeclaration"
123             commandId="org.simantics.scl.editor.openDeclaration">
124       </handler>
125    </extension>
126    <extension
127          point="org.eclipse.ui.bindings">
128       <key
129             commandId="org.eclipse.ui.views.showView"
130             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
131             sequence="M2+M3+Q S">
132          <parameter
133                id="org.eclipse.ui.views.showView.viewId"
134                value="org.simantics.scl.ui.console">
135          </parameter>
136       </key>
137       <key
138             platform="carbon"
139             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
140             sequence="M2+M3+Q S">
141       </key>
142       <key
143             platform="carbon"
144             commandId="org.eclipse.ui.views.showView"
145             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
146             sequence="M1+M3+Q S">
147          <parameter
148                id="org.eclipse.ui.views.showView.viewId"
149                value="org.simantics.scl.ui.console">
150          </parameter>
151       </key>
152       <key
153             commandId="org.simantics.scl.editor.openModule"
154             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
155             sequence="CTRL+SHIFT+M">
156       </key>
157       <key
158             commandId="org.simantics.scl.editor.openDefinition"
159             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
160             sequence="CTRL+SHIFT+D">
161       </key>
162       <key
163             commandId="org.simantics.scl.editor.openDeclaration"
164             contextId="org.simantics.scl.ui.editor"
165             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
166             sequence="F3">
167       </key>
168    </extension>
169    <extension
170          point="org.eclipse.ui.contexts">
171       <context
172             id="org.simantics.scl.ui.editor"
173             name="SCL module editor">
174       </context>
175    </extension>
176    <extension
177          point="org.eclipse.ui.elementFactories">
178       <factory
179             class="org.simantics.scl.ui.editor2.SCLModuleEditorInputFactory"
180             id="org.simantics.scl.ui.editor.inputFactory">
181       </factory>
182    </extension>
183    <extension
184          point="org.eclipse.ui.perspectives">
185       <perspective
186             class="org.simantics.scl.ui.perspective.SCLPerspectiveFactory"
187             icon="icons/lambda.png"
188             id="org.simantics.scl.ui.perspective"
189             name="SCL Development Perspective">
190       </perspective>
191    </extension>
192    <extension
193          point="org.eclipse.ui.perspectiveExtensions">
194       <perspectiveExtension
195             targetID="org.simantics.scl.ui.perspective">
196          <view
197                id="org.simantics.scl.ui.modulebrowser"
198                minimized="false"
199                ratio="0.2"
200                relationship="left"
201                relative="org.eclipse.ui.editorss">
202          </view>
203          <view
204                id="org.simantics.scl.ui.console"
205                minimized="false"
206                ratio="0.8"
207                relationship="bottom"
208                relative="org.eclipse.ui.editorss">
209          </view>
210          <view
211                id="org.simantics.scl.ui.issues"
212                minimized="false"
213                ratio="0.8"
214                relationship="bottom"
215                relative="org.simantics.scl.ui.modulebrowser">
216          </view>
217       </perspectiveExtension>
218    </extension>
219
220 </plugin>