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:
c8a5e95
)
JAL-2960 raise the structure view after adding structures to it
author
Jim Procter
<jprocter@issues.jalview.org>
Fri, 4 May 2018 12:11:48 +0000
(13:11 +0100)
committer
Jim Procter
<jprocter@issues.jalview.org>
Fri, 4 May 2018 12:11:48 +0000
(13:11 +0100)
src/jalview/api/structures/JalviewStructureDisplayI.java
patch
|
blob
|
history
src/jalview/gui/StructureViewer.java
patch
|
blob
|
history
src/jalview/gui/StructureViewerBase.java
patch
|
blob
|
history
diff --git
a/src/jalview/api/structures/JalviewStructureDisplayI.java
b/src/jalview/api/structures/JalviewStructureDisplayI.java
index
2cd9348
..
abb23f8
100644
(file)
--- a/
src/jalview/api/structures/JalviewStructureDisplayI.java
+++ b/
src/jalview/api/structures/JalviewStructureDisplayI.java
@@
-120,4
+120,9
@@
public interface JalviewStructureDisplayI
*/
void setAlignAddedStructures(boolean alignAdded);
+ /**
+ * Raise the panel to the top of the stack...
+ */
+ void toFront();
+
}
diff --git
a/src/jalview/gui/StructureViewer.java
b/src/jalview/gui/StructureViewer.java
index
35a4bc6
..
0158055
100644
(file)
--- a/
src/jalview/gui/StructureViewer.java
+++ b/
src/jalview/gui/StructureViewer.java
@@
-293,6
+293,7
@@
public class StructureViewer
sview.addToExistingViewer(pdb, seqsForPdb, null, ap, pdbId);
}
sview.updateTitleAndMenus();
+ sview.toFront();
return sview;
}
ViewerType viewerType = getViewerType();
diff --git
a/src/jalview/gui/StructureViewerBase.java
b/src/jalview/gui/StructureViewerBase.java
index
840dbae
..
e9c1051
100644
(file)
--- a/
src/jalview/gui/StructureViewerBase.java
+++ b/
src/jalview/gui/StructureViewerBase.java
@@
-1034,4
+1034,10
@@
public abstract class StructureViewerBase extends GStructureViewer
return seqColoursApplied;
}
+ @Override
+ public void toFront()
+ {
+ toFront();
+ }
+
}