@Override public Font getFont(Object element) { if (element instanceof ModelChangeElement) { ModelChangeElement changeElement = (ModelChangeElement) element; if (changeElement.isExternalized()) { return fFontRegistry.getBold(JFaceResources.DIALOG_FONT); } } return null; } }
/** * @return a font for titles in the tooltips */ Font getTitleFont() { return JFaceResources.getFontRegistry().getBold(NameAndDescriptionToolTip.class.getName()); }
public Font getFont(Object element) { if (isDefaultTask((TodoTask) element)) { return JFaceResources.getFontRegistry().getBold(JFaceResources.DIALOG_FONT); } return null; } }
public Font getFont(Object element, int columnIndex) { ParameterInfo info= (ParameterInfo) element; if (info.isAdded()) return JFaceResources.getFontRegistry().getBold(JFaceResources.DIALOG_FONT); else return null; } }
@Override public Font getFont(Object element) { if (element instanceof NLSSubstitution) { NLSSubstitution substitution= (NLSSubstitution) element; if (substitution.hasPropertyFileChange() || substitution.hasSourceChange()) { return fFontRegistry.getBold(JFaceResources.DIALOG_FONT); } } return null; }
@Override public Font getFont(Object element, int columnIndex) { ParameterInfo info= (ParameterInfo) element; if (info.isAdded()) return JFaceResources.getFontRegistry().getBold(JFaceResources.DIALOG_FONT); else return null; } }
public Font getFont(Object element) { if (element instanceof NLSSubstitution) { NLSSubstitution substitution= (NLSSubstitution) element; if (substitution.hasPropertyFileChange() || substitution.hasSourceChange()) { return fFontRegistry.getBold(JFaceResources.DIALOG_FONT); } } return null; }
@Override public Font getFont(Object element) { if (isDefaultTask((TodoTask) element)) { return JFaceResources.getFontRegistry().getBold(JFaceResources.DIALOG_FONT); } return null; } }
@Override public Font getFont(Object element) { if (element instanceof NLSSubstitution) { NLSSubstitution substitution= (NLSSubstitution) element; if (substitution.hasPropertyFileChange() || substitution.hasSourceChange()) { return fFontRegistry.getBold(JFaceResources.DIALOG_FONT); } } return null; }
@Override public Font getFont(Object element, int columnIndex) { ParameterInfo info= (ParameterInfo) element; if (info.isAdded()) return JFaceResources.getFontRegistry().getBold(JFaceResources.DIALOG_FONT); else return null; } }
@Override public Font getFont(Object element) { if (isDefaultTask((TodoTask) element)) { return JFaceResources.getFontRegistry().getBold(JFaceResources.DIALOG_FONT); } return null; } }
/** * Get a font known to this plugin, but with bold style applied over top. * * @param id * one of our THEME_* font preference ids (see * {@link UIPreferences}); * @return the configured font, borrowed from the registry. */ public static Font getBoldFont(final String id) { return getTheme().getFontRegistry().getBold(id); }
public Font getFont(Object element, int columnIndex) { if ((element instanceof LogSession) && (logView.isCurrentLogSession((LogSession) element))) { return JFaceResources.getFontRegistry().getBold(JFaceResources.DEFAULT_FONT); } return null; } }
protected void updateSectionStyle(ExpandableComposite excomposite) { excomposite.setFont(JFaceResources.getFontRegistry().getBold(JFaceResources.DIALOG_FONT)); }
@Override public Font getFont(Object element) { if (fFilteredTree.isFiltered() && fPatternFilter.getMatchingLeafs().contains(element)) { return JFaceResources.getFontRegistry().getBold(JFaceResources.DIALOG_FONT); } return null; } }
static void addHighlight(MPart part, CTabItem cti, boolean cssEngineActive) { part.getTags().add(CSSConstants.CSS_HIGHLIGHTED_CLASS); if (!cssEngineActive) { cti.setFont(JFaceResources.getFontRegistry().getBold(TAB_FONT_KEY)); } }
/** * @param id * see {@link FontRegistry#getBold(String)} * @return the font */ public static Font getBoldFont(final String id) { return PlatformUI.getWorkbench().getThemeManager().getCurrentTheme() .getFontRegistry().getBold(id); }
protected ExpandableComposite createStyleSection(Composite parent, String label, int nColumns) { ExpandableComposite excomposite= new ExpandableComposite(parent, SWT.NONE, ExpandableComposite.TWISTIE | ExpandableComposite.CLIENT_INDENT); excomposite.setText(label); excomposite.setExpanded(false); excomposite.setFont(JFaceResources.getFontRegistry().getBold(JFaceResources.DIALOG_FONT)); excomposite.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false, nColumns, 1)); excomposite.addExpansionListener(new ExpansionAdapter() { public void expansionStateChanged(ExpansionEvent e) { expandedStateChanged((ExpandableComposite) e.getSource()); } }); fExpandedComposites.add(excomposite); makeScrollableCompositeAware(excomposite); return excomposite; }
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); }
private void createTitleArea() { title = createComposite(container); final String providerName = provider.getDescription().getName(); final Image providerImage = provider.getDescription().getImage(); final CLabel l = new CLabel(title, SWT.NONE); l.setFont(JFaceResources.getFontRegistry().getBold(JFaceResources.DEFAULT_FONT)); setInfoForegroundColor(l); setInfoBackgroundColor(l); l.setText(providerName); l.setImage(providerImage); }