import jalview.api.FeatureColourI;
import jalview.api.FeatureSettingsControllerI;
+import jalview.bin.Jalview;
import jalview.datamodel.AlignmentI;
import jalview.datamodel.SequenceI;
import jalview.datamodel.features.FeatureMatcher;
repaintTable();
}
-
- private void repaintTable() {
- // BH 2018
- // Here is a needed intervention
- // because generally we don't "repaint"
- // the table. We re-create the HTML divs
- // that is associated with it. A better
- // way to do this would be to fire a property change.
-
- @SuppressWarnings("unused")
- TableUI ui = table.getUI();
- /**
- * @j2sNative ui.repaintTable$();
- */
- {
- table.repaint();
- }
+ /**
+ * Repaints the table using alternative code for Java and J2S
+ */
+ private void repaintTable()
+ {
+ // BH 2018
+ // Here is a needed intervention
+ // because generally we don't "repaint"
+ // the table. We re-create the HTML divs
+ // that is associated with it. A better
+ // way to do this would be to fire a property change.
+ @SuppressWarnings("unused")
+ TableUI ui = table.getUI();
+ /**
+ * @j2sNative ui.repaintTable$();
+ */
+ {
+ table.repaint();
}
+ }
-public void close()
+ public void close()
{
try
{
* variable colour and filters dialog
*/
chooser = new FeatureTypeSettings(me.fr, type);
- /**
- * @j2sNative
- */
+ if (!Jalview.isJS())
{
chooser.setRequestFocusEnabled(true);
chooser.requestFocus();