]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Fixes for too quick changes to LabelDecorator contributions
authorlehtonen <lehtonen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Fri, 2 Jul 2010 19:03:19 +0000 (19:03 +0000)
committerlehtonen <lehtonen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Fri, 2 Jul 2010 19:03:19 +0000 (19:03 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@16501 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/browser/contributions/ExperimentLabelDecorator.java
org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/browser/contributions/SimulationResultDecorator.java

index 88145ac5d7e25f929971eb105d7df0ac05929367..b38c9f6828f8b0b272990d2e7a97fd13f3f6f1da 100644 (file)
@@ -2,7 +2,6 @@ package org.simantics.sysdyn.ui.browser.contributions;
 \r
 import org.eclipse.jface.resource.FontDescriptor;\r
 import org.eclipse.swt.SWT;\r
-import org.eclipse.swt.graphics.Font;\r
 import org.simantics.browsing.ui.content.LabelDecorator;\r
 import org.simantics.browsing.ui.graph.contributor.labeler.LabelDecoratorContributor;\r
 import org.simantics.db.ReadGraph;\r
@@ -23,7 +22,7 @@ public class ExperimentLabelDecorator extends LabelDecoratorContributor<Experime
                 @SuppressWarnings("unchecked")\r
                 @Override\r
                 public <F> F decorateFont(F font, String column, int itemIndex) {\r
-                    return (F) FontDescriptor.createFrom((Font) font).withStyle(SWT.BOLD);\r
+                    return (F) ((FontDescriptor) font).withStyle(SWT.BOLD);\r
                 }\r
             };\r
         }\r
index 19a5ee03feba6839db009c8b322645853d6b98a1..694696283d4cd2ca23d3dea086874c65dc46af82 100644 (file)
@@ -2,7 +2,6 @@ package org.simantics.sysdyn.ui.browser.contributions;
 \r
 import org.eclipse.jface.resource.FontDescriptor;\r
 import org.eclipse.swt.SWT;\r
-import org.eclipse.swt.graphics.Font;\r
 import org.simantics.browsing.ui.content.LabelDecorator;\r
 import org.simantics.browsing.ui.graph.contributor.labeler.LabelDecoratorContributor;\r
 import org.simantics.db.Builtins;\r
@@ -21,7 +20,7 @@ public class SimulationResultDecorator extends LabelDecoratorContributor<Simulat
                 @SuppressWarnings("unchecked")\r
                 @Override\r
                 public <F> F decorateFont(F font, String column, int itemIndex) {\r
-                    return (F) FontDescriptor.createFrom((Font) font).withStyle(SWT.BOLD);\r
+                    return (F) ((FontDescriptor) font).withStyle(SWT.BOLD);\r
                 }\r
             };\r
         }\r