From: miettinen Date: Tue, 24 Jun 2014 11:50:11 +0000 (+0000) Subject: Sysdyn input output element text to bold italic (refs #5007). X-Git-Tag: v1.29.0~258 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=401ffb0feee96e8f5ed49a8fb91e082b44d08c47;p=simantics%2Fsysdyn.git Sysdyn input output element text to bold italic (refs #5007). git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@29719 ac1ea38d-2e2b-0410-8846-a27921b304fc --- diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements/SysdynElementFactory.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements/SysdynElementFactory.java index 174ae574..a3c3be2c 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements/SysdynElementFactory.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements/SysdynElementFactory.java @@ -157,7 +157,7 @@ public abstract class SysdynElementFactory extends SyncElementFactory { Resource component = graph.getPossibleObject(element, mr.ElementToComponent); if (component != null && graph.hasStatement(component, SysdynResource.getInstance(graph).IsOutput)) { Font font = ElementUtils.getTextFont(e); - font = font.deriveFont(Font.BOLD); + font = font.deriveFont(font.isItalic() ? Font.ITALIC | Font.BOLD : Font.BOLD); ElementUtils.setTextFont(e, font); }