Merge branch 'features/JAL-1588saveChimeraSession' into develop
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 26 Jan 2015 16:45:29 +0000 (16:45 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 26 Jan 2015 16:45:29 +0000 (16:45 +0000)
12 files changed:
1  2 
src/jalview/appletgui/AlignFrame.java
src/jalview/appletgui/AppletJmol.java
src/jalview/appletgui/AppletJmolBinding.java
src/jalview/appletgui/ExtJmol.java
src/jalview/gui/AlignFrame.java
src/jalview/gui/AppJmol.java
src/jalview/gui/AppJmolBinding.java
src/jalview/gui/ChimeraViewFrame.java
src/jalview/gui/Jalview2XML.java
src/jalview/gui/JalviewChimeraBindingModel.java
test/jalview/ws/jabaws/JpredJabaStructExportImport.java
test/jalview/ws/jabaws/RNAStructExportImport.java

Simple merge
@@@ -519,10 -552,12 +552,12 @@@ public class AppletJmol extends Embmenu
      else if (evt.getSource() == seqColour)
      {
        setEnabled(seqColour);
 -      jmb.colourBySequence(ap.av.getShowSequenceFeatures(), ap);
 +      jmb.colourBySequence(ap.av.isShowSequenceFeatures(), ap);
      }
      else if (!allChainsSelected)
+     {
        centerViewer();
+     }
    }
  
    public void keyPressed(KeyEvent evt)
Simple merge
Simple merge
Simple merge
@@@ -50,15 -49,13 +49,13 @@@ public class AppJmolBinding extends Jal
      appJmolWindow = appJmol;
    }
  
-   FeatureRenderer fr = null;
    @Override
-   public jalview.api.FeatureRenderer getFeatureRenderer(
+   public FeatureRenderer getFeatureRenderer(
            AlignmentViewPanel alignment)
    {
-     AlignmentPanel ap = (alignment == null) ? appJmolWindow.ap
+     AlignmentPanel ap = (alignment == null) ? appJmolWindow.getAlignmentPanel()
              : (AlignmentPanel) alignment;
 -    if (ap.av.showSequenceFeatures)
 +    if (ap.av.isShowSequenceFeatures())
      {
        if (fr == null)
        {
      AlignmentPanel ap = (AlignmentPanel) source, topap;
      // ignore events from panels not used to colour this view
      if (!appJmolWindow.isUsedforcolourby(ap))
+     {
        return;
+     }
      if (!isLoadingFromArchive())
      {
 -      colourBySequence(ap.av.getShowSequenceFeatures(), ap);
 +      colourBySequence(ap.av.isShowSequenceFeatures(), ap);
      }
    }
  
Simple merge
Simple merge
@@@ -18,15 -20,13 +20,13 @@@ public class JalviewChimeraBindingMode
      cvf = chimeraViewFrame;
    }
  
-   FeatureRenderer fr = null;
    @Override
-   public jalview.api.FeatureRenderer getFeatureRenderer(
+   public FeatureRenderer getFeatureRenderer(
            AlignmentViewPanel alignment)
    {
-     AlignmentPanel ap = (alignment == null) ? cvf.ap
+     AlignmentPanel ap = (alignment == null) ? cvf.getAlignmentPanel()
              : (AlignmentPanel) alignment;
 -    if (ap.av.showSequenceFeatures)
 +    if (ap.av.isShowSequenceFeatures())
      {
        if (fr == null)
        {
      }
      if (!isLoadingFromArchive())
      {
 -      colourBySequence(ap.av.getShowSequenceFeatures(), ap);
 +      colourBySequence(ap.av.isShowSequenceFeatures(), ap);
      }
    }
    @Override
    public void releaseReferences(Object svl)
    {