Example usage for org.eclipse.jface.resource JFaceResources getDialogFontDescriptor

List of usage examples for org.eclipse.jface.resource JFaceResources getDialogFontDescriptor

Introduction

In this page you can find the example usage for org.eclipse.jface.resource JFaceResources getDialogFontDescriptor.

Prototype

public static FontDescriptor getDialogFontDescriptor() 

Source Link

Document

Returns the descriptor for JFace's dialog font.

Usage

From source file:com.ibm.xsp.extlib.designer.tooling.utils.WizardUtils.java

License:Open Source License

public static Button createCheckBox(Composite parent, String text, int span, boolean select, int indent,
        boolean bold) {
    Button btn = createCheckBox(parent, text, span, select, indent);
    if (bold) {/*from   w  ww  . ja  v a  2s .  c  om*/
        btn.setFont(JFaceResources.getDialogFontDescriptor().withStyle(SWT.BOLD).createFont(null));
    }

    return btn;
}

From source file:com.ibm.xsp.extlib.designer.tooling.utils.WizardUtils.java

License:Open Source License

public static Label createLabel(Composite parent, String text, int span, int indent, boolean bold, int fill) {
    Label label = createLabel(parent, text, span, SWT.NONE, fill);
    if (bold) {/* www . j  av  a2 s . c o  m*/
        label.setFont(JFaceResources.getDialogFontDescriptor().withStyle(SWT.BOLD).createFont(null));
    }
    GridData gridData = (GridData) label.getLayoutData();
    gridData.horizontalIndent = indent;

    return label;
}

From source file:edu.tum.in.bruegge.epd.emfstore.handler.merge.util.DecisionConfig.java

License:Open Source License

/**
 * Inits the fonts for the dialog./* w  w  w.j a  v  a  2  s  . c om*/
 * 
 * @param fontRegistry
 *            fontRegistry
 */
public static void initFonts(FontRegistry fontRegistry) {
    FontData[] fontData = JFaceResources.getDialogFontDescriptor().getFontData();
    if (fontData.length > 0) {
        fontData[0].setStyle(SWT.ITALIC);
        fontData[0].setHeight(fontData[0].getHeight() - 1);
    }
    fontRegistry.put("titleLabel", fontData);
    fontRegistry.put("content", JFaceResources.getDialogFontDescriptor().getFontData());
}