-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed recursion bug for going down the tree looking for invalid taxa …
…to a term May have fixed problem with dialog boxes not listening for the mouse on drag and drop
- Loading branch information
Showing
7 changed files
with
131 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,2 @@ | ||
eclipse.preferences.version=1 | ||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled | ||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 | ||
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve | ||
org.eclipse.jdt.core.compiler.compliance=1.7 | ||
org.eclipse.jdt.core.compiler.debug.lineNumber=generate | ||
org.eclipse.jdt.core.compiler.debug.localVariable=generate | ||
org.eclipse.jdt.core.compiler.debug.sourceFile=generate | ||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error | ||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error | ||
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning | ||
org.eclipse.jdt.core.compiler.source=1.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v2.28 | ||
v2.28.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package org.paint.dialog; | ||
|
||
import java.util.List; | ||
|
||
import org.bbop.framework.GUIManager; | ||
import org.bbop.phylo.annotate.PaintAction; | ||
import org.bbop.phylo.annotate.WithEvidence; | ||
import org.bbop.phylo.model.Bioentity; | ||
import org.bbop.phylo.model.Tree; | ||
import org.bbop.phylo.util.TaxonChecker; | ||
import org.paint.gui.event.AnnotationChangeEvent; | ||
import org.paint.gui.event.EventManager; | ||
import org.paint.main.PaintManager; | ||
|
||
public class AnnotUtil { | ||
|
||
private static AnnotUtil INSTANCE; | ||
|
||
private AnnotUtil() { | ||
} | ||
|
||
public static AnnotUtil inst() { | ||
if (INSTANCE == null) { | ||
INSTANCE = new AnnotUtil(); | ||
} | ||
return INSTANCE; | ||
} | ||
|
||
public void propagateAssociation(Bioentity node, Tree tree, String term, String date) { | ||
boolean valid_for_all_descendents = TaxonChecker.checkTaxons(tree, node, term, false); | ||
if (!valid_for_all_descendents) { | ||
List<String> invalid_taxa = TaxonChecker.getInvalidTaxa(node, term); | ||
TaxonDialog taxon_dialog = new TaxonDialog(GUIManager.getManager().getFrame(), term, invalid_taxa); | ||
valid_for_all_descendents = taxon_dialog.isLost(); | ||
} | ||
if (valid_for_all_descendents) { | ||
WithEvidence withs = new WithEvidence(tree, node, term); | ||
int qualifiers = withs.getWithQualifiers(); | ||
if (qualifiers > 0) { | ||
QualifierDialog qual_dialog = new QualifierDialog(GUIManager.getManager().getFrame(), qualifiers); | ||
qualifiers = qual_dialog.getQualifiers(); | ||
} | ||
PaintAction.inst().propagateAssociation(PaintManager.inst().getFamily(), node, term, withs, date, qualifiers); | ||
EventManager.inst().fireAnnotationChangeEvent(new AnnotationChangeEvent(node)); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters