Skip to content

Commit

Permalink
567758: Add Close to the left and right option to tabs
Browse files Browse the repository at this point in the history
More keyboard shortcuts.

Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=567758

Change-Id: Ie982b3f482e88c80bd81e83c7bde1a17e19edc6b
  • Loading branch information
ajohnson1 committed Oct 10, 2020
1 parent 7227b3d commit c457693
Show file tree
Hide file tree
Showing 6 changed files with 185 additions and 72 deletions.
62 changes: 36 additions & 26 deletions plugins/org.eclipse.mat.ui.help/reference/tipsandtricks.dita
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,16 @@
<strow>
<stentry>Shortcuts</stentry>
<stentry>
<p>Ctrl-Q - Opens the Query Browser</p>
<p>Ctrl-H - Opens the history of executed queries.</p>
<p>Alt-I - Opens a popup menu that explains the icons</p>
<p><uicontrol>Ctrl-Q</uicontrol> - Opens the Query Browser.</p>
<p><uicontrol>Ctrl-H</uicontrol> - Opens the history of executed queries.</p>
<p><uicontrol>Ctrl-F8</uicontrol> - Next tab.</p>
<p><uicontrol>Ctrl-Shift-F8</uicontrol> - Previous tab.</p>
<p><uicontrol>Shift-F10</uicontrol> - Context menu for results of queries.</p>
<p><uicontrol>Ctrl-F10</uicontrol> - Context menu for editor tabs - to close and rearrange.</p>
<p><uicontrol>Ctrl-Shift-P</uicontrol> - Reset perspective.</p>
<p><uicontrol>Alt-I</uicontrol> - Opens a pop-up menu that explains the icons.</p>
<p><uicontrol>Ctrl-Shift-L</uicontrol> - Opens a pop-up menu that explains the keyboard shortcuts.</p>

