Package cysbml.biomodel

Source Code of cysbml.biomodel.LoadBioModel

package cysbml.biomodel;

import cytoscape.Cytoscape;
import cytoscape.task.ui.JTaskConfig;
import cytoscape.task.util.TaskManager;

public class LoadBioModel {
  public static void loadBioModelById(String id){
    System.out.println("CySBML[INFO] -> Load BioModel: " + id);   
   
    LoadBioModelTask task = new LoadBioModelTask(id);
    JTaskConfig jTaskConfig = new JTaskConfig();
    jTaskConfig.setOwner(Cytoscape.getDesktop());
    jTaskConfig.displayCloseButton(false);
    jTaskConfig.displayCancelButton(false);
    jTaskConfig.displayStatus(true);
    jTaskConfig.setAutoDispose(true);
    TaskManager.executeTask(task, jTaskConfig);
  }
}
TOP

Related Classes of cysbml.biomodel.LoadBioModel

TOP
Copyright © 2018 www.massapi.com. 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.