<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
Copyright (c) 2006, 2015 THALES GLOBAL SERVICES. | |
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: | |
Thales - initial API and implementation | |
--> | |
<?eclipse version="3.4"?> | |
<plugin> | |
<extension | |
point="org.eclipse.ui.commands"> | |
<command | |
defaultHandler="org.eclipse.amalgam.explorer.contextual.sirius.ui.handlers.OpenDiagramHandler" | |
id="org.eclipse.amalgam.explorer.contextual.sirius.ui.command.openRepresentationCommand" | |
name="%openRepresentationAction"> | |
</command> | |
</extension> | |
<extension | |
point="org.eclipse.ui.viewActions"> | |
<viewContribution | |
id="org.eclipse.amalgam.explorer.contextual.sirius.ui.viewerContribution.showHideDiagramAndTable" | |
targetID="org.eclipse.amalgam.explorer.contextual.view.ExplorerContextualID"> | |
<action | |
class="org.eclipse.amalgam.explorer.contextual.sirius.ui.actions.ShowHideSiriusRepresentations" | |
icon="platform:/plugin/org.eclipse.sirius.common.ui/icons/LinkToSirius.gif" | |
id="org.eclipse.amalgam.explorer.contextual.sirius.ui.actions.ShowHideSiriusRepresentations" | |
label="%showSiriusRepresentationAction" | |
state="true" | |
style="toggle" | |
toolbarPath="additions" | |
tooltip="%showSiriusRepresentationAction"> | |
</action> | |
</viewContribution> | |
</extension> | |
<extension | |
point="org.eclipse.ui.menus"> | |
<menuContribution | |
allPopups="false" | |
locationURI="popup:org.eclipse.amalgam.explorer.contextual.view.ExplorerContextualID?after=additions"> | |
<command | |
commandId="org.eclipse.amalgam.explorer.contextual.sirius.ui.command.openRepresentationCommand" | |
icon="platform:/plugin/org.eclipse.sirius.common.ui/icons/LinkToSirius.gif" | |
id="org.eclipse.amalgam.explorer.contextual.sirius.ui.menu.openRepresentation" | |
style="push"> | |
<visibleWhen | |
checkEnabled="false"> | |
<with | |
variable="activeMenuSelection"> | |
<and> | |
<iterate> | |
<instanceof | |
value="org.eclipse.sirius.viewpoint.DRepresentation"> | |
</instanceof> | |
</iterate> | |
<count | |
value="1"> | |
</count> | |
</and> | |
</with> | |
</visibleWhen> | |
</command> | |
</menuContribution> | |
</extension> | |
<extension | |
point="org.eclipse.amalgam.explorer.contextual.FocusInEditor"> | |
<focusManager | |
class="org.eclipse.amalgam.explorer.contextual.sirius.ui.focus.FocusInDiagramEditor"> | |
</focusManager> | |
<focusManager | |
class="org.eclipse.amalgam.explorer.contextual.sirius.ui.focus.FocusInTableEditor"> | |
</focusManager> | |
</extension> | |
</plugin> |