JAL-2136 merged develop into branch to fix build failure
authortcofoegbu <tcnofoegbu@dundee.ac.uk>
Tue, 18 Apr 2017 10:49:54 +0000 (11:49 +0100)
committertcofoegbu <tcnofoegbu@dundee.ac.uk>
Tue, 18 Apr 2017 10:49:54 +0000 (11:49 +0100)
17 files changed:
1  2 
resources/lang/Messages.properties
src/MCview/AppletPDBCanvas.java
src/MCview/PDBCanvas.java
src/jalview/appletgui/AlignFrame.java
src/jalview/appletgui/AppletJmolBinding.java
src/jalview/appletgui/ExtJmol.java
src/jalview/ext/jmol/JalviewJmolBinding.java
src/jalview/ext/jmol/JmolCommands.java
src/jalview/ext/rbvi/chimera/JalviewChimeraBinding.java
src/jalview/gui/AlignFrame.java
src/jalview/gui/AppJmolBinding.java
src/jalview/gui/ChimeraViewFrame.java
src/jalview/gui/Jalview2XML.java
src/jalview/javascript/MouseOverStructureListener.java
src/jalview/structures/models/AAStructureBindingModel.java
test/jalview/structures/models/AAStructureBindingModelTest.java
test/jalview/ws/sifts/SiftsClientTest.java

Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
@@@ -1110,17 -1101,8 +1101,8 @@@ public abstract class JalviewChimeraBin
    {
      // TODO refactor as required to pull up to an interface
      AlignmentI alignment = avp.getAlignment();
-     FeatureRenderer fr = getFeatureRenderer(avp);
-     /*
-      * fr is null if feature display is turned off
-      */
-     if (fr == null)
-     {
-       return 0;
-     }
  
 -    String[] files = getPdbFile();
 +    String[] files = getStructureFiles();
      if (files == null)
      {
        return 0;
Simple merge
@@@ -50,31 -48,6 +48,12 @@@ public class AppJmolBinding extends Jal
    }
  
    @Override
 +  protected IProgressIndicator getIProgressIndicator()
 +  {
 +    return appJmolWindow.progressBar;
 +  }
-   @Override
-   public FeatureRenderer getFeatureRenderer(AlignmentViewPanel alignment)
-   {
-     AlignmentPanel ap = (alignment == null) ? appJmolWindow
-             .getAlignmentPanel() : (AlignmentPanel) alignment;
-     if (ap.av.isShowSequenceFeatures())
-     {
-       if (fr == null)
-       {
-         fr = (jalview.gui.FeatureRenderer) ap.cloneFeatureRenderer();
-       }
-       else
-       {
-         ap.updateFeatureRenderer(fr);
-       }
-     }
-     return fr;
-   }
 +
 +  @Override
    public SequenceRenderer getSequenceRenderer(AlignmentViewPanel alignment)
    {
      return new SequenceRenderer(((AlignmentPanel) alignment).av);
Simple merge
Simple merge
@@@ -282,16 -282,19 +283,18 @@@ public class SiftsClientTes
                "A", testSeq, null);
        Assert.assertEquals(testSeq.getStart(), 1);
        Assert.assertEquals(testSeq.getEnd(), 147);
-       // Assert.assertEquals(actualMapping, expectedMapping);
+       // Can't do Assert.assertEquals(actualMapping, expectedMapping);
+       // because this fails in our version of TestNG
        Assert.assertEquals(actualMapping.size(), expectedMapping.size());
-       // Test key set
-       Assert.assertEquals(actualMapping.keySet(), expectedMapping.keySet());
-       // Test entry set
-       for (int key : expectedMapping.keySet())
+       Iterator<Map.Entry<Integer, int[]>> it = expectedMapping.entrySet()
+               .iterator();
+       while (it.hasNext())
        {
-         Assert.assertTrue(Arrays.equals(expectedMapping.get(key),
-                 actualMapping.get(key)));
+         Map.Entry<Integer, int[]> pair = it.next();
+         Assert.assertTrue(actualMapping.containsKey(pair.getKey()));
+         Assert.assertEquals(actualMapping.get(pair.getKey()),
+                 pair.getValue());
        }
 -
      } catch (Exception e)
      {
        e.printStackTrace();