Author: scooter
Date: 2010-11-04 14:08:20 -0700 (Thu, 04 Nov 2010)
New Revision: 22723
Modified:
cytoscape/trunk/coreplugins/BioPAX/src/main/java/cytoscape/coreplugins/biopax/BioPaxFilter.java
Log:
Add appropriate content types to the BioPaxFilter. We should also add a URL
reader
method to BioPaxReader, but it's too close to the 2.8 release to do that at
this point.
Modified:
cytoscape/trunk/coreplugins/BioPAX/src/main/java/cytoscape/coreplugins/biopax/BioPaxFilter.java
===================================================================
---
cytoscape/trunk/coreplugins/BioPAX/src/main/java/cytoscape/coreplugins/biopax/BioPaxFilter.java
2010-11-04 20:58:34 UTC (rev 22722)
+++
cytoscape/trunk/coreplugins/BioPAX/src/main/java/cytoscape/coreplugins/biopax/BioPaxFilter.java
2010-11-04 21:08:20 UTC (rev 22723)
@@ -59,6 +59,11 @@
private static String[] fileExtensions = { "xml", "owl", "rdf" };
/**
+ * Content types
+ **/
+ private static String[] biopaxContentTypes = { "text/xml",
"application/rdf+xml" };
+
+ /**
* Filter Description.
*/
private static String description = "BioPAX files";
@@ -68,6 +73,9 @@
*/
public BioPaxFilter() {
super(fileExtensions, description, fileNature);
+ // Add our content types
+ for (int i = 0; i < biopaxContentTypes.length; i++)
+ addContentType(biopaxContentTypes[i]);
}
/**
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.