Skip to content

Commit

Permalink
Clean up declared views
Browse files Browse the repository at this point in the history
* remove duplicate view category definition
* add view shortcuts to the Java perspectives
* register a short cut combination for the view, following the
established pattern Alt-Shift-Q of other views
  • Loading branch information
Bananeweizen committed Dec 11, 2023
1 parent 29e9fdd commit 1c8b955
Showing 1 changed file with 41 additions and 13 deletions.
54 changes: 41 additions & 13 deletions org.moreunit.plugin/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,26 @@
contextId="org.eclipse.jdt.ui.javaEditorScope"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
</key>
</extension>
<key
sequence="M2+M3+Q M"
commandId="org.eclipse.ui.views.showView"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
<parameter
id="org.eclipse.ui.views.showView.viewId"
value="org.moreunit.missingtestmethodview">
</parameter>
</key>
<key
platform="carbon"
sequence="M1+M3+Q M"
commandId="org.eclipse.ui.views.showView"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
<parameter
id="org.eclipse.ui.views.showView.viewId"
value="org.moreunit.missingtestmethodview">
</parameter>
</key>
</extension>

<extension point="org.eclipse.ui.menus">
<menuContribution
Expand Down Expand Up @@ -504,18 +523,6 @@
class="org.moreunit.ui.MissingTestmethodViewPart"
icon="icons/moreunitLogo.gif"
category="org.moreunit.ui"/>
</extension>
<!--
<extension point="org.eclipse.ui.views">
<category id="org.moreunit.ui"
name="MoreUnit"/>
<view id="org.moreunit.missingtestclassview"
name="Missing Test Classes"
class="org.moreunit.ui.MissingTestclassViewPart"/>
</extension>
-->
<extension point="org.eclipse.ui.views">
<category id="org.moreunit.ui" name="MoreUnit"/>
<view id="org.moreunit.missingtestsview"
class="org.moreunit.ui.MissingTestsViewPart"
icon="icons/moreunitLogo.gif"
Expand All @@ -532,4 +539,25 @@
<jumper class="org.moreunit.handler.Jumper" />
</language>
</extension>
<extension
point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension
targetID="org.eclipse.jdt.ui.JavaPerspective">
<viewShortcut
id="org.moreunit.missingtestmethodview">
</viewShortcut>
<viewShortcut
id="org.moreunit.missingtestsview">
</viewShortcut>
</perspectiveExtension>
<perspectiveExtension
targetID="org.eclipse.jdt.ui.JavaBrowsingPerspective">
<viewShortcut
id="org.moreunit.missingtestmethodview">
</viewShortcut>
<viewShortcut
id="org.moreunit.missingtestsview">
</viewShortcut>
</perspectiveExtension>
</extension>
</plugin>

0 comments on commit 1c8b955

Please sign in to comment.