From: amwaterhouse Date: Mon, 13 Jun 2005 11:34:56 +0000 (+0000) Subject: Updates checkboxes on load X-Git-Tag: Release_2_0~62 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=fb40f29fb0787f4b4c787bee57583baa86b32d9e;p=jalview.git Updates checkboxes on load --- diff --git a/src/jalview/gui/Jalview2XML.java b/src/jalview/gui/Jalview2XML.java index e787b48..addba63 100755 --- a/src/jalview/gui/Jalview2XML.java +++ b/src/jalview/gui/Jalview2XML.java @@ -626,16 +626,24 @@ public class Jalview2XML af.viewport.showQuality = view.getShowQuality(); af.viewport.showIdentity = view.getShowIdentity(); af.viewport.setAbovePIDThreshold(view.getPidSelected()); + af.abovePIDThreshold.setSelected(view.getPidSelected()); af.viewport.setColourText(view.getShowColourText()); + af.colourTextMenuItem.setSelected(view.getShowColourText()); af.viewport.setConservationSelected(view.getConservationSelected()); + af.conservationMenuItem.setSelected(view.getConservationSelected()); + af.viewport.setShowFullId(view.getShowFullId()); + af.fullSeqId.setSelected(view.getShowFullId()); + af.viewport.setFont(new java.awt.Font(view.getFontName(), view.getFontStyle(), view.getFontSize())); af.alignPanel.fontChanged(); af.viewport.setRenderGaps(view.getRenderGaps()); + af.renderGapsMenuItem.setSelected(view.getRenderGaps()); af.viewport.setWrapAlignment(view.getWrapAlignment()); + af.wrapMenuItem.setSelected(view.getWrapAlignment()); if (view.getWrapAlignment()) { @@ -648,7 +656,9 @@ public class Jalview2XML } af.viewport.setShowBoxes(view.getShowBoxes()); + af.viewBoxesMenuItem.setSelected(view.getShowBoxes()); af.viewport.setShowText(view.getShowText()); + af.viewTextMenuItem.setSelected(view.getShowText()); ColourSchemeI cs = null; @@ -687,8 +697,8 @@ public class Jalview2XML if (view.getShowSequenceFeatures()) { af.viewport.showSequenceFeatures = true; - SequenceFeatureFetcher sft = new SequenceFeatureFetcher(al, - af.alignPanel); + af.sequenceFeatures.setSelected(true); + new SequenceFeatureFetcher(al, af.alignPanel); al.featuresAdded = true; }