Skip to content

Commit 58924f0

Browse files
committed
Made sure we have a string style when doing the cross-species node
colors.
1 parent 3743a72 commit 58924f0

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

src/main/java/edu/ucsf/rbvi/stringApp/internal/utils/ViewUtils.java

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -599,15 +599,16 @@ public static void updateNodeColors(StringManager manager, CyNetwork net, CyNetw
599599
if (style == null)
600600
return;
601601

602-
// TODO: [Release] find out what happens here
603-
// if (!style.getTitle().startsWith(STYLE_NAME_ORG_NAMESPACES)) {
604-
// VisualStyleFactory vsf = manager.getService(VisualStyleFactory.class);
605-
//
606-
// VisualStyle stringStyle = vsf.createVisualStyle(vmm.getCurrentVisualStyle());
607-
// stringStyle.setTitle(STYLE_ORG + style.getTitle());
608-
// vmm.addVisualStyle(stringStyle);
609-
// style = stringStyle;
610-
// }
602+
// TODO: [N] Is this the right way to do it?
603+
// Why do we need this?
604+
if (!style.getTitle().startsWith(STYLE_NAME_SIMPLE)) {
605+
VisualStyleFactory vsf = manager.getService(VisualStyleFactory.class);
606+
607+
VisualStyle stringStyle = vsf.createVisualStyle(vmm.getCurrentVisualStyle());
608+
stringStyle.setTitle(STYLE_NAME_SIMPLE + style.getTitle());
609+
vmm.addVisualStyle(stringStyle);
610+
style = stringStyle;
611+
}
611612

612613
updateColorMapHost(manager, style, net, speciesList);
613614

stringApp-2.0.0.jar

105 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)