1 11 package org.eclipse.ui.internal.dialogs; 12 13 import org.eclipse.jface.resource.JFaceColors; 14 import org.eclipse.swt.SWT; 15 import org.eclipse.swt.widgets.Composite; 16 import org.eclipse.swt.widgets.Control; 17 import org.eclipse.swt.widgets.Text; 18 import org.eclipse.ui.internal.WorkbenchMessages; 19 20 26 public class ErrorPreferencePage extends EmptyPreferencePage { 27 28 33 protected Control createContents(Composite parent) { 34 Text text = new Text(parent, SWT.MULTI | SWT.READ_ONLY | SWT.WRAP); 35 text.setForeground(JFaceColors.getErrorText(text.getDisplay())); 36 text.setBackground(text.getDisplay().getSystemColor( 37 SWT.COLOR_WIDGET_BACKGROUND)); 38 text.setText(WorkbenchMessages.ErrorPreferencePage_errorMessage); 39 return text; 40 } 41 } 42 | Popular Tags |