From 654971828200d6837ead4b2c94290b0904a27fed Mon Sep 17 00:00:00 2001 From: lehtonen Date: Fri, 2 Jul 2010 19:03:19 +0000 Subject: [PATCH] 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 --- .../ui/browser/contributions/ExperimentLabelDecorator.java | 3 +-- .../ui/browser/contributions/SimulationResultDecorator.java | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) 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); } }; } -- 2.47.1