public Font getFont(Object element) { Font italic = fr.getItalic(JFaceResources.DEFAULT_FONT); return italic; } }
public Font getFont(Object element) { if (isDerived(element)) { return JFaceResources.getFontRegistry().getItalic(JFaceResources.DIALOG_FONT); } else { return null; } }
/** * Updates the visual for busy state of the part tab in case CSS engine is * not active */ static void updateBusyStateNoCss(CTabItem cti, Object newValue, Object oldValue) { Font updatedFont = null; if (CSSConstants.CSS_BUSY_CLASS.equals(newValue)) { updatedFont = JFaceResources.getFontRegistry().getItalic(TAB_FONT_KEY); } else if (CSSConstants.CSS_BUSY_CLASS.equals(oldValue)) { updatedFont = JFaceResources.getFontRegistry().get(TAB_FONT_KEY); } if (updatedFont != null) { cti.setFont(updatedFont); } } }
/** * Method that provides a custom font for elements that are * busy. Although this label provider does not implement * {@link IFontProvider}, subclasses that wish to get * busy indication using a font can do so. * @param element the element * @return the font to indicate that the element is busy */ public Font getFont(Object element) { if(isBusy(internalGetElement(element))) { return JFaceResources.getFontRegistry().getItalic(JFaceResources.DEFAULT_FONT); } return null; }
/** * Method that provides a custom font for elements that are * busy. Although this label provider does not implement * {@link IFontProvider}, subclasses that wish to get * busy indication using a font can do so. * @param element the element * @return the font to indicate that the element is busy */ public Font getFont(Object element) { if(isBusy(internalGetElement(element))) { return JFaceResources.getFontRegistry().getItalic(JFaceResources.DEFAULT_FONT); } return null; }
/** * @param id * see {@link FontRegistry#getItalic(String)} * @return the font */ public static Font getItalicFont(final String id) { return PlatformUI.getWorkbench().getThemeManager().getCurrentTheme() .getFontRegistry().getItalic(id); }
private Font getFont(boolean hidden, boolean active) { ITheme theme = PlatformUI.getWorkbench().getThemeManager().getCurrentTheme(); if (active) { return theme.getFontRegistry().getItalic(IWorkbenchThemeConstants.TAB_TEXT_FONT); } if (hidden) { return theme.getFontRegistry().getBold(IWorkbenchThemeConstants.TAB_TEXT_FONT); } return theme.getFontRegistry().get(IWorkbenchThemeConstants.TAB_TEXT_FONT); }