\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
@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
\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
@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