public TreeViewApp getApp() {
return treeView;
}
private boolean doModelSave(boolean incremental) {
DataModelWriter writer = new DataModelWriter(getDataModel());
final Set<DataModelFileType> written;
if (incremental) {
written = writer.writeIncremental(getDataModel().getFileSet());
} else {
written = writer.writeAll(getDataModel().getFileSet());
}
if (written.isEmpty()) {
JOptionPane.showMessageDialog(TreeViewFrame.this, "No Model changes were written\nOnly the following changes require explicit saving:\n\n"+
" - Tree Node flips (Analysis->Flip Array/Gene Tree Node)\n" +
" - Tree Node Annotations (Analysis->Array/Gene TreeAnno)\n");