| <?xml version="1.0" encoding="UTF-8"?> |
| <?eclipse version="3.4"?> |
| <!-- |
| Copyright (c) 2016 Chalmers | University of Gothenburg, rt-labs and others. |
| 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: |
| Chalmers | University of Gothenburg and rt-labs - initial API and implementation and/or initial documentation |
| --> |
| |
| <plugin> |
| <extension |
| point="org.eclipse.ui.views"> |
| <category |
| id="org.eclipse.capra.ui.views" |
| name="Capra Views"> |
| </category> |
| <view |
| category="org.eclipse.capra.ui.views" |
| class="org.eclipse.capra.ui.office.views.OfficeView" |
| icon="icons/selectionView.png" |
| id="org.eclipse.capra.ui.views.OfficeView" |
| name="Office Selection View"> |
| </view> |
| </extension> |
| <extension |
| point="org.eclipse.ui.commands"> |
| <command |
| id="org.eclipse.capra.ui.office.clearselection" |
| name="Clear Selection"> |
| </command> |
| <command |
| id="org.eclipse.capra.ui.office.showdetails" |
| name="Show Details"> |
| </command> |
| <command |
| id="org.eclipse.capra.ui.office.openfile" |
| name="Open File"> |
| </command> |
| <command |
| id="org.eclipse.capra.ui.office.selectsheet" |
| name="Select Sheet"> |
| </command> |
| <command |
| id="org.eclipse.capra.ui.office.setcharactercount" |
| name="Character Count"> |
| </command> |
| </extension> |
| <extension |
| point="org.eclipse.ui.handlers"> |
| <handler |
| class="org.eclipse.capra.ui.office.handlers.ClearSelectionHandler" |
| commandId="org.eclipse.capra.ui.office.clearselection"> |
| </handler> |
| <handler |
| class="org.eclipse.capra.ui.office.handlers.ShowObjectDetailsHandler" |
| commandId="org.eclipse.capra.ui.office.showdetails"> |
| </handler> |
| <handler |
| class="org.eclipse.capra.ui.office.handlers.OpenFileHandler" |
| commandId="org.eclipse.capra.ui.office.openfile"> |
| </handler> |
| <handler |
| class="org.eclipse.capra.ui.office.handlers.SelectSheetHandler" |
| commandId="org.eclipse.capra.ui.office.selectsheet"> |
| </handler> |
| </extension> |
| <extension |
| point="org.eclipse.core.expressions.propertyTesters"> |
| <propertyTester |
| class="org.eclipse.capra.ui.office.utils.OfficePropertyTester" |
| id="org.eclipse.capra.ui.office.utils.OfficePropertyTester" |
| namespace="org.eclipse.capra.ui.office.utils" |
| properties="isViewEmpty, isExcelObject" |
| type="java.lang.Object"> |
| </propertyTester> |
| </extension> |
| <extension |
| point="org.eclipse.ui.menus"> |
| <menuContribution |
| locationURI="menu:org.eclipse.capra.ui.views.OfficeView?after=additions"> |
| <command |
| commandId="org.eclipse.capra.ui.office.openfile" |
| label="Open File" |
| style="push" |
| tooltip="Triggers the file selection dialog"> |
| </command> |
| <command |
| commandId="org.eclipse.capra.ui.office.selectsheet" |
| label="Select Sheet" |
| style="push" |
| tooltip="Select which sheet in the Excel workbook to display"> |
| <visibleWhen> |
| <test |
| forcePluginActivation="true" |
| property="org.eclipse.capra.ui.office.utils.isExcelObject"> |
| </test> |
| </visibleWhen> |
| </command> |
| <command |
| commandId="org.eclipse.capra.ui.office.clearselection" |
| label="Clear Selection" |
| style="push" |
| tooltip="Clears the current selection of elements"> |
| <visibleWhen> |
| <test |
| forcePluginActivation="true" |
| property="org.eclipse.capra.ui.office.utils.isViewEmpty"> |
| </test> |
| </visibleWhen> |
| </command> |
| <menu |
| label="Options"> |
| <command |
| commandId="org.eclipse.capra.ui.office.setcharactercount" |
| label="Character Count" |
| style="push" |
| tooltip="Set number of characters that are shown per line"> |
| </command> |
| </menu> |
| </menuContribution> |
| <menuContribution |
| locationURI="popup:net.sourceforge.plantuml.eclipse.views.PlantUmlView?after=additions"> |
| <menu |
| label="Capra" |
| id="org.eclipse.capra.ui.contextsubmenu"> |
| <command |
| commandId="org.eclipse.capra.ui.office.showdetails" |
| label="Show Details" |
| style="push" |
| tooltip="Shows the details of the selected row"> |
| <visibleWhen> |
| <iterate ifEmpty="false"> |
| <instanceof value="org.eclipse.capra.ui.office.objects.CapraOfficeObject"/> |
| </iterate> |
| </visibleWhen> |
| </command> |
| </menu> |
| </menuContribution> |
| </extension> |
| <extension |
| point="org.eclipse.capra.ui.transfers"> |
| <transfer |
| class="org.eclipse.capra.ui.office.utils.OfficeTransferType"> |
| </transfer> |
| </extension> |
| </plugin> |