JAL-1445 status message '...not containing...' for inverted selection
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 18 Aug 2016 15:19:01 +0000 (16:19 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 18 Aug 2016 15:19:01 +0000 (16:19 +0100)
src/jalview/controller/AlignViewController.java

index 24439ca..74a5235 100644 (file)
@@ -299,11 +299,13 @@ public class AlignViewController implements AlignViewControllerI
         avcg.setStatus(MessageManager.formatMessage(
                 "label.view_controller_toggled_marked",
                 new String[] {
-                    (toggle ? MessageManager.getString("label.toggled")
-                            : MessageManager.getString("label.marked")),
-                    (invert ? (Integer.valueOf((alw - alStart)
-                            - bs.cardinality()).toString()) : (Integer
-                            .valueOf(bs.cardinality()).toString())),
+                    MessageManager.getString(toggle ? "label.toggled"
+                            : "label.marked"),
+                    String.valueOf(invert ? alw - alStart
+                            - bs.cardinality() : bs.cardinality()),
+                    MessageManager
+                            .getString(invert ? "label.not_containing"
+                                    : "label.containing"),
                     featureType, Integer.valueOf(nseq).toString() }));
         return true;
       }