git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'jims/bug/JAL-4298_java_console_causing_hang_at_startup' into develop
[jalview.git]
/
examples
/
groovy
/
selectColumnsByFeatureAndGroup.groovy
diff --git
a/examples/groovy/selectColumnsByFeatureAndGroup.groovy
b/examples/groovy/selectColumnsByFeatureAndGroup.groovy
index
b8edaa7
..
aaa3405
100644
(file)
--- a/
examples/groovy/selectColumnsByFeatureAndGroup.groovy
+++ b/
examples/groovy/selectColumnsByFeatureAndGroup.groovy
@@
-23,7
+23,7
@@
import jalview.datamodel.*;
import jalview.gui.AlignFrame;
import jalview.gui.AlignViewport;
import java.util.BitSet;
import jalview.gui.AlignFrame;
import jalview.gui.AlignViewport;
import java.util.BitSet;
-import javax.swing.JOptionPane;
+import jalview.gui.JvOptionPane;
import groovy.swing.SwingBuilder;
def toselect = getFeatureInput(); // change this to select the desired feature type
import groovy.swing.SwingBuilder;
def toselect = getFeatureInput(); // change this to select the desired feature type
@@
-81,7
+81,7
@@
for (ala in Jalview.getAlignFrames()) {
cs.addElement(i);
}
ala.viewport.setColumnSelection(cs);
cs.addElement(i);
}
ala.viewport.setColumnSelection(cs);
- ala.alignPanel.paintAlignment(true);
+ ala.alignPanel.paintAlignment(true, true);
ala.statusBar.setText("Marked "+bs.cardinality()+" columns containing features of type "+toselect)
} else {
ala.statusBar.setText("No features of type "+toselect+" found.");
ala.statusBar.setText("Marked "+bs.cardinality()+" columns containing features of type "+toselect)
} else {
ala.statusBar.setText("No features of type "+toselect+" found.");
@@
-96,4
+96,4
@@
String getFeatureInput(){
null, 'Select columns by feature by type','Enter type of feature', JvOptionPane.OK_OPTION)
return response
null, 'Select columns by feature by type','Enter type of feature', JvOptionPane.OK_OPTION)
return response
- }
\ No newline at end of file
+ }