Search in sources :

Example 6 with FontStyle

use of org.eclipse.gmf.runtime.notation.FontStyle in project tdi-studio-se by Talend.

the class DataBusinessItemNameEditPart method refreshFont.

/**
     * @generated
     */
protected void refreshFont() {
    FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
    if (style != null) {
        FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
        setFont(fontData);
    }
}
Also used : FontStyle(org.eclipse.gmf.runtime.notation.FontStyle) FontData(org.eclipse.swt.graphics.FontData)

Example 7 with FontStyle

use of org.eclipse.gmf.runtime.notation.FontStyle in project tdi-studio-se by Talend.

the class TerminalBusinessItemNameEditPart method refreshFont.

/**
     * @generated
     */
protected void refreshFont() {
    FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
    if (style != null) {
        FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
        setFont(fontData);
    }
}
Also used : FontStyle(org.eclipse.gmf.runtime.notation.FontStyle) FontData(org.eclipse.swt.graphics.FontData)

Example 8 with FontStyle

use of org.eclipse.gmf.runtime.notation.FontStyle in project tdi-studio-se by Talend.

the class DatabaseBusinessItemNameEditPart method refreshFont.

/**
     * @generated
     */
protected void refreshFont() {
    FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
    if (style != null) {
        FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
        setFont(fontData);
    }
}
Also used : FontStyle(org.eclipse.gmf.runtime.notation.FontStyle) FontData(org.eclipse.swt.graphics.FontData)

Example 9 with FontStyle

use of org.eclipse.gmf.runtime.notation.FontStyle in project tdi-studio-se by Talend.

the class BusinessItemRelationshipNameEditPart method refreshFont.

/**
     * @generated
     */
protected void refreshFont() {
    FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
    if (style != null) {
        FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
        setFont(fontData);
    }
}
Also used : FontStyle(org.eclipse.gmf.runtime.notation.FontStyle) FontData(org.eclipse.swt.graphics.FontData)

Example 10 with FontStyle

use of org.eclipse.gmf.runtime.notation.FontStyle in project tdi-studio-se by Talend.

the class DocumentBusinessItemNameEditPart method refreshFont.

/**
     * @generated
     */
protected void refreshFont() {
    FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
    if (style != null) {
        FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
        setFont(fontData);
    }
}
Also used : FontStyle(org.eclipse.gmf.runtime.notation.FontStyle) FontData(org.eclipse.swt.graphics.FontData)

Aggregations

FontStyle (org.eclipse.gmf.runtime.notation.FontStyle)14 FontData (org.eclipse.swt.graphics.FontData)14