Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSalome Maro2019-08-08 14:55:28 +0000
committerSalome Maro2019-08-09 08:37:10 +0000
commitc4ed9cd2bc1bbb40b10911a949e2c2fde4d49563 (patch)
treeccb46e6d71b826696ab7ee4f19103b819888a0d7
parentf0ce7b7dd65571786627b727706ded111d507513 (diff)
downloadorg.eclipse.capra-c4ed9cd2bc1bbb40b10911a949e2c2fde4d49563.tar.gz
org.eclipse.capra-c4ed9cd2bc1bbb40b10911a949e2c2fde4d49563.tar.xz
org.eclipse.capra-c4ed9cd2bc1bbb40b10911a949e2c2fde4d49563.zip
Ensured key bindings are only active in the selection view
At the moment the key bindings for deleting items from the selection view are active for all windows including all text editors. This commit fixes this bug by making sure that the bindings are only enabled for the selection view. Change-Id: Ic8cdc98571901cc7d4371c2cbc829b8fa3c52d1e
-rw-r--r--bundles/org.eclipse.capra.ui/plugin.xml322
1 files changed, 139 insertions, 183 deletions
diff --git a/bundles/org.eclipse.capra.ui/plugin.xml b/bundles/org.eclipse.capra.ui/plugin.xml
index 8910dc52..cb0e45ff 100644
--- a/bundles/org.eclipse.capra.ui/plugin.xml
+++ b/bundles/org.eclipse.capra.ui/plugin.xml
@@ -15,188 +15,144 @@
-->
<plugin>
- <extension-point id="org.eclipse.capra.ui.transfers" name="%extension-point.name" schema="schema/org.eclipse.capra.ui.transfers.exsd"/>
- <extension
- point="org.eclipse.ui.commands">
- <command
- categoryId="org.eclipse.capra.ui.commands.category"
- id="org.eclipse.capra.ui.commands.createTrace"
- name="%command.createtrace.name">
- </command>
- <command
- categoryId="org.eclipse.capra.ui.commands.category"
- helpContextId="Remove currently selected item from the list of selection"
- id="org.eclipse.capra.ui.commands.removefromselection"
- name="%command.removefromselection.name">
- </command>
- <command
- categoryId="org.eclipse.capra.ui.commands.category"
- id="org.eclipse.capra.ui.commands.clearselection"
- name="%command.clearselection.name">
- </command>
- <command
- categoryId="org.eclipse.capra.ui.commands.category"
- id="org.eclipse.capra.ui.commands.addtoselection"
- name="%command.addtoselection.name">
- </command>
- <category
- id="org.eclipse.capra.ui.commands.category"
- name="%command.category">
- </category>
- </extension>
- <extension
- point="org.eclipse.ui.handlers">
- <handler
- class="org.eclipse.capra.ui.handlers.TraceCreationHandler"
- commandId="org.eclipse.capra.ui.commands.createTrace">
- </handler>
- <handler
- class="org.eclipse.capra.ui.handlers.selection.RemoveSelectionHandler"
- commandId="org.eclipse.capra.ui.commands.removefromselection">
- </handler>
- <handler
- class="org.eclipse.capra.ui.handlers.selection.ClearSelectionHandler"
- commandId="org.eclipse.capra.ui.commands.clearselection">
- </handler>
- <handler
- class="org.eclipse.capra.ui.handlers.selection.AddtoSelection"
- commandId="org.eclipse.capra.ui.commands.addtoselection">
- </handler>
- </extension>
- <extension
- point="org.eclipse.ui.menus">
- <menuContribution
- locationURI="popup:org.eclipse.capra.ui.views.SelectionView?after=additions">
- <separator
- name="org.eclipse.capra.tracecreation.separator2"
- visible="true">
- </separator>
- <command
- commandId="org.eclipse.capra.ui.commands.createTrace"
- id="org.eclipse.capra.tracecreation.menus.createTrace"
- label="%command.createtrace.label"
- mnemonic="%command.createtrace.mnemonic"
- tooltip="%command.createtrace.tooltip">
- </command>
- <command
- commandId="org.eclipse.capra.ui.commands.removefromselection"
- label="%command.removefromselection.label"
- style="push"
- tooltip="%command.removefromselection.tooltip">
- </command>
- <command
- commandId="org.eclipse.capra.ui.commands.clearselection"
- label="%command.clearselection.label"
- style="push"
- tooltip="%command.clearselection.tooltip">
- </command>
- <separator
- name="org.eclipse.capra.generic.tracecreation.separator1"
- visible="true">
- </separator>
- </menuContribution>
- <menuContribution
- allPopups="false"
- locationURI="popup:org.eclipse.ui.popup.any?after=additions">
- <separator
- name="org.eclipse.capra.generic.separator2">
- </separator>
- <menu
- label="%menu.label"
- id="org.eclipse.capra.ui.contextsubmenu">
- <command
- commandId="org.eclipse.capra.ui.commands.addtoselection"
- label="%command.addtoselection.label"
- style="push"
- tooltip="%command.addtoselection.tooltip">
- </command>
- </menu>
- <separator
- name="org.eclipse.capra.generic.separator1">
- </separator>
- </menuContribution>
- <menuContribution
- allPopups="false"
- locationURI="toolbar:org.eclipse.capra.ui.views.SelectionView">
- <command
- commandId="org.eclipse.capra.ui.commands.createTrace"
- disabledIcon="platform:/plugin/org.eclipse.pde.ui/icons/dlcl16/add_att.png"
- icon="platform:/plugin/org.eclipse.ui/icons/full/obj16/add_obj.png"
- label="%command.createtrace.name"
- mnemonic="%command.createtrace.mnemonic"
- style="push"
- tooltip="%command.createtrace.tooltip">
- </command>
- <command
- commandId="org.eclipse.capra.ui.commands.clearselection"
- icon="platform:/plugin/org.eclipse.ui/icons/full/etool16/clear.png"
- label="%command.clearselection.name"
- style="push"
- tooltip="%command.clearselection.tooltip">
- </command>
- </menuContribution>
- </extension>
- <extension
- point="org.eclipse.ui.views">
- <category
- id="org.eclipse.capra.ui.views"
- name="%category.name">
- </category>
- <view
- category="org.eclipse.capra.ui.views"
- class="org.eclipse.capra.ui.views.SelectionView"
- icon="icons/selectionView.png"
- id="org.eclipse.capra.ui.views.SelectionView"
- name="%view.name">
- </view>
- </extension>
- <extension
- point="org.eclipse.ui.perspectives">
- <perspective
- class="org.eclipse.capra.ui.perspective.CapraPerspective"
- icon="icons/capra.png"
- id="org.eclipse.capra.generic.perspective.CapraPerspective"
- name="%perspective.name">
- </perspective>
- </extension>
- <extension
- point="org.eclipse.ui.preferencePages">
- <page
- class="org.eclipse.capra.ui.preferences.CapraPreferences"
- id="org.eclipse.capra.ui.preferences.CapraPreferences"
- name="%page.name">
- </page>
- </extension>
- <extension
- point="org.eclipse.ui.bindings">
- <key
- commandId="org.eclipse.capra.ui.commands.createTrace"
- schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
- sequence="%command.createtrace.mnemonic">
- </key>
- </extension>
- <extension
- point="org.eclipse.ui.bindings">
- <sequenceModifier
- find="DEL"
- replace="BS"
- platforms="cocoa"/>
- <key
- commandId="org.eclipse.capra.ui.commands.removefromselection"
- schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
- sequence="DEL">
- </key>
- </extension>
- <extension
- point="org.eclipse.ui.bindings">
- <sequenceModifier
- find="M2+DEL"
- replace="M2+BS"
- platforms="cocoa"/>
- <key
- commandId="org.eclipse.capra.ui.commands.clearselection"
- schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
- sequence="M2+DEL">
- </key>
+ <extension-point id="org.eclipse.capra.ui.transfers"
+ name="%extension-point.name" schema="schema/org.eclipse.capra.ui.transfers.exsd" />
+ <extension point="org.eclipse.ui.commands">
+ <command categoryId="org.eclipse.capra.ui.commands.category"
+ id="org.eclipse.capra.ui.commands.createTrace" name="%command.createtrace.name">
+ </command>
+ <command categoryId="org.eclipse.capra.ui.commands.category"
+ helpContextId="Remove currently selected item from the list of selection"
+ id="org.eclipse.capra.ui.commands.removefromselection" name="%command.removefromselection.name">
+ </command>
+ <command categoryId="org.eclipse.capra.ui.commands.category"
+ id="org.eclipse.capra.ui.commands.clearselection" name="%command.clearselection.name">
+ </command>
+ <command categoryId="org.eclipse.capra.ui.commands.category"
+ id="org.eclipse.capra.ui.commands.addtoselection" name="%command.addtoselection.name">
+ </command>
+ <category id="org.eclipse.capra.ui.commands.category" name="%command.category">
+ </category>
+ </extension>
+ <extension point="org.eclipse.ui.handlers">
+ <handler class="org.eclipse.capra.ui.handlers.TraceCreationHandler"
+ commandId="org.eclipse.capra.ui.commands.createTrace">
+ <enabledWhen>
+ <with variable="activePartId">
+ <equals value="org.eclipse.capra.ui.views.SelectionView">
+ </equals>
+ </with>
+ </enabledWhen>
+ </handler>
+ <handler
+ class="org.eclipse.capra.ui.handlers.selection.RemoveSelectionHandler"
+ commandId="org.eclipse.capra.ui.commands.removefromselection">
+ <enabledWhen>
+ <with variable="activePartId">
+ <equals value="org.eclipse.capra.ui.views.SelectionView">
+ </equals>
+ </with>
+ </enabledWhen>
+ </handler>
+ <handler
+ class="org.eclipse.capra.ui.handlers.selection.ClearSelectionHandler"
+ commandId="org.eclipse.capra.ui.commands.clearselection">
+ <enabledWhen>
+ <with variable="activePartId">
+ <equals value="org.eclipse.capra.ui.views.SelectionView">
+ </equals>
+ </with>
+ </enabledWhen>
+ </handler>
+ <handler class="org.eclipse.capra.ui.handlers.selection.AddtoSelection"
+ commandId="org.eclipse.capra.ui.commands.addtoselection">
+ </handler>
+ </extension>
+ <extension point="org.eclipse.ui.menus">
+ <menuContribution
+ locationURI="popup:org.eclipse.capra.ui.views.SelectionView?after=additions">
+ <separator name="org.eclipse.capra.tracecreation.separator2"
+ visible="true">
+ </separator>
+ <command commandId="org.eclipse.capra.ui.commands.createTrace"
+ id="org.eclipse.capra.tracecreation.menus.createTrace" label="%command.createtrace.label"
+ mnemonic="%command.createtrace.mnemonic" tooltip="%command.createtrace.tooltip">
+ </command>
+ <command commandId="org.eclipse.capra.ui.commands.removefromselection"
+ label="%command.removefromselection.label" style="push"
+ tooltip="%command.removefromselection.tooltip">
+ </command>
+ <command commandId="org.eclipse.capra.ui.commands.clearselection"
+ label="%command.clearselection.label" style="push"
+ tooltip="%command.clearselection.tooltip">
+ </command>
+ <separator name="org.eclipse.capra.generic.tracecreation.separator1"
+ visible="true">
+ </separator>
+ </menuContribution>
+ <menuContribution allPopups="false"
+ locationURI="popup:org.eclipse.ui.popup.any?after=additions">
+ <separator name="org.eclipse.capra.generic.separator2">
+ </separator>
+ <menu label="%menu.label" id="org.eclipse.capra.ui.contextsubmenu">
+ <command commandId="org.eclipse.capra.ui.commands.addtoselection"
+ label="%command.addtoselection.label" style="push"
+ tooltip="%command.addtoselection.tooltip">
+ </command>
+ </menu>
+ <separator name="org.eclipse.capra.generic.separator1">
+ </separator>
+ </menuContribution>
+ <menuContribution allPopups="false"
+ locationURI="toolbar:org.eclipse.capra.ui.views.SelectionView">
+ <command commandId="org.eclipse.capra.ui.commands.createTrace"
+ disabledIcon="platform:/plugin/org.eclipse.pde.ui/icons/dlcl16/add_att.png"
+ icon="platform:/plugin/org.eclipse.ui/icons/full/obj16/add_obj.png"
+ label="%command.createtrace.name" mnemonic="%command.createtrace.mnemonic"
+ style="push" tooltip="%command.createtrace.tooltip">
+ </command>
+ <command commandId="org.eclipse.capra.ui.commands.clearselection"
+ icon="platform:/plugin/org.eclipse.ui/icons/full/etool16/clear.png"
+ label="%command.clearselection.name" style="push"
+ tooltip="%command.clearselection.tooltip">
+ </command>
+ </menuContribution>
+ </extension>
+ <extension point="org.eclipse.ui.views">
+ <category id="org.eclipse.capra.ui.views" name="%category.name">
+ </category>
+ <view category="org.eclipse.capra.ui.views" class="org.eclipse.capra.ui.views.SelectionView"
+ icon="icons/selectionView.png" id="org.eclipse.capra.ui.views.SelectionView"
+ name="%view.name">
+ </view>
+ </extension>
+ <extension point="org.eclipse.ui.perspectives">
+ <perspective class="org.eclipse.capra.ui.perspective.CapraPerspective"
+ icon="icons/capra.png" id="org.eclipse.capra.generic.perspective.CapraPerspective"
+ name="%perspective.name">
+ </perspective>
+ </extension>
+ <extension point="org.eclipse.ui.preferencePages">
+ <page class="org.eclipse.capra.ui.preferences.CapraPreferences"
+ id="org.eclipse.capra.ui.preferences.CapraPreferences" name="%page.name">
+ </page>
+ </extension>
+ <extension point="org.eclipse.ui.bindings">
+ <key commandId="org.eclipse.capra.ui.commands.createTrace"
+ schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" sequence="%command.createtrace.mnemonic">
+ </key>
+ </extension>
+ <extension point="org.eclipse.ui.bindings">
+ <sequenceModifier find="DEL" replace="BS" platforms="cocoa" />
+ <key commandId="org.eclipse.capra.ui.commands.removefromselection"
+ schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" sequence="DEL">
+ </key>
+ </extension>
+ <extension point="org.eclipse.ui.bindings">
+ <sequenceModifier find="M2+DEL" replace="M2+BS"
+ platforms="cocoa" />
+ <key commandId="org.eclipse.capra.ui.commands.clearselection"
+ schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" sequence="M2+DEL">
+ </key>
</extension>
</plugin>

Back to the top