Skip to content

Commit b9ef38a

Browse files
committed
change node label to default to description always.
1 parent c9d5937 commit b9ef38a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

EnrichmentMapPlugin/src/main/java/org/baderlab/csplugins/enrichmentmap/EnrichmentMapVisualStyle.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -254,12 +254,7 @@ private void createNodeAppearance(VisualStyle vs,String prefix){
254254
}
255255

256256
// Passthrough Mapping - set node label
257-
PassthroughMapping<String,String> pm = (PassthroughMapping<String,String>) vmfFactoryPassthrough.createVisualMappingFunction(prefix + FORMATTED_NAME, String.class, BasicVisualLexicon.NODE_LABEL);
258-
259-
//if it is an EMgmt then we want the node label to be the description.
260-
if(params.isEMgmt()){
261-
pm = (PassthroughMapping<String,String>) vmfFactoryPassthrough.createVisualMappingFunction(prefix + GS_DESCR, String.class, BasicVisualLexicon.NODE_LABEL);
262-
}
257+
PassthroughMapping<String,String> pm = (PassthroughMapping<String,String>) vmfFactoryPassthrough.createVisualMappingFunction(prefix + GS_DESCR, String.class, BasicVisualLexicon.NODE_LABEL);
263258

264259
vs.addVisualMappingFunction(pm);
265260

0 commit comments

Comments
 (0)