]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.workbench/plugin.xml
Merge "Console printing also for content prints"
[simantics/platform.git] / bundles / org.simantics.workbench / plugin.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <?eclipse version="3.0"?>
3 <!--
4     Copyright (c) 2007, 2010 Association for Decentralized Information Management
5     in Industry THTH ry.
6     All rights reserved. This program and the accompanying materials
7     are made available under the terms of the Eclipse Public License v1.0
8     which accompanies this distribution, and is available at
9     http://www.eclipse.org/legal/epl-v10.html
10    
11     Contributors:
12         VTT Technical Research Centre of Finland - initial API and implementation
13  -->
14
15 <plugin>
16
17    <extension
18          id="application"
19          point="org.eclipse.core.runtime.applications">
20       <application>
21          <run
22                class="org.simantics.workbench.internal.SimanticsWorkbenchApplication">
23          </run>
24       </application>
25    </extension>
26    <extension
27          point="org.eclipse.core.runtime.preferences">
28       <initializer
29             class="org.simantics.workbench.internal.preferences.SimanticsPreferenceInitializer">
30       </initializer>
31    </extension>
32    <extension
33           point="org.eclipse.ui.preferencePages">
34       <page
35             name="%PreferencePages.Startup"
36             category="org.eclipse.ui.preferencePages.Workbench"
37             class="org.simantics.workbench.internal.dialogs.IDEStartupPreferencePage"
38             id="org.eclipse.ui.preferencePages.Startup">
39          <keywordReference id="org.eclipse.ui.ide.startupAndShutdown"/>
40       </page>
41       <page
42             name="%PreferencePages.Startup.Workspaces"
43             category="org.eclipse.ui.preferencePages.Startup"
44             class="org.simantics.workbench.internal.dialogs.RecentWorkspacesPreferencePage"
45             id="org.eclipse.ui.preferencePages.Startup.Workspaces">
46          <keywordReference id="org.eclipse.ui.ide.recentWorkspaces"/>
47       </page>
48       <page
49             name="%PreferencePages.Simantics"
50             category="org.eclipse.ui.preferencePages.Workbench"
51             class="org.simantics.workbench.internal.dialogs.SimanticsPreferencePage"
52             id="org.simantics.workbench.preferencePages.simantics">
53       </page>
54       <page
55             category="org.simantics.workbench.preferencePages.simantics"
56             class="org.simantics.workbench.internal.preferences.AutosavePreferencePage"
57             id="org.simantics.workbench.preferencePages.simantics.autosave"
58             name="%PreferencePages.Simantics.Autosave">
59       </page>
60       <page
61             category="org.simantics.workbench.preferencePages.simantics"
62             class="org.simantics.workbench.internal.preferences.ModelBrowserPreferencePage"
63             id="org.simantics.workbench.preferencePages.simantics.modelbrowser"
64             name="%PreferencePages.Simantics.ModelBrowser">
65       </page>
66    </extension>
67    <!--
68    <extension
69          point="org.eclipse.ui.commands">
70       <command
71             defaultHandler="org.simantics.workbench.AboutHandler"
72             description="Shows the about dialog"
73             id="org.simantics.workbench.about"
74             name="About">
75       </command>
76    </extension>
77    <extension
78          point="org.eclipse.ui.menus">
79       <menuContribution
80             locationURI="toolbar:org.eclipse.ui.main.toolbar">
81          <toolbar
82                id="org.simantics.workbench.toolbar">
83             <command
84                   commandId="org.simantics.workbench.about"
85                   icon="img/plugin.png"
86                   id="about"
87                   label="About"
88                   style="push"
89                   tooltip="Show The About Dialog">
90             </command>
91          </toolbar>
92       </menuContribution>
93    </extension>
94    -->
95    <extension point="org.eclipse.core.expressions.definitions">
96       <definition id="org.simantics.workbench.showDatabaseControls">
97          <systemTest
98                property="org.simantics.workbench.SHOW_DATABASE_CONTROLS"
99                value="true">
100          </systemTest>
101       </definition>
102    </extension>
103    <extension
104          point="org.eclipse.ui.menus">
105       <menuContribution
106             locationURI="menu:sFile?after=open.ext">
107          <command
108                commandId="org.eclipse.ui.file.restartWorkbench"
109                id="org.eclipse.ui.file.restartWorkbench"
110                style="push">
111          </command>
112       </menuContribution>
113       <!--<menuContribution locationURI="toolbar:org.eclipse.ui.trim.status">
114          <toolbar id="org.simantics.workbench.search.toolbar">
115             <control id="org.simantics.workbench.search" class="org.simantics.workbench.internal.contributions.search.SearchContribution" />
116             <separator name="additions" visible="false" />
117
118             <control
119                   class="org.simantics.workbench.internal.contributions.GraphRequestStatusContribution"
120                   id="org.simantics.workbench.db.monitor">
121                <visibleWhen
122                      checkEnabled="false">
123                   <reference definitionId="org.simantics.workbench.showDatabaseControls" />
124                </visibleWhen>
125             </control>
126             <control id="org.simantics.ui.dumpHeap" class="org.simantics.workbench.internal.contributions.DumpHeapContribution">
127                <visibleWhen
128                      checkEnabled="false">
129                   <reference definitionId="org.simantics.workbench.showDatabaseControls" />
130                </visibleWhen>
131             </control>
132             <control id="org.simantics.ui.dumpStackTraces" class="org.simantics.workbench.internal.contributions.DumpStackTracesContribution">
133                <visibleWhen
134                      checkEnabled="false">
135                   <reference definitionId="org.simantics.workbench.showDatabaseControls" />
136                </visibleWhen>
137             </control>
138             <control id="org.simantics.ui.flushQueries" class="org.simantics.workbench.internal.contributions.FlushRequestsContribution">
139                <visibleWhen
140                      checkEnabled="false">
141                   <reference definitionId="org.simantics.workbench.showDatabaseControls" />
142                </visibleWhen>
143             </control>
144          </toolbar>
145       </menuContribution>-->
146    </extension>
147    <extension
148          point="org.eclipse.ui.commands">
149       <category
150             description="Generic Simantics Workbench commands"
151             id="org.simantics.workbench.category"
152             name="Workbench Commands">
153       </category>
154       <command
155             categoryId="org.simantics.workbench.category"
156             defaultHandler="org.simantics.workbench.internal.contributions.search.FocusSearchTrim"
157             description="Focus Workbench search text box"
158             id="org.simantics.workbench.focusSearch"
159             name="Focus Workbench Search">
160       </command>
161       <command
162             categoryId="org.simantics.workbench.category"
163             description="Show resource properties"
164             id="org.simantics.workbench.properties"
165             name="Properties">
166       </command>
167    </extension>
168    <extension
169          point="org.eclipse.ui.views">
170       <view
171             allowMultiple="false"
172             category="org.eclipse.ui"
173             class="org.simantics.workbench.internal.contributions.search.BrowserView"
174             icon="platform:/plugin/com.famfamfam.silk/icons/magnifier.png"
175             id="org.simantics.workbench.search.browser"
176             name="Search"
177             restorable="false">
178          <description>
179             For browsing workbench search results.
180          </description>
181       </view>
182    </extension>
183    <extension
184          point="org.eclipse.ui.handlers">
185       <handler
186             class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:cut"
187             commandId="org.eclipse.ui.edit.cut">
188          <activeWhen>
189             <reference definitionId="org.simantics.workbench.search.active" />
190          </activeWhen>
191       </handler>
192       <handler
193             class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:copy"
194             commandId="org.eclipse.ui.edit.copy">
195          <activeWhen>
196             <reference definitionId="org.simantics.workbench.search.active" />
197          </activeWhen>
198       </handler>
199       <handler
200             class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:paste"
201             commandId="org.eclipse.ui.edit.paste">
202          <activeWhen>
203             <reference definitionId="org.simantics.workbench.search.active" />
204          </activeWhen>
205       </handler>
206       <handler
207             class="org.eclipse.ui.internal.handlers.SelectAllHandler"
208             commandId="org.eclipse.ui.edit.selectAll">
209          <activeWhen>
210             <reference definitionId="org.simantics.workbench.search.active" />
211          </activeWhen>
212       </handler>
213    </extension>
214    <extension
215          point="org.eclipse.core.expressions.definitions">
216       <definition
217             id="org.simantics.workbench.search.active">
218          <with variable="activeFocusControlId">
219             <equals value="org.simantics.workbench.search.text"/>
220          </with>
221       </definition>
222    </extension>
223    <extension
224          point="org.eclipse.ui.services">
225       <serviceFactory
226             factoryClass="org.simantics.workbench.internal.contributions.search.SearchServiceFactory">
227          <service
228                serviceClass="org.simantics.workbench.search.ISearchService"></service>
229       </serviceFactory>
230    </extension>
231       <extension
232          id="org.simantics.workbench.fragment"
233          point="org.eclipse.e4.workbench.model">
234       <fragment
235             uri="fragment.e4xmi">
236       </fragment>
237    </extension>
238 </plugin>