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);
}