+
+ static AlignmentSorter instance;
+
+ public static AlignmentSorter getInstance()
+ {
+
+ // BH 2019.05.08 need to isolate static fields in JavaScript
+
+ AlignmentSorter i = instance;
+ @SuppressWarnings("unused")
+ ThreadGroup g = null;
+ if (Platform.isJS())
+ {
+ g = Thread.currentThread().getThreadGroup();
+ /**
+ * @j2sNative i = g._jalviewScoreModelsInstance;
+ *
+ */
+ }
+ if (i == null)
+ {
+ i = new AlignmentSorter();
+
+ if (Platform.isJS())
+ {
+ /**
+ * @j2sNative g._jalviewScoreModelsInstance = i;
+ *
+ */
+ }
+ else
+ {
+ instance = i;
+ }
+ }
+ return i;
+ }
+