Skip to content

Commit

Permalink
Change version in pom.xml from 2.8.4-snapshot to 2.8.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
jingjingbic committed Sep 12, 2024
1 parent 8f5ba52 commit 17dc87e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

<groupId>org.cytoscape</groupId>
<artifactId>cx-support</artifactId>
<version>2.8.4-SNAPSHOT</version>
<version>2.8.4</version>
<name>CX Support</name>
<description>CX JSON Reader and Writer for Cytoscape</description>
<packaging>bundle</packaging>
Expand Down Expand Up @@ -202,7 +202,7 @@
<dependency>
<groupId>org.ndexbio</groupId>
<artifactId>ndex-object-model</artifactId>
<version>2.5.7-SNAPSHOT</version>
<version>2.5.7</version>
</dependency>

<!-- Testing -->
Expand Down
11 changes: 9 additions & 2 deletions src/main/java/org/cytoscape/io/internal/cxio/Cx2Importer.java
Original file line number Diff line number Diff line change
Expand Up @@ -869,9 +869,16 @@ private void addDiscreteMapping(Class<?> typeClass, VisualLexicon lexicon, Mappi
for ( Map<String,Object> mappingEntry: def.getMapppingList()) {
ATTRIBUTE_DATA_TYPE elmtDType = dtype.isSingleValueType()? dtype: dtype.elementType();
Object v = AttributeDeclaredAspect.processAttributeValue (elmtDType, mappingEntry.get("v") );
String cyValue = CX2ToCXVisualPropertyConverter.getInstance().
try {
String cyValue = CX2ToCXVisualPropertyConverter.getInstance().

getCx1EdgeOrNodePropertyValue(cx2VpName, mappingEntry.get("vp"));
dmf.putMapValue(v, vp.parseSerializableString(cyValue));
dmf.putMapValue(v, vp.parseSerializableString(cyValue));
} catch (IllegalArgumentException e) {
throw new NdexException("Failed to parse value for mapping " + colName +
" on " + cx2VpName + " : " + e.getMessage());
}

}
style.addVisualMappingFunction(dmf);
}
Expand Down

0 comments on commit 17dc87e

Please sign in to comment.