</stentry>
</strow>
<strow>
Expand Down Expand Up @@ -73,12 +80,12 @@
For numeric columns a numeric comparison is used as a filter.
Use one of the following:
<ul>
<li>Intervals: 1000..10000 1%..10%</li>
<li>Upper Boundary: &lt;=10000 &lt;1%</li>
<li>Lower Boundary: &gt;1000 &gt;=5%</li>
<li>Equality: 1000 5% NaN &#8734;</li>
<li>Inequality: !=1000 &lt;&gt;5% !=NaN<note type="restriction">Experimental</note></li>
<li>Complement of interval: !1000..10000 !1%..10% (all values including NaN except those in the interval [logical negation of range])<note type="restriction">Experimental</note></li>
<li>Intervals: <userinput>1000..10000</userinput> <userinput>1%..10%</userinput></li>
<li>Upper Boundary: <userinput>&lt;=10000</userinput> <userinput>&lt;1%</userinput></li>
<li>Lower Boundary: <userinput>&gt;1000</userinput> <userinput>&gt;=5%</userinput></li>
<li>Equality: <userinput>1000</userinput> <userinput>5%</userinput> <userinput>NaN</userinput> <userinput>&#8734;</userinput></li>
<li>Inequality: <userinput>!=1000 &lt;&gt;5%</userinput> <userinput>!=NaN</userinput><note type="restriction">Experimental</note></li>
<li>Complement of interval: <userinput>!1000..10000</userinput> <userinput>!1%..10%</userinput> (all values including NaN except those in the interval [logical negation of range])<note type="restriction">Experimental</note></li>
<li>Complement of interval: U\1000..10000 U\1%..10% (all values excluding NaN except those in the interval [universal set difference from range])<note type="restriction">Experimental</note></li>
</ul>
</p>
Expand Down Expand Up @@ -121,23 +128,23 @@
<stentry>
Notes View recognizes and highlights object addresses. Activating
the hyperlink brings up a context menu which contains actions for
this particular object. Activate the hyperlink using the control key
and a mouse click (or command + click).
this particular object. Activate the hyperlink using the <uicontrol>control</uicontrol> key
and a mouse click (or <uicontrol>command</uicontrol> + click).
<image href="../mimes/m4d2fff8d.png" align="left" placement="break" />
</stentry>
</strow>
<strow>
<stentry>Undo/redo in Notes View, OQL Pane</stentry>
<stentry>
There is undo/redo using Ctrl-Z / Ctrl-Y in the Notes View and
There is undo/redo using <uicontrol>Ctrl-Z</uicontrol> / <uicontrol>Ctrl-Y</uicontrol> in the Notes View and
the OQL Pane. The navigator pane can also be used to retrieve
previous OQL statements.
</stentry>
</strow>
<strow>
<stentry>Copy To Clipboard</stentry>
<stentry>
Use Ctrl-C to copy the selection to the clipboard. The data will
Use <uicontrol>Ctrl-C</uicontrol> to copy the selection to the clipboard. The data will
keep its structure:
<image href="../mimes/1af34c1.png" align="left" placement="break" />
</stentry>
Expand All @@ -149,10 +156,10 @@
manage the history of opened heap dumps:
<image href="../mimes/691a2594.png" align="left" placement="break" />
<p>
<cmdname>Delete Heap Dump</cmdname>
<uicontrol>Delete Heap Dump</uicontrol>>
action removes the heap dump from the history, but not from the
file system. To find a heap dump in the file system use
<cmdname>Explore in File System</cmdname>
<uicontrol>Explore in File System</uicontrol>>
context menu action
</p>
</stentry>
Expand All @@ -163,12 +170,15 @@
Right click on the Heap Editor tab will open a context menu to
manage the tabs. It might be very helpful when many tabs are open.
<image href="../mimes/7df38219.png" align="left" placement="break" />
Memory Analyzer 1.11 adds options to
Memory Analyzer 1.11 has the menu options
<ul>
<li>Close Tabs to the Left</li>
<li>Close Tabs to the Right</li>
<li>Move Tab Left</li>
<li>Move Tab Right</li>
<li><uicontrol>Close</uicontrol></li>
<li><uicontrol>Close Others</uicontrol></li>
<li><uicontrol>Close Tabs to the Left</uicontrol></li>
<li><uicontrol>Close Tabs to the Right</uicontrol></li>
<li><uicontrol>Move Tab <shortcut>L</shortcut>eft</uicontrol></li>
<li><uicontrol>Move Tab <shortcut>R</shortcut>ight</uicontrol></li>
<li><uicontrol>Close All</uicontrol></li>
</ul>
To use keyboard navigation, perform the following:
<ol>
Expand All @@ -180,11 +190,11 @@
<li><userinput><cmdname>right-arrow</cmdname></userinput></li>
</ul>
to select a tab</li>
<li>Use <userinput><cmdname>shift-F10</cmdname></userinput> to bring up the context menu</li>
<li>Use <userinput><cmdname>Ctrl-F10</cmdname></userinput> to bring up the context menu</li>
<li>Use
<ul>
<li><userinput><cmdname>L</cmdname></userinput></li>
<li><userinput><cmdname>R</cmdname></userinput></li>
<li><uicontrol><shortcut>L</shortcut></uicontrol></li>
<li><uicontrol><shortcut>R</shortcut></uicontrol></li>
</ul>
to move the tab.</li>
</ol>
Expand Down Expand Up @@ -243,7 +253,7 @@
<stentry>
The totals row now represents all the additional entries in a tree or table.
If the totals row is selected then the context menu will operate on all the unshown
entries in the tree or table. If all the rows are selected, for example using Ctrl-A,
entries in the tree or table. If all the rows are selected, for example using <uicontrol>Ctrl-A</uicontrol>,
then the displayed rows are selected and the totals row is selected and then
the context menu will operate on all the entries in the tree and table.
Filtering operates as normal, and the rows excluded by the filter are not part of
Expand All @@ -257,7 +267,7 @@
The Object Query Language (OQL) pane has syntax highlighting for OQL
keywords. It also offers suggestions for class names for the
<keyword>SELECT</keyword> <keyword>FROM</keyword> clause, both simple class names and regular expressions.
The class name list is brought up on typing a dot '.'. Ctrl-space
The class name list is brought up on typing a dot '.'. <uicontrol>Ctrl-space</uicontrol>
can also be used to bring up the list.
<image href="../mimes/oql_completion1.png" align="left" placement="break" />
The regular expression list appears on typing a double-quote '"'.
Expand All @@ -274,7 +284,7 @@
</alt>
</image>
Suggestions are then provided in the <keyword>SELECT</keyword> or
<keyword>WHERE</keyword> clauses on typing '.' or '@' or Ctrl-space.
<keyword>WHERE</keyword> clauses on typing '<userinput>.</userinput>' or '<userinput>@</userinput>' or <uicontrol>Ctrl-space</uicontrol>.
<image href="../mimes/oql_completion4.png" align="left" placement="break">
</image>
Attributes begin with '@' and the autocompletion is filtered based on
Expand Down
71 changes: 45 additions & 26 deletions plugins/org.eclipse.mat.ui.help/reference/tipsandtricks.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,25 @@ <h1 class="title topictitle1">Tips and Tricks</h1>
<td valign="top" headers="d10431e33" class="stentry">Shortcuts</td>

