wRegExScriptCompile.setForeground( guiresource.getColorBlue() ); wRegExScriptCompile.setText( BaseMessages .getString( PKG, "RegexEvalHelperDialog.ScriptSuccessfullyCompiled" ) ); } catch ( Exception e ) { if ( !errorDisplayed ) { wRegExScriptCompile.setForeground( guiresource.getColorRed() ); wRegExScriptCompile.setText( e.getMessage() ); wRegExScriptCompile.setToolTipText( BaseMessages.getString(
props.setLook( wBox ); wText = new TextVar( space, this, flags | SWT.NO_BACKGROUND ); wText.getTextWidget().setForeground( GUIResource.getInstance().getColorRed() ); // Put it in a red color to make it
fdText.left = new FormAttachment( toolbarLeft, TOOL_ITEM_SPACING ); textURL.setLayoutData( fdText ); textURL.setForeground( new Color( display, 101, 101, 101 ) );
/** * @param color * @see org.eclipse.swt.widgets.Control#setForeground(org.eclipse.swt.graphics.Color) */ public void setForeground(Color color) { m_text.setForeground(color); } }
void enableWidget(boolean enabled) { super.enableWidget(enabled); if ((style & SWT.MULTI) != 0) { setForeground(this.foreground); } }
/** * Empties the text box and set font color to black. */ private void setEmptyText() { filterText.setText(""); filterText.setForeground(Display.getDefault().getSystemColor(SWT.COLOR_BLACK)); } }
/** * Sets default text in gray color. */ private void setDefaultText() { searchText.setText(DEFAULT_TEXT); searchText.setForeground(Display.getDefault().getSystemColor(SWT.COLOR_GRAY)); }
/** * Empties the text box and set font color to black. */ private void setEmptyText() { searchText.setText(""); searchText.setForeground(Display.getDefault().getSystemColor(SWT.COLOR_BLACK)); }
/** * Sets default text in gray color. */ private void setDefaultText() { filterText.setText(defaultText); filterText.setForeground(Display.getDefault().getSystemColor(SWT.COLOR_GRAY)); }
private void setERRORStatusMessage(String message) { messageBanner_.setText(message); messageBanner_.setForeground(Display.getCurrent().getSystemColor(SWT.COLOR_RED)); disableOKButton(); }
private void setOKStatusMessage() { messageBanner_.setText(ConsumptionUIMessages.PAGE_DESC_WS_RUNTIME_SELECTION); messageBanner_.setForeground(Display.getCurrent().getSystemColor(SWT.COLOR_BLACK)); enableOKButton(); }
public void setForeground (Color color) { super.setForeground(color); foreground = color; if (text != null) text.setForeground(color); if (list != null) list.setForeground(color); if (arrow != null) arrow.setForeground(color); } /**
private void setForegroundColor(Color foreground) { fTableViewer.getTable().setForeground(foreground); fFilterText.setForeground(foreground); fComposite.setForeground(foreground); }
private void setForegroundColor(Color foreground) { fTableViewer.getTable().setForeground(foreground); fFilterText.setForeground(foreground); fComposite.setForeground(foreground); }
@Override public void setForeground (Color color) { super.setForeground(color); foreground = color; if (text != null) text.setForeground(color); if (list != null) list.setForeground(color); if (arrow != null) arrow.setForeground(color); } /**
public void modifyText(ModifyEvent e) { if (!artifactIdChanged) { artifactIdChanged = true; artifactId.setForeground(container.getForeground()); } dialogChanged(); advancedSettings.handleModifyText(); } });
public void setForeground (Color color) { super.setForeground(color); foreground = color; if (text != null) text.setForeground(color); if (list != null) list.setForeground(color); if (arrow != null) arrow.setForeground(color); } /**
@Override public void setForeground (Color color) { super.setForeground(color); foreground = color; if (text != null) text.setForeground(color); if (list != null) list.setForeground(color); if (arrow != null) arrow.setForeground(color); } /**
@Override protected Control createContents(Composite parent) { Text text = new Text(parent, SWT.MULTI | SWT.READ_ONLY | SWT.WRAP); text.setForeground(JFaceColors.getErrorText(text.getDisplay())); text.setBackground(text.getDisplay().getSystemColor( SWT.COLOR_WIDGET_BACKGROUND)); text.setText(WorkbenchMessages.ErrorPreferencePage_errorMessage); return text; } }
/** * @see org.eclipse.ui.IWorkbenchPart#createPartControl(Composite) */ @Override public void createPartControl(Composite parent) { fText = new Text(parent,SWT.MULTI|SWT.READ_ONLY|SWT.WRAP); fText.setForeground(JFaceColors.getErrorText(fText.getDisplay())); fText.setBackground(fText.getDisplay().getSystemColor(SWT.COLOR_WIDGET_BACKGROUND)); if (getEditorInput() != null) { setInput(getEditorInput()); } }