Package cytoscape.data

Examples of cytoscape.data.ImportHandler


    return NAME + "-" + VERSION;
  }
 
  private void addFilterForSBML(){
    // Test if SBMLReader is set in Import filters and give warning if other filter is set
    ImportHandler ih = Cytoscape.getImportHandler();
    SBMLFilter filter = new SBMLFilter();
    Set<String> extensions = filter.getExtensionSet();
    for (String extension : extensions) {
      if (ih.getAllExtensions().contains(extension) && !extension.equals("xml")) {
        System.out.println("Extension : " + extension);
        String msg =
             "Currently SBMLReader is still registered with 'sbml & 'xml' files.\n" +
             "To activate CySBML functionality and to register CySBML with 'sbml & 'xml' files remove \n" +
             "'sbml-reader-2.8.x-jar-with-dependencies.jar'\n" +
             "from the Cytoscape plugin folder.\n" +
             "The full functionality of sbml-reader is available in CySBML";
         JOptionPane.showMessageDialog (Cytoscape.getDesktop(), msg);
        break;
      }
    }
    // Register CySBML with sbml files
    ih.addFilter(filter);
  }
View Full Code Here

TOP

Related Classes of cytoscape.data.ImportHandler

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.