-<?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