{
try
{
- while (updatingConservation)
+ updatingConservation = true;
+
+ while (UPDATING_CONSERVATION)
{
try
{
+ if (ap != null)
+ {
+ ap.repaint();
+ }
Thread.sleep(200);
}
catch (Exception ex)
}
}
- updatingConservation = true;
+ UPDATING_CONSERVATION = true;
int alWidth = alignment.getWidth();
}
+ UPDATING_CONSERVATION = false;
+ updatingConservation = false;
+
if(ap!=null)
{
ap.repaint();
}
- updatingConservation = false;
+
}
}
boolean consUpdateNeeded = false;
- static boolean updatingConsensus = false;
+ static boolean UPDATING_CONSENSUS = false;
+
+ static boolean UPDATING_CONSERVATION = false;
- static boolean updatingConservation = false;
+ boolean updatingConsensus = false;
+
+ boolean updatingConservation = false;
/**
* DOCUMENT ME!
}
public void run()
{
- while (updatingConsensus)
+ updatingConsensus = true;
+ while (UPDATING_CONSENSUS)
{
try
{
+ if (ap != null)
+ {
+ ap.repaint();
+ }
+
Thread.sleep(200);
}
catch (Exception ex)
}
}
- updatingConsensus = true;
+
+ UPDATING_CONSENSUS = true;
try
{
System.out.println("Consensus calculation: " + error);
System.gc();
}
+ UPDATING_CONSENSUS = false;
+ updatingConsensus = false;
if (ap != null)
{
ap.repaint();
}
-
-
- updatingConsensus = false;
}
}
/**