From: lehtonen Date: Fri, 2 Jul 2010 19:03:19 +0000 (+0000) Subject: Fixes for too quick changes to LabelDecorator contributions X-Git-Tag: simantics-1.2.0~183 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=654971828200d6837ead4b2c94290b0904a27fed;p=simantics%2Fsysdyn.git Fixes for too quick changes to LabelDecorator contributions git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@16501 ac1ea38d-2e2b-0410-8846-a27921b304fc --- diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/browser/contributions/ExperimentLabelDecorator.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/browser/contributions/ExperimentLabelDecorator.java index 88145ac5..b38c9f68 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/browser/contributions/ExperimentLabelDecorator.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/browser/contributions/ExperimentLabelDecorator.java @@ -2,7 +2,6 @@ package org.simantics.sysdyn.ui.browser.contributions; import org.eclipse.jface.resource.FontDescriptor; import org.eclipse.swt.SWT; -import org.eclipse.swt.graphics.Font; import org.simantics.browsing.ui.content.LabelDecorator; import org.simantics.browsing.ui.graph.contributor.labeler.LabelDecoratorContributor; import org.simantics.db.ReadGraph; @@ -23,7 +22,7 @@ public class ExperimentLabelDecorator extends LabelDecoratorContributor F decorateFont(F font, String column, int itemIndex) { - return (F) FontDescriptor.createFrom((Font) font).withStyle(SWT.BOLD); + return (F) ((FontDescriptor) font).withStyle(SWT.BOLD); } }; } diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/browser/contributions/SimulationResultDecorator.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/browser/contributions/SimulationResultDecorator.java index 19a5ee03..69469628 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/browser/contributions/SimulationResultDecorator.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/browser/contributions/SimulationResultDecorator.java @@ -2,7 +2,6 @@ package org.simantics.sysdyn.ui.browser.contributions; import org.eclipse.jface.resource.FontDescriptor; import org.eclipse.swt.SWT; -import org.eclipse.swt.graphics.Font; import org.simantics.browsing.ui.content.LabelDecorator; import org.simantics.browsing.ui.graph.contributor.labeler.LabelDecoratorContributor; import org.simantics.db.Builtins; @@ -21,7 +20,7 @@ public class SimulationResultDecorator extends LabelDecoratorContributor F decorateFont(F font, String column, int itemIndex) { - return (F) FontDescriptor.createFrom((Font) font).withStyle(SWT.BOLD); + return (F) ((FontDescriptor) font).withStyle(SWT.BOLD); } }; }