git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
53dbe94
)
JAL-3441 action double-click in Feature Type column only
author
gmungoc
<g.m.carstairs@dundee.ac.uk>
Thu, 26 Sep 2019 13:59:23 +0000
(14:59 +0100)
committer
gmungoc
<g.m.carstairs@dundee.ac.uk>
Thu, 26 Sep 2019 13:59:23 +0000
(14:59 +0100)
src/jalview/gui/FeatureSettings.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/FeatureSettings.java
b/src/jalview/gui/FeatureSettings.java
index
441dca7
..
11d5e39
100644
(file)
--- a/
src/jalview/gui/FeatureSettings.java
+++ b/
src/jalview/gui/FeatureSettings.java
@@
-282,7
+282,8
@@
public class FeatureSettings extends JPanel
@Override
public void mousePressed(MouseEvent evt)
{
@Override
public void mousePressed(MouseEvent evt)
{
- selectedRow = table.rowAtPoint(evt.getPoint());
+ Point pt = evt.getPoint();
+ selectedRow = table.rowAtPoint(pt);
String type = (String) table.getValueAt(selectedRow, TYPE_COLUMN);
if (evt.isPopupTrigger())
{
String type = (String) table.getValueAt(selectedRow, TYPE_COLUMN);
if (evt.isPopupTrigger())
{
@@
-290,7
+291,8
@@
public class FeatureSettings extends JPanel
popupSort(selectedRow, type, colour, fr.getMinMax(), evt.getX(),
evt.getY());
}
popupSort(selectedRow, type, colour, fr.getMinMax(), evt.getX(),
evt.getY());
}
- else if (evt.getClickCount() == 2)
+ else if (evt.getClickCount() == 2
+ && table.columnAtPoint(pt) == TYPE_COLUMN)
{
boolean invertSelection = evt.isAltDown();
boolean toggleSelection = Platform.isControlDown(evt);
{
boolean invertSelection = evt.isAltDown();
boolean toggleSelection = Platform.isControlDown(evt);