Skip to content

Commit

Permalink
Check for compatibility in AlterAllMatrices
Browse files Browse the repository at this point in the history
Getting rid of green dot in NodeLocsCircular
  • Loading branch information
wmaddisn committed Aug 23, 2014
1 parent 9b4ded3 commit b0a7433
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 14 deletions.
4 changes: 2 additions & 2 deletions Source/mesquite/Mesquite.java
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ else if (prefsFile.exists() || prefsFileXML.exists()) {
try {
equiv = ImageIO.read(new File(MesquiteModule.getRootPath() + "images/equivocal.gif"));
} catch (IOException e) {
Debugg.println(" IOException trying to read equivocal texture ");
MesquiteMessage.println(" IOException trying to read equivocal texture ");
}
GraphicsUtil.missingDataTexture = new TexturePaint(equiv, new Rectangle(0, 0, 16, 16));

Expand Down Expand Up @@ -748,7 +748,7 @@ private void findMesquiteDirectory(){
String manualString = mesquiteDirectory + sep + "docs/mesquite" + sep + "manual.html";
File manual = new File(manualString);
storedManualString = manualString; //Debugg.println get rid of this stuff!
storedManualString = manualString;
}
setMesquiteDirectoryPath();
Expand Down
2 changes: 1 addition & 1 deletion Source/mesquite/align/MAFFTAlign/MAFFTAlign.java
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ public void appendDefaultOptions(StringBuffer shellScript, String inFilePath, St
if (!MesquiteTrunk.isWindows())
shellScript.append(" " + StringUtil.protectForUnix(inFilePath) + " > " + StringUtil.protectForUnix(outFilePath));
else
shellScript.append(" --out " + StringUtil.protectForUnix(outFilePath) + " " + StringUtil.protectForUnix(inFilePath)); //Debugg.println need to check MAFFT windows format
shellScript.append(" --out " + StringUtil.protectForUnix(outFilePath) + " " + StringUtil.protectForUnix(inFilePath));
}


Expand Down
2 changes: 1 addition & 1 deletion Source/mesquite/align/lib/ExternalSequenceAligner.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public String getQueryProgramOptions() {
}
/*.................................................................................................................*/
public boolean queryOptions() {
if (!okToInteractWithUser(CAN_PROCEED_ANYWAY, "Querying Options")) //Debugg.println needs to check that options set well enough to proceed anyway
if (!okToInteractWithUser(CAN_PROCEED_ANYWAY, "Querying Options"))
return true;
MesquiteInteger buttonPressed = new MesquiteInteger(1);
ExtensibleDialog dialog = new ExtensibleDialog(containerOfModule(), getProgramName() + " Locations & Options",buttonPressed); //MesquiteTrunk.mesquiteTrunk.containerOfModule()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,11 @@ public boolean processFile(MesquiteFile file){
if (proj == null)
return false;
boolean success = true;
CompatibilityTest test = alterTask.getCompatibilityTest();
for (int im = 0; im < proj.getNumberCharMatrices(file); im++){
CharacterData data = proj.getCharacterMatrix(file, im);
//Debugg.println checkCompatibility

Debugg.println("Altering matrix " + im + " (" + data.getName() + ", id = " + data.getID() + ")");
success = success && alterTask.alterData(data, null, null);
if (test.isCompatible(data.getStateClass(), getProject(), this))
success = success && alterTask.alterData(data, null, null);
}

return success;
Expand Down
4 changes: 2 additions & 2 deletions Source/mesquite/lib/MesquiteModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public abstract class MesquiteModule extends EmployerEmployee implements Command
/*.................................................................................................................*/
/** returns build date of the Mesquite system (e.g., "22 September 2003") */
public final static String getBuildDate() {
return "22 August 2014";
return "23 August 2014";
}
/*.................................................................................................................*/
/** returns version of the Mesquite system */
Expand All @@ -89,7 +89,7 @@ public final static String getBuildLetter() {
public final static int getBuildNumber() {
//as of 26 Dec 08, build naming changed from letter + number to just number. Accordingly j105 became 473, based on
// highest build numbers of d51+e81+g97+h66+i69+j105 + 3 for a, b, c
return 629;
return 630;
}
//0.95.80 14 Mar 01 - first beta release
//0.96 2 April 01 beta - second beta release
Expand Down
2 changes: 1 addition & 1 deletion Source/mesquite/minimal/Installer/Installer.java
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ void writeReceipts(){
buff.append("\t</installationReceipt>\n");
}
buff.append("\n</mesquite>");
MesquiteFile.createDirectory(getInstallationSettingsPath() ); //Debugg.println : this is a problem if user doesn't have write permission
MesquiteFile.createDirectory(getInstallationSettingsPath() );
MesquiteFile.putFileContents(getInstallationSettingsPath() + "receipts.xml", buff.toString(), true, false);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ public SaveRenameDeleteButton(){
setForeground(ColorTheme.getExtInterfaceTextContrast());
//ColorTheme.getExtInterfaceElement());
}
void redoMenu() {//Debugg.println don't use this if can't save because don't have permissions
void redoMenu() {// don't use this if can't save because don't have permissions
if (popup==null)
popup = new MesquitePopup(this);
popup.removeAll();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,8 @@ public String writeOnTree(Tree tree, int drawnRoot) {
public void drawOnTree(Tree tree, int drawnRoot, Graphics g) {
if (locsModule.showScale.getValue() && locsModule.showBranchLengths.getValue())
locsModule.drawGrid(g, tree.tallestPathAboveNode(drawnRoot, 1.0), locsModule.scaling, locsModule.treeCenter);
g.setColor(Color.green);
g.fillOval(locsModule.centerx-8, locsModule.centery-8, 16, 16);
//g.setColor(Color.green);
//g.fillOval(locsModule.centerx-8, locsModule.centery-8, 16, 16);
}
/*.................................................................................................................*/
public void printOnTree(Tree tree, int drawnRoot, Graphics g) {
Expand Down

0 comments on commit b0a7433

Please sign in to comment.