<td valign="top" headers="d10431e36" class="stentry">
<p class="p">Ctrl-Q - Opens the Query Browser</p>
<p class="p"><span class="ph uicontrol">Ctrl-Q</span> - Opens the Query Browser.</p>

<p class="p">Ctrl-H - Opens the history of executed queries.</p>
<p class="p"><span class="ph uicontrol">Ctrl-H</span> - Opens the history of executed queries.</p>

<p class="p">Alt-I - Opens a popup menu that explains the icons</p>
<p class="p"><span class="ph uicontrol">Ctrl-F8</span> - Next tab.</p>

<p class="p"><span class="ph uicontrol">Ctrl-Shift-F8</span> - Previous tab.</p>

<p class="p"><span class="ph uicontrol">Shift-F10</span> - Context menu for results of queries.</p>

<p class="p"><span class="ph uicontrol">Ctrl-F10</span> - Context menu for editor tabs - to close and rearrange.</p>

<p class="p"><span class="ph uicontrol">Ctrl-Shift-P</span> - Reset perspective.</p>

<p class="p"><span class="ph uicontrol">Alt-I</span> - Opens a pop-up menu that explains the icons.</p>

<p class="p"><span class="ph uicontrol">Ctrl-Shift-L</span> - Opens a pop-up menu that explains the keyboard shortcuts.</p>


</td>

</tr>
Expand Down Expand Up @@ -77,18 +90,18 @@ <h1 class="title topictitle1">Tips and Tricks</h1>
For numeric columns a numeric comparison is used as a filter.
Use one of the following:
<ul class="ul">
<li class="li">Intervals: 1000..10000 1%..10%</li>
<li class="li">Intervals: <kbd class="ph userinput">1000..10000</kbd> <kbd class="ph userinput">1%..10%</kbd></li>

<li class="li">Upper Boundary: &lt;=10000 &lt;1%</li>
<li class="li">Upper Boundary: <kbd class="ph userinput">&lt;=10000</kbd> <kbd class="ph userinput">&lt;1%</kbd></li>

<li class="li">Lower Boundary: &gt;1000 &gt;=5%</li>
<li class="li">Lower Boundary: <kbd class="ph userinput">&gt;1000</kbd> <kbd class="ph userinput">&gt;=5%</kbd></li>

<li class="li">Equality: 1000 5% NaN</li>
<li class="li">Equality: <kbd class="ph userinput">1000</kbd> <kbd class="ph userinput">5%</kbd> <kbd class="ph userinput">NaN</kbd> <kbd class="ph userinput"></kbd></li>

<li class="li">Inequality: !=1000 &lt;&gt;5% !=NaN<div class="note restriction"><span class="restrictiontitle">Restriction:</span> Experimental</div>
<li class="li">Inequality: <kbd class="ph userinput">!=1000 &lt;&gt;5%</kbd> <kbd class="ph userinput">!=NaN</kbd><div class="note restriction"><span class="restrictiontitle">Restriction:</span> Experimental</div>
</li>

<li class="li">Complement of interval: !1000..10000 !1%..10% (all values including NaN except those in the interval [logical negation of range])<div class="note restriction"><span class="restrictiontitle">Restriction:</span> Experimental</div>
<li class="li">Complement of interval: <kbd class="ph userinput">!1000..10000</kbd> <kbd class="ph userinput">!1%..10%</kbd> (all values including NaN except those in the interval [logical negation of range])<div class="note restriction"><span class="restrictiontitle">Restriction:</span> Experimental</div>
</li>

<li class="li">Complement of interval: U\1000..10000 U\1%..10% (all values excluding NaN except those in the interval [universal set difference from range])<div class="note restriction"><span class="restrictiontitle">Restriction:</span> Experimental</div>
Expand Down Expand Up @@ -152,8 +165,8 @@ <h1 class="title topictitle1">Tips and Tricks</h1>
<td valign="top" headers="d10431e36" class="stentry">
Notes View recognizes and highlights object addresses. Activating
the hyperlink brings up a context menu which contains actions for
this particular object. Activate the hyperlink using the control key
and a mouse click (or command + click).
this particular object. Activate the hyperlink using the <span class="ph uicontrol">control</span> key
and a mouse click (or <span class="ph uicontrol">command</span> + click).
<br/><div class="imageleft"><img class="image imageleft" src="../mimes/m4d2fff8d.png"/></div><br/>
</td>

Expand All @@ -162,7 +175,7 @@ <h1 class="title topictitle1">Tips and Tricks</h1>
<td valign="top" headers="d10431e33" class="stentry">Undo/redo in Notes View, OQL Pane</td>

<td valign="top" headers="d10431e36" class="stentry">
There is undo/redo using Ctrl-Z / Ctrl-Y in the Notes View and
There is undo/redo using <span class="ph uicontrol">Ctrl-Z</span> / <span class="ph uicontrol">Ctrl-Y</span> in the Notes View and
the OQL Pane. The navigator pane can also be used to retrieve
previous OQL statements.
</td>
Expand All @@ -172,7 +185,7 @@ <h1 class="title topictitle1">Tips and Tricks</h1>
<td valign="top" headers="d10431e33" class="stentry">Copy To Clipboard</td>

<td valign="top" headers="d10431e36" class="stentry">
Use Ctrl-C to copy the selection to the clipboard. The data will
Use <span class="ph uicontrol">Ctrl-C</span> to copy the selection to the clipboard. The data will
keep its structure:
<br/><div class="imageleft"><img class="image imageleft" src="../mimes/1af34c1.png"/></div><br/>
</td>
Expand All @@ -186,10 +199,10 @@ <h1 class="title topictitle1">Tips and Tricks</h1>
manage the history of opened heap dumps:
<br/><div class="imageleft"><img class="image imageleft" src="../mimes/691a2594.png"/></div><br/>
<p class="p">
<span class="keyword cmdname">Delete Heap Dump</span>
<span class="ph uicontrol">Delete Heap Dump</span>&gt;
action removes the heap dump from the history, but not from the
file system. To find a heap dump in the file system use
<span class="keyword cmdname">Explore in File System</span>
<span class="ph uicontrol">Explore in File System</span>&gt;
context menu action
</p>

Expand All @@ -203,15 +216,21 @@ <h1 class="title topictitle1">Tips and Tricks</h1>
Right click on the Heap Editor tab will open a context menu to
manage the tabs. It might be very helpful when many tabs are open.
<br/><div class="imageleft"><img class="image imageleft" src="../mimes/7df38219.png"/></div><br/>
Memory Analyzer 1.11 adds options to
Memory Analyzer 1.11 has the menu options
<ul class="ul">
<li class="li">Close Tabs to the Left</li>
<li class="li"><span class="ph uicontrol">Close</span></li>

<li class="li"><span class="ph uicontrol">Close Others</span></li>

<li class="li"><span class="ph uicontrol">Close Tabs to the Left</span></li>

<li class="li"><span class="ph uicontrol">Close Tabs to the Right</span></li>

<li class="li">Close Tabs to the Right</li>
<li class="li"><span class="ph uicontrol">Move Tab <span class="keyword shortcut">L</span>eft</span></li>

<li class="li">Move Tab Left</li>
<li class="li"><span class="ph uicontrol">Move Tab <span class="keyword shortcut">R</span>ight</span></li>

<li class="li">Move Tab Right</li>
<li class="li"><span class="ph uicontrol">Close All</span></li>

</ul>

Expand All @@ -230,13 +249,13 @@ <h1 class="title topictitle1">Tips and Tricks</h1>

to select a tab</li>

<li class="li">Use <kbd class="ph userinput"><span class="keyword cmdname">shift-F10</span></kbd> to bring up the context menu</li>
<li class="li">Use <kbd class="ph userinput"><span class="keyword cmdname">Ctrl-F10</span></kbd> to bring up the context menu</li>

<li class="li">Use
<ul class="ul">
<li class="li"><kbd class="ph userinput"><span class="keyword cmdname">L</span></kbd></li>
<li class="li"><span class="ph uicontrol"><span class="keyword shortcut">L</span></span></li>

<li class="li"><kbd class="ph userinput"><span class="keyword cmdname">R</span></kbd></li>
<li class="li"><span class="ph uicontrol"><span class="keyword shortcut">R</span></span></li>

</ul>

Expand Down Expand Up @@ -307,7 +326,7 @@ <h1 class="title topictitle1">Tips and Tricks</h1>
<td valign="top" headers="d10431e36" class="stentry">
The totals row now represents all the additional entries in a tree or table.
If the totals row is selected then the context menu will operate on all the unshown
entries in the tree or table. If all the rows are selected, for example using Ctrl-A,
entries in the tree or table. If all the rows are selected, for example using <span class="ph uicontrol">Ctrl-A</span>,
then the displayed rows are selected and the totals row is selected and then
the context menu will operate on all the entries in the tree and table.
Filtering operates as normal, and the rows excluded by the filter are not part of
Expand All @@ -323,7 +342,7 @@ <h1 class="title topictitle1">Tips and Tricks</h1>
The Object Query Language (OQL) pane has syntax highlighting for OQL
keywords. It also offers suggestions for class names for the
<span class="keyword">SELECT</span> <span class="keyword">FROM</span> clause, both simple class names and regular expressions.
The class name list is brought up on typing a dot '.'. Ctrl-space
The class name list is brought up on typing a dot '.'. <span class="ph uicontrol">Ctrl-space</span>
can also be used to bring up the list.
<br/><div class="imageleft"><img class="image imageleft" src="../mimes/oql_completion1.png"/></div><br/>
The regular expression list appears on typing a double-quote '"'.
Expand All @@ -336,7 +355,7 @@ <h1 class="title topictitle1">Tips and Tricks</h1>
selects that class as the active class for field names.
<br/><div class="imageleft"><img class="image imageleft" src="../mimes/oql_completion3.png" alt="select s from java.util.ArrayList java.util.ArrayList"/></div><br/>
Suggestions are then provided in the <span class="keyword">SELECT</span> or
<span class="keyword">WHERE</span> clauses on typing '.' or '@' or Ctrl-space.
<span class="keyword">WHERE</span> clauses on typing '<kbd class="ph userinput">.</kbd>' or '<kbd class="ph userinput">@</kbd>' or <span class="ph uicontrol">Ctrl-space</span>.
<br/><div class="imageleft"><img class="image imageleft" src="../mimes/oql_completion4.png"/></div><br/>
Attributes begin with '@' and the autocompletion is filtered based on
what has been typed so far.
Expand Down
8 changes: 7 additions & 1 deletion plugins/org.eclipse.mat.ui.rcp/plugin.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?><!--
Copyright (c) 2008, 2014 SAP AG and IBM Corporation.
Copyright (c) 2008, 2020 SAP AG and IBM Corporation.
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
Expand Down Expand Up @@ -201,6 +201,12 @@
schemeId="org.eclipse.mat.scheme"
sequence="M1+S">
</key>
<key
commandId="org.eclipse.ui.window.showKeyAssist"
contextId="org.eclipse.ui.contexts.dialogAndWindow"
schemeId="org.eclipse.mat.scheme"
sequence="M1+M2+L">
</key>
</extension>

<extension
Expand Down
Loading

0 comments on commit c457693

Please sign in to comment.