Example usage for org.eclipse.jface.viewers ViewerCell setFont

List of usage examples for org.eclipse.jface.viewers ViewerCell setFont

Introduction

In this page you can find the example usage for org.eclipse.jface.viewers ViewerCell setFont.

Prototype

public void setFont(Font font) 

Source Link

Document

Set the font of the cell.

Usage

From source file:uk.ac.stfc.isis.ibex.ui.configserver.editing.blocks.BlockRowCellDecorator.java

License:Open Source License

private static void modifyFont(ViewerCell cell, int modifier) {
    FontData fontData = cell.getFont().getFontData()[0];
    Font font = SWTResourceManager.getFont(fontData.getName(), fontData.getHeight(),
            fontData.getStyle() | modifier);
    cell.setFont(font);
}

From source file:uk.ac.stfc.isis.ibex.ui.configserver.editing.iocs.IocSimulationCellDecorator.java

License:Open Source License

private void bold(ViewerCell cell) {
    cell.setFont(BOLD_FONT);
}

From source file:uk.ac.stfc.isis.ibex.ui.configserver.editing.iocs.IocSimulationCellDecorator.java

License:Open Source License

private void unbold(ViewerCell cell) {
    cell.setFont(NORMAL_FONT);
}