Author: ruschein
Date: 2011-02-01 08:58:16 -0800 (Tue, 01 Feb 2011)
New Revision: 23988
Modified:
core3/psi-mi-impl/trunk/src/main/java/org/cytoscape/psi_mi/internal/cyto_mapper/MapToCytoscape.java
Log:
Adpated to the new CyRow interface.
Modified:
core3/psi-mi-impl/trunk/src/main/java/org/cytoscape/psi_mi/internal/cyto_mapper/MapToCytoscape.java
===================================================================
---
core3/psi-mi-impl/trunk/src/main/java/org/cytoscape/psi_mi/internal/cyto_mapper/MapToCytoscape.java
2011-02-01 16:36:29 UTC (rev 23987)
+++
core3/psi-mi-impl/trunk/src/main/java/org/cytoscape/psi_mi/internal/cyto_mapper/MapToCytoscape.java
2011-02-01 16:58:16 UTC (rev 23988)
@@ -557,7 +557,7 @@
if (attrObject instanceof String) {
String object;
if (!attribExists(attributes, key)) {
-
attributes.getDataTable().createColumn(key, String.class,
+ attributes.getTable().createColumn(key,
String.class,
false);
object = null;
} else
@@ -597,7 +597,7 @@
private <T> void addAttribute(final CyRow attributes, final String
name, final T value) {
if (!attribExists(attributes, name))
- attributes.getDataTable().createColumn(name,
value.getClass(), false);
+ attributes.getTable().createColumn(name,
value.getClass(), false);
attributes.set(name, value);
}
@@ -605,12 +605,12 @@
final List<T> value, final Class<T>
listElementType)
{
if (!attribExists(attributes, name))
- attributes.getDataTable().createListColumn(name,
listElementType, false);
+ attributes.getTable().createListColumn(name,
listElementType, false);
attributes.set(name, value);
}
private boolean attribExists(final CyRow attributes, final String
attrName) {
- return attributes.getDataTable().getColumn(attrName) != null;
+ return attributes.getTable().getColumn(attrName) != null;
}
/**
--
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.