Merge branch 'develop' into features/JAL-2360colourSchemeApplicability
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 17 Jan 2017 13:31:55 +0000 (13:31 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 17 Jan 2017 13:31:55 +0000 (13:31 +0000)
Conflicts:
src/jalview/gui/PopupMenu.java
src/jalview/jbgui/GAlignFrame.java

1  2 
src/jalview/appletgui/APopupMenu.java
src/jalview/appletgui/AlignFrame.java
src/jalview/bin/JalviewLite.java
src/jalview/gui/AlignFrame.java
src/jalview/gui/PCAPanel.java
src/jalview/gui/PopupMenu.java
src/jalview/gui/Preferences.java
src/jalview/jbgui/GAlignFrame.java

Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
@@@ -38,9 -38,8 +38,9 @@@ import jalview.datamodel.Sequence
  import jalview.datamodel.SequenceFeature;
  import jalview.datamodel.SequenceGroup;
  import jalview.datamodel.SequenceI;
 +import jalview.gui.ColourMenuHelper.ColourChangeListener;
- import jalview.io.FileFormat;
  import jalview.io.FileFormatI;
+ import jalview.io.FileFormats;
  import jalview.io.FormatAdapter;
  import jalview.io.SequenceAnnotationReport;
  import jalview.schemes.AnnotationColourGradient;
@@@ -199,7 -238,23 +199,7 @@@ public class PopupMenu extends JPopupMe
      this.ap = ap;
      sequence = seq;
  
-     for (String ff : FileFormat.getWritableFormats(true))
 -    ButtonGroup colours = new ButtonGroup();
 -    colours.add(noColourmenuItem);
 -    colours.add(clustalColour);
 -    colours.add(zappoColour);
 -    colours.add(taylorColour);
 -    colours.add(hydrophobicityColour);
 -    colours.add(helixColour);
 -    colours.add(strandColour);
 -    colours.add(turnColour);
 -    colours.add(buriedColour);
 -    colours.add(userDefinedColour);
 -    colours.add(PIDColour);
 -    colours.add(BLOSUM62Colour);
 -    colours.add(purinePyrimidineColour);
 -    colours.add(RNAInteractionColour);
 -
+     for (String ff : FileFormats.getInstance().getWritableFormats(true))
      {
        JMenuItem item = new JMenuItem(ff);
  
      // or we simply trust the user wants
      // wysiwig behaviour
  
-     FileFormatI fileFormat = FileFormat.forName(e.getActionCommand());
 -    FileFormatI fileFormat = FileFormats.getInstance().forName(
 -            e.getActionCommand());
++    FileFormatI fileFormat = FileFormats.getInstance().forName(e.getActionCommand());
      cap.setText(new FormatAdapter(ap).formatSequences(fileFormat, ap, true));
    }
  
Simple merge
@@@ -23,11 -23,12 +23,11 @@@ package jalview.jbgui
  import jalview.analysis.AnnotationSorter.SequenceAnnotationOrder;
  import jalview.api.SplitContainerI;
  import jalview.bin.Cache;
 -import jalview.gui.JvOptionPane;
  import jalview.gui.JvSwingUtils;
  import jalview.gui.Preferences;
- import jalview.io.FileFormat;
+ import jalview.io.FileFormats;
 -import jalview.schemes.ColourSchemeProperty;
  import jalview.util.MessageManager;
 +import jalview.util.Platform;
  
  import java.awt.BorderLayout;
  import java.awt.Color;