-<?xml version="1.0" encoding="UTF-8"?>\r
-<?eclipse version="3.0"?>\r
-<!--\r
- Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
- in Industry THTH ry.\r
- All rights reserved. This program and the accompanying materials\r
- are made available under the terms of the Eclipse Public License v1.0\r
- which accompanies this distribution, and is available at\r
- http://www.eclipse.org/legal/epl-v10.html\r
- \r
- Contributors:\r
- VTT Technical Research Centre of Finland - initial API and implementation\r
- -->\r
-\r
-<plugin>\r
-\r
- <extension\r
- id="application"\r
- point="org.eclipse.core.runtime.applications">\r
- <application>\r
- <run\r
- class="org.simantics.workbench.internal.SimanticsWorkbenchApplication">\r
- </run>\r
- </application>\r
- </extension>\r
- <extension\r
- point="org.eclipse.core.runtime.preferences">\r
- <initializer\r
- class="org.simantics.workbench.internal.preferences.SimanticsPreferenceInitializer">\r
- </initializer>\r
- </extension>\r
- <extension\r
- point="org.eclipse.ui.preferencePages">\r
- <page\r
- name="%PreferencePages.Startup"\r
- category="org.eclipse.ui.preferencePages.Workbench"\r
- class="org.simantics.workbench.internal.dialogs.IDEStartupPreferencePage"\r
- id="org.eclipse.ui.preferencePages.Startup">\r
- <keywordReference id="org.eclipse.ui.ide.startupAndShutdown"/>\r
- </page>\r
- <page\r
- name="%PreferencePages.Startup.Workspaces"\r
- category="org.eclipse.ui.preferencePages.Startup"\r
- class="org.simantics.workbench.internal.dialogs.RecentWorkspacesPreferencePage"\r
- id="org.eclipse.ui.preferencePages.Startup.Workspaces">\r
- <keywordReference id="org.eclipse.ui.ide.recentWorkspaces"/>\r
- </page>\r
- <page\r
- name="%PreferencePages.Simantics"\r
- category="org.eclipse.ui.preferencePages.Workbench"\r
- class="org.simantics.workbench.internal.dialogs.SimanticsPreferencePage"\r
- id="org.simantics.workbench.preferencePages.simantics">\r
- </page>\r
- <page\r
- category="org.simantics.workbench.preferencePages.simantics"\r
- class="org.simantics.workbench.internal.preferences.AutosavePreferencePage"\r
- id="org.simantics.workbench.preferencePages.simantics.autosave"\r
- name="%PreferencePages.Simantics.Autosave">\r
- </page>\r
- <page\r
- category="org.simantics.workbench.preferencePages.simantics"\r
- class="org.simantics.workbench.internal.preferences.ModelBrowserPreferencePage"\r
- id="org.simantics.workbench.preferencePages.simantics.modelbrowser"\r
- name="%PreferencePages.Simantics.ModelBrowser">\r
- </page>\r
- </extension>\r
- <!--\r
- <extension\r
- point="org.eclipse.ui.commands">\r
- <command\r
- defaultHandler="org.simantics.workbench.AboutHandler"\r
- description="Shows the about dialog"\r
- id="org.simantics.workbench.about"\r
- name="About">\r
- </command>\r
- </extension>\r
- <extension\r
- point="org.eclipse.ui.menus">\r
- <menuContribution\r
- locationURI="toolbar:org.eclipse.ui.main.toolbar">\r
- <toolbar\r
- id="org.simantics.workbench.toolbar">\r
- <command\r
- commandId="org.simantics.workbench.about"\r
- icon="img/plugin.png"\r
- id="about"\r
- label="About"\r
- style="push"\r
- tooltip="Show The About Dialog">\r
- </command>\r
- </toolbar>\r
- </menuContribution>\r
- </extension>\r
- -->\r
- <extension point="org.eclipse.core.expressions.definitions">\r
- <definition id="org.simantics.workbench.showDatabaseControls">\r
- <systemTest\r
- property="org.simantics.workbench.SHOW_DATABASE_CONTROLS"\r
- value="true">\r
- </systemTest>\r
- </definition>\r
- </extension>\r
- <extension\r
- point="org.eclipse.ui.menus">\r
- <menuContribution\r
- locationURI="menu:sFile?after=open.ext">\r
- <command\r
- commandId="org.eclipse.ui.file.restartWorkbench"\r
- id="org.eclipse.ui.file.restartWorkbench"\r
- style="push">\r
- </command>\r
- </menuContribution>\r
- <!--<menuContribution locationURI="toolbar:org.eclipse.ui.trim.status">\r
- <toolbar id="org.simantics.workbench.search.toolbar">\r
- <control id="org.simantics.workbench.search" class="org.simantics.workbench.internal.contributions.search.SearchContribution" />\r
- <separator name="additions" visible="false" />\r
-\r
- <control\r
- class="org.simantics.workbench.internal.contributions.GraphRequestStatusContribution"\r
- id="org.simantics.workbench.db.monitor">\r
- <visibleWhen\r
- checkEnabled="false">\r
- <reference definitionId="org.simantics.workbench.showDatabaseControls" />\r
- </visibleWhen>\r
- </control>\r
- <control id="org.simantics.ui.dumpHeap" class="org.simantics.workbench.internal.contributions.DumpHeapContribution">\r
- <visibleWhen\r
- checkEnabled="false">\r
- <reference definitionId="org.simantics.workbench.showDatabaseControls" />\r
- </visibleWhen>\r
- </control>\r
- <control id="org.simantics.ui.dumpStackTraces" class="org.simantics.workbench.internal.contributions.DumpStackTracesContribution">\r
- <visibleWhen\r
- checkEnabled="false">\r
- <reference definitionId="org.simantics.workbench.showDatabaseControls" />\r
- </visibleWhen>\r
- </control>\r
- <control id="org.simantics.ui.flushQueries" class="org.simantics.workbench.internal.contributions.FlushRequestsContribution">\r
- <visibleWhen\r
- checkEnabled="false">\r
- <reference definitionId="org.simantics.workbench.showDatabaseControls" />\r
- </visibleWhen>\r
- </control>\r
- </toolbar>\r
- </menuContribution>-->\r
- </extension>\r
- <extension\r
- point="org.eclipse.ui.commands">\r
- <category\r
- description="Generic Simantics Workbench commands"\r
- id="org.simantics.workbench.category"\r
- name="Workbench Commands">\r
- </category>\r
- <command\r
- categoryId="org.simantics.workbench.category"\r
- defaultHandler="org.simantics.workbench.internal.contributions.search.FocusSearchTrim"\r
- description="Focus Workbench search text box"\r
- id="org.simantics.workbench.focusSearch"\r
- name="Focus Workbench Search">\r
- </command>\r
- <command\r
- categoryId="org.simantics.workbench.category"\r
- description="Show resource properties"\r
- id="org.simantics.workbench.properties"\r
- name="Properties">\r
- </command>\r
- </extension>\r
- <extension\r
- point="org.eclipse.ui.views">\r
- <view\r
- allowMultiple="false"\r
- category="org.eclipse.ui"\r
- class="org.simantics.workbench.internal.contributions.search.BrowserView"\r
- icon="platform:/plugin/com.famfamfam.silk/icons/magnifier.png"\r
- id="org.simantics.workbench.search.browser"\r
- name="Search"\r
- restorable="false">\r
- <description>\r
- For browsing workbench search results.\r
- </description>\r
- </view>\r
- </extension>\r
- <extension\r
- point="org.eclipse.ui.handlers">\r
- <handler\r
- class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:cut"\r
- commandId="org.eclipse.ui.edit.cut">\r
- <activeWhen>\r
- <reference definitionId="org.simantics.workbench.search.active" />\r
- </activeWhen>\r
- </handler>\r
- <handler\r
- class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:copy"\r
- commandId="org.eclipse.ui.edit.copy">\r
- <activeWhen>\r
- <reference definitionId="org.simantics.workbench.search.active" />\r
- </activeWhen>\r
- </handler>\r
- <handler\r
- class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:paste"\r
- commandId="org.eclipse.ui.edit.paste">\r
- <activeWhen>\r
- <reference definitionId="org.simantics.workbench.search.active" />\r
- </activeWhen>\r
- </handler>\r
- <handler\r
- class="org.eclipse.ui.internal.handlers.SelectAllHandler"\r
- commandId="org.eclipse.ui.edit.selectAll">\r
- <activeWhen>\r
- <reference definitionId="org.simantics.workbench.search.active" />\r
- </activeWhen>\r
- </handler>\r
- </extension>\r
- <extension\r
- point="org.eclipse.core.expressions.definitions">\r
- <definition\r
- id="org.simantics.workbench.search.active">\r
- <with variable="activeFocusControlId">\r
- <equals value="org.simantics.workbench.search.text"/>\r
- </with>\r
- </definition>\r
- </extension>\r
- <extension\r
- point="org.eclipse.ui.services">\r
- <serviceFactory\r
- factoryClass="org.simantics.workbench.internal.contributions.search.SearchServiceFactory">\r
- <service\r
- serviceClass="org.simantics.workbench.search.ISearchService"></service>\r
- </serviceFactory>\r
- </extension>\r
- <extension\r
- id="org.simantics.workbench.fragment"\r
- point="org.eclipse.e4.workbench.model">\r
- <fragment\r
- uri="fragment.e4xmi">\r
- </fragment>\r
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.0"?>
+<!--
+ Copyright (c) 2007, 2010 Association for Decentralized Information Management
+ in Industry THTH ry.
+ All rights reserved. This program and the accompanying materials
+ are made available under the terms of the Eclipse Public License v1.0
+ which accompanies this distribution, and is available at
+ http://www.eclipse.org/legal/epl-v10.html
+
+ Contributors:
+ VTT Technical Research Centre of Finland - initial API and implementation
+ -->
+
+<plugin>
+
+ <extension
+ id="application"
+ point="org.eclipse.core.runtime.applications">
+ <application>
+ <run
+ class="org.simantics.workbench.internal.SimanticsWorkbenchApplication">
+ </run>
+ </application>
</extension>
-</plugin>\r
+ <extension
+ point="org.eclipse.core.runtime.preferences">
+ <initializer
+ class="org.simantics.workbench.internal.preferences.SimanticsPreferenceInitializer">
+ </initializer>
+ </extension>
+ <extension
+ point="org.eclipse.ui.preferencePages">
+ <page
+ name="%PreferencePages.Startup"
+ category="org.eclipse.ui.preferencePages.Workbench"
+ class="org.simantics.workbench.internal.dialogs.IDEStartupPreferencePage"
+ id="org.eclipse.ui.preferencePages.Startup">
+ <keywordReference id="org.eclipse.ui.ide.startupAndShutdown"/>
+ </page>
+ <page
+ name="%PreferencePages.Startup.Workspaces"
+ category="org.eclipse.ui.preferencePages.Startup"
+ class="org.simantics.workbench.internal.dialogs.RecentWorkspacesPreferencePage"
+ id="org.eclipse.ui.preferencePages.Startup.Workspaces">
+ <keywordReference id="org.eclipse.ui.ide.recentWorkspaces"/>
+ </page>
+ <page
+ name="%PreferencePages.Simantics"
+ category="org.eclipse.ui.preferencePages.Workbench"
+ class="org.simantics.workbench.internal.dialogs.SimanticsPreferencePage"
+ id="org.simantics.workbench.preferencePages.simantics">
+ </page>
+ <page
+ category="org.simantics.workbench.preferencePages.simantics"
+ class="org.simantics.workbench.internal.preferences.AutosavePreferencePage"
+ id="org.simantics.workbench.preferencePages.simantics.autosave"
+ name="%PreferencePages.Simantics.Autosave">
+ </page>
+ <page
+ category="org.simantics.workbench.preferencePages.simantics"
+ class="org.simantics.workbench.internal.preferences.ModelBrowserPreferencePage"
+ id="org.simantics.workbench.preferencePages.simantics.modelbrowser"
+ name="%PreferencePages.Simantics.ModelBrowser">
+ </page>
+ </extension>
+ <!--
+ <extension
+ point="org.eclipse.ui.commands">
+ <command
+ defaultHandler="org.simantics.workbench.AboutHandler"
+ description="Shows the about dialog"
+ id="org.simantics.workbench.about"
+ name="About">
+ </command>
+ </extension>
+ <extension
+ point="org.eclipse.ui.menus">
+ <menuContribution
+ locationURI="toolbar:org.eclipse.ui.main.toolbar">
+ <toolbar
+ id="org.simantics.workbench.toolbar">
+ <command
+ commandId="org.simantics.workbench.about"
+ icon="img/plugin.png"
+ id="about"
+ label="About"
+ style="push"
+ tooltip="Show The About Dialog">
+ </command>
+ </toolbar>
+ </menuContribution>
+ </extension>
+ -->
+ <extension point="org.eclipse.core.expressions.definitions">
+ <definition id="org.simantics.workbench.showDatabaseControls">
+ <systemTest
+ property="org.simantics.workbench.SHOW_DATABASE_CONTROLS"
+ value="true">
+ </systemTest>
+ </definition>
+ </extension>
+ <extension
+ point="org.eclipse.ui.menus">
+ <menuContribution
+ locationURI="menu:sFile?after=open.ext">
+ <command
+ commandId="org.eclipse.ui.file.restartWorkbench"
+ id="org.eclipse.ui.file.restartWorkbench"
+ style="push">
+ </command>
+ </menuContribution>
+ <!--<menuContribution locationURI="toolbar:org.eclipse.ui.trim.status">
+ <toolbar id="org.simantics.workbench.search.toolbar">
+ <control id="org.simantics.workbench.search" class="org.simantics.workbench.internal.contributions.search.SearchContribution" />
+ <separator name="additions" visible="false" />
+
+ <control
+ class="org.simantics.workbench.internal.contributions.GraphRequestStatusContribution"
+ id="org.simantics.workbench.db.monitor">
+ <visibleWhen
+ checkEnabled="false">
+ <reference definitionId="org.simantics.workbench.showDatabaseControls" />
+ </visibleWhen>
+ </control>
+ <control id="org.simantics.ui.dumpHeap" class="org.simantics.workbench.internal.contributions.DumpHeapContribution">
+ <visibleWhen
+ checkEnabled="false">
+ <reference definitionId="org.simantics.workbench.showDatabaseControls" />
+ </visibleWhen>
+ </control>
+ <control id="org.simantics.ui.dumpStackTraces" class="org.simantics.workbench.internal.contributions.DumpStackTracesContribution">
+ <visibleWhen
+ checkEnabled="false">
+ <reference definitionId="org.simantics.workbench.showDatabaseControls" />
+ </visibleWhen>
+ </control>
+ <control id="org.simantics.ui.flushQueries" class="org.simantics.workbench.internal.contributions.FlushRequestsContribution">
+ <visibleWhen
+ checkEnabled="false">
+ <reference definitionId="org.simantics.workbench.showDatabaseControls" />
+ </visibleWhen>
+ </control>
+ </toolbar>
+ </menuContribution>-->
+ </extension>
+ <extension
+ point="org.eclipse.ui.commands">
+ <category
+ description="Generic Simantics Workbench commands"
+ id="org.simantics.workbench.category"
+ name="Workbench Commands">
+ </category>
+ <command
+ categoryId="org.simantics.workbench.category"
+ defaultHandler="org.simantics.workbench.internal.contributions.search.FocusSearchTrim"
+ description="Focus Workbench search text box"
+ id="org.simantics.workbench.focusSearch"
+ name="Focus Workbench Search">
+ </command>
+ <command
+ categoryId="org.simantics.workbench.category"
+ description="Show resource properties"
+ id="org.simantics.workbench.properties"
+ name="Properties">
+ </command>
+ </extension>
+ <extension
+ point="org.eclipse.ui.views">
+ <view
+ allowMultiple="false"
+ category="org.eclipse.ui"
+ class="org.simantics.workbench.internal.contributions.search.BrowserView"
+ icon="platform:/plugin/com.famfamfam.silk/icons/magnifier.png"
+ id="org.simantics.workbench.search.browser"
+ name="Search"
+ restorable="false">
+ <description>
+ For browsing workbench search results.
+ </description>
+ </view>
+ </extension>
+ <extension
+ point="org.eclipse.ui.handlers">
+ <handler
+ class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:cut"
+ commandId="org.eclipse.ui.edit.cut">
+ <activeWhen>
+ <reference definitionId="org.simantics.workbench.search.active" />
+ </activeWhen>
+ </handler>
+ <handler
+ class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:copy"
+ commandId="org.eclipse.ui.edit.copy">
+ <activeWhen>
+ <reference definitionId="org.simantics.workbench.search.active" />
+ </activeWhen>
+ </handler>
+ <handler
+ class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:paste"
+ commandId="org.eclipse.ui.edit.paste">
+ <activeWhen>
+ <reference definitionId="org.simantics.workbench.search.active" />
+ </activeWhen>
+ </handler>
+ <handler
+ class="org.eclipse.ui.internal.handlers.SelectAllHandler"
+ commandId="org.eclipse.ui.edit.selectAll">
+ <activeWhen>
+ <reference definitionId="org.simantics.workbench.search.active" />
+ </activeWhen>
+ </handler>
+ </extension>
+ <extension
+ point="org.eclipse.core.expressions.definitions">
+ <definition
+ id="org.simantics.workbench.search.active">
+ <with variable="activeFocusControlId">
+ <equals value="org.simantics.workbench.search.text"/>
+ </with>
+ </definition>
+ </extension>
+ <extension
+ point="org.eclipse.ui.services">
+ <serviceFactory
+ factoryClass="org.simantics.workbench.internal.contributions.search.SearchServiceFactory">
+ <service
+ serviceClass="org.simantics.workbench.search.ISearchService"></service>
+ </serviceFactory>
+ </extension>
+ <extension
+ id="org.simantics.workbench.fragment"
+ point="org.eclipse.e4.workbench.model">
+ <fragment
+ uri="fragment.e4xmi">
+ </fragment>
+ </extension>
+</plugin>