blob: 1db03e6a3353b967d4a995adc6b67c5ab4ad5934 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<!--
Copyright (c) 2014 Mia-Software.
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:
Gregoire Dupe (Mia-Software) - Bug 358914 - [Move to EMF Facet][Browser] Switch to EMF Facet
Thomas Cicognani (Soft-Maint) - Bug 442019 - Toolbar actions disappear when focus is not on the browser
Thomas Cicognani (Soft-Maint) - Bug 442257 - New toolbar actions to (des)activate customizations
-->
<plugin>
<extension point="org.eclipse.ui.editors">
<editor
class="org.eclipse.modisco.infra.browser.editor.ui.internal.editor.TreeEditor"
default="false"
id="org.eclipse.modisco.infra.browser.editor.ui.TreeEditor"
name="%TreeResourceEditor">
<contentTypeBinding
contentTypeId="org.eclipse.emf.ecore.xmi">
</contentTypeBinding>
</editor>
</extension>
<extension
point="org.eclipse.emf.facet.util.emf.core.modelViewer">
<resourceViewer
class="org.eclipse.modisco.infra.browser.editor.ui.internal.opener.ResourceBrowserOpener">
</resourceViewer>
</extension>
<extension
point="org.eclipse.ui.menus">
<menuContribution
allPopups="false"
locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
<toolbar
id="org.eclipse.modisco.infra.browser.editor.ui.toolbar1"
label="%modiscoBrowserToolbarLabel">
<command
commandId="org.eclipse.emf.facet.efacet.ui.loadFacet"
id="org.eclipse.modisco.util.emffacet.menu.ui.loadFacet"
label="%LoadUnloadFacets"
style="push">
<visibleWhen
checkEnabled="true">
<with
variable="activeEditor">
<instanceof
value="org.eclipse.modisco.infra.browser.editor.ui.internal.editor.TreeEditor">
</instanceof>
</with>
</visibleWhen>
</command>
<command
commandId="org.eclipse.emf.facet.ui.loadCustomization"
id="org.eclipse.modisco.util.emffacet.ui.menu.loadCustomization"
label="%LoadUnloadCustoms"
style="pulldown">
<visibleWhen
checkEnabled="true">
<with
variable="activeEditor">
<instanceof
value="org.eclipse.modisco.infra.browser.editor.ui.internal.editor.TreeEditor">
</instanceof>
</with>
</visibleWhen>
</command>
<command
commandId="org.eclipse.modisco.infra.browser.editor.ui.command.linkscount"
label="%ShowLinksLabel"
style="toggle">
<visibleWhen
checkEnabled="true">
<with
variable="activeEditor">
<instanceof
value="org.eclipse.modisco.infra.browser.editor.ui.internal.editor.TreeEditor">
</instanceof>
</with>
</visibleWhen>
</command>
</toolbar>
</menuContribution>
<menuContribution
allPopups="false"
locationURI="menu:org.eclipse.modisco.util.emffacet.ui.menu.loadCustomization">
<command
commandId="org.eclipse.modisco.infra.browser.editor.ui.command.linkscount"
label="%ShowLinksLabel"
style="toggle">
</command>
</menuContribution>
</extension>
<extension
point="org.eclipse.ui.commands">
<command
defaultHandler="org.eclipse.modisco.infra.browser.editor.ui.internal.handlers.LinksCountHandler"
id="org.eclipse.modisco.infra.browser.editor.ui.command.linkscount"
name="%ShowLinksLabel">
<state
class="org.eclipse.modisco.infra.browser.editor.ui.internal.handlers.LinksCountState"
id="org.eclipse.ui.commands.toggleState">
</state>
</command>
</extension>
</plugin>