Package edu.stanford.genetics.treeview.model

Examples of edu.stanford.genetics.treeview.model.DataModelWriter


  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");
View Full Code Here


      if (dataModel != null) {
          if (dataModel.getModified()) {
            int option = JOptionPane.showConfirmDialog(this, "DataModel is modified. Do you wish to save?");
            switch (option) {
              case JOptionPane.YES_OPTION:
                  DataModelWriter writer = new DataModelWriter(getDataModel());
                writer.writeIncremental(getDataModel().getFileSet());
                break;
              case JOptionPane.CANCEL_OPTION:
                return;
              case JOptionPane.NO_OPTION:
                break;
View Full Code Here

TOP

Related Classes of edu.stanford.genetics.treeview.model.DataModelWriter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.