1 11 package org.eclipse.ui.internal.texteditor.spelling; 12 13 import org.eclipse.swt.SWT; 14 import org.eclipse.swt.layout.GridData; 15 import org.eclipse.swt.layout.GridLayout; 16 import org.eclipse.swt.widgets.Composite; 17 import org.eclipse.swt.widgets.Control; 18 import org.eclipse.swt.widgets.Label; 19 20 import org.eclipse.ui.texteditor.spelling.ISpellingPreferenceBlock; 21 import org.eclipse.ui.texteditor.spelling.IPreferenceStatusMonitor; 22 23 24 31 public class EmptySpellingPreferenceBlock implements ISpellingPreferenceBlock { 32 33 36 public Control createControl(Composite composite) { 37 Composite inner= new Composite(composite, SWT.NONE); 38 inner.setLayout(new GridLayout(3, false)); 39 40 Label label= new Label(inner, SWT.CENTER); 41 GridData gd= new GridData(GridData.FILL_BOTH); 42 gd.widthHint= 30; 43 label.setLayoutData(gd); 44 45 label= new Label(inner, SWT.CENTER); 46 label.setText(SpellingMessages.EmptySpellingPreferenceBlock_emptyCaption); 47 gd= new GridData(GridData.CENTER); 48 label.setLayoutData(gd); 49 50 label= new Label(inner, SWT.CENTER); 51 gd= new GridData(GridData.FILL_BOTH); 52 gd.widthHint= 30; 53 label.setLayoutData(gd); 54 55 return inner; 56 } 57 58 61 public void initialize(IPreferenceStatusMonitor statusMonitor) { 62 } 63 64 67 public boolean canPerformOk() { 68 return true; 69 } 70 71 74 public void performOk() { 75 } 76 77 80 public void performDefaults() { 81 } 82 83 86 public void performRevert() { 87 } 88 89 92 public void dispose() { 93 } 94 95 98 public void setEnabled(boolean enabled) { 99 } 100 } 101 | Popular Tags |