X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fio%2FHTMLOutput.java;h=fd51823c9277734de36dd88550ef599f111df726;hb=06fef82a8d6fcdcfadc58d747f9f774297cd639d;hp=af894e013b8b69ec5a84c20dc3ff9bddcbb38c55;hpb=3f578998521236c208e9d3c7790d4d5ac4da0a50;p=jalview.git diff --git a/src/jalview/io/HTMLOutput.java b/src/jalview/io/HTMLOutput.java index af894e0..fd51823 100755 --- a/src/jalview/io/HTMLOutput.java +++ b/src/jalview/io/HTMLOutput.java @@ -19,7 +19,9 @@ public class HTMLOutput { this.av = av; sr = new SequenceRenderer(av); - JalviewFileChooser chooser = new JalviewFileChooser(jalview.bin.Cache.getProperty("LAST_DIRECTORY")); + JalviewFileChooser chooser = new JalviewFileChooser(jalview.bin.Cache.getProperty("LAST_DIRECTORY") + , new String[]{"html"}, "HTML files"); + chooser.setFileView(new JalviewFileView()); chooser.setDialogTitle("Save as HTML"); chooser.setToolTipText("Save"); @@ -90,7 +92,11 @@ public class HTMLOutput { seq = alignment.getSequenceAt(i); groups = alignment.findAllGroups( seq ); - out.println(""+seq.getDisplayId()+"  "); + if(av.getShowFullId()) + out.println(""+seq.getDisplayId()+"  "); + else + out.println(""+seq.getName()+"  "); + for (int res = 0; res < seq.getLength(); res++) @@ -172,7 +178,10 @@ public class HTMLOutput out.println(""); seq = al.getSequenceAt(s); groups = al.findAllGroups( seq ); - out.println(""+seq.getDisplayId()+"  "); + if(av.getShowFullId()) + out.println(""+seq.getDisplayId()+"  "); + else + out.println(""+seq.getName()+"  "); for (int res = startRes; res < endRes; res++) {