List of usage examples for org.eclipse.jface.resource JFaceResources getBannerFont
public static Font getBannerFont()
From source file:org.rssowl.ui.internal.dialogs.StartupProgressDialog.java
License:Open Source License
private void createTitleArea(Composite parent) { Composite messageContainer = new Composite(parent, SWT.NONE); messageContainer.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false)); messageContainer.setLayout(LayoutUtils.createGridLayout(1)); messageContainer.setBackground(parent.getBackground()); /* Title Message */ Label titleMessage = new Label(messageContainer, SWT.NONE); titleMessage.setFont(JFaceResources.getBannerFont()); titleMessage.setText(Messages.StartupProgressDialog_PROGRESS_INFO); titleMessage.setBackground(parent.getBackground()); /* Title Footer */ Label titleFooter = new Label(messageContainer, SWT.NONE); titleFooter.setText(Messages.StartupProgressDialog_PROGRESS_MESSAGE); titleFooter.setFont(JFaceResources.getDialogFont()); titleFooter.setBackground(parent.getBackground()); GridData data = new GridData(SWT.FILL, SWT.BEGINNING, true, false); data.horizontalIndent = 10;/*from w w w.j av a2 s .co m*/ data.verticalIndent = 5; titleFooter.setLayoutData(data); /* RSSOwl Logo */ Label imageLabel = new Label(parent, SWT.None); imageLabel.setImage(OwlUI.getImage(fResources, "icons/wizban/welcome_wiz.gif")); //$NON-NLS-1$ imageLabel.setBackground(parent.getBackground()); /* Separator */ Label separator = new Label(parent, SWT.SEPARATOR | SWT.HORIZONTAL); separator.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false, 2, 1)); separator.setBackground(parent.getBackground()); }
From source file:org.rubypeople.rdt.internal.testunit.ui.CounterPanel.java
License:Open Source License
private Label createLabel(String name, Image image, String init) { Label label = new Label(this, SWT.NONE); if (image != null) { image.setBackground(label.getBackground()); label.setImage(image);/*from w w w .j av a 2 s.c o m*/ } label.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING)); label = new Label(this, SWT.NONE); label.setText(name); label.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING)); label.setFont(JFaceResources.getBannerFont()); Label value = new Label(this, SWT.READ_ONLY); value.setText(init); // bug: 39661 Junit test counters do not repaint correctly [JUnit] value.setLayoutData(new GridData(GridData.FILL_HORIZONTAL | GridData.HORIZONTAL_ALIGN_BEGINNING)); return value; }
From source file:org.whole.lang.ui.figures.LabelFactory.java
License:Open Source License
public static EntityLabel createModuleNamespace() { return new EntityLabel() { public Color getLocalForegroundColor() { return FigurePrefs.modulesColor; }//w ww . jav a 2s . com public Font getLocalFont() { return JFaceResources.getBannerFont(); } }; }
From source file:org.xmind.ui.internal.browser.BrowserErrorText.java
License:Open Source License
private void fillContent(Composite parent, Color bg) { GridLayout layout = new GridLayout(); layout.verticalSpacing = 10;/* w w w .j a va 2s . c om*/ parent.setLayout(layout); title = new Label(parent, SWT.WRAP); title.setText(BrowserMessages.BrowserText_EmbeddedBrowserUnavailableInfo); title.setFont(JFaceResources.getHeaderFont()); title.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); title.setBackground(bg); link = new Link(parent, SWT.WRAP); link.setText(""); //$NON-NLS-1$ link.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); link.setToolTipText("<a href=\"open\">" + BrowserMessages.BrowserText_OpenFileLinkToolTip + "</a>"); //$NON-NLS-1$ //$NON-NLS-2$ link.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { BusyIndicator.showWhile(link.getDisplay(), new Runnable() { public void run() { doOpenExternal(); } }); } }); link.setBackground(bg); sep = new Label(parent, SWT.SEPARATOR | SWT.HORIZONTAL); sep.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); exTitle = new Label(parent, SWT.NULL); exTitle.setBackground(bg); exTitle.setFont(JFaceResources.getBannerFont()); exTitle.setText(BrowserMessages.BrowserText_ProblemDetailsTitle); exTitle.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); text = new Label(parent, SWT.WRAP); text.setText(BrowserMessages.BrowserText_ProblemDetails); text.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); text.setBackground(bg); button = new Button(parent, SWT.PUSH); updateButtonText(); button.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { toggleException(); } }); exception = new Text(parent, SWT.MULTI); loadExceptionText(); GridData gd = new GridData(GridData.FILL_BOTH); gd.exclude = true; exception.setLayoutData(gd); }
From source file:v9t9.gui.client.swt.shells.ROMSetupLabelProvider.java
License:Open Source License
@Override public Font getFont(Object element, int columnIndex) { if (element instanceof MemoryEntryInfo && contentProvider.getPathFor((MemoryEntryInfo) element) == null) { return JFaceResources.getFontRegistry().getItalic(JFaceResources.DIALOG_FONT); }// w w w . ja va 2 s. c o m if (element instanceof String) { return JFaceResources.getBannerFont(); } return null; }