@Override public boolean performOk() { return super.performOk(); }
@Override public final void createControl(Composite parent) { noDefaultAndApplyButton(); super.createControl(parent); }
@Override public void performDefaults() { handler.clearSlowMarkers(); super.performDefaults(); } }
@Override protected Control createContents(Composite parent) { fieldEditorParent = new Composite(parent, SWT.NULL); GridLayout layout = new GridLayout(); layout.numColumns = 1; layout.marginHeight = 0; layout.marginWidth = 0; fieldEditorParent.setLayout(layout); fieldEditorParent.setFont(parent.getFont()); createFieldEditors(); if (style == GRID) { adjustGridLayout(); } initialize(); checkState(); return fieldEditorParent; }
/** * The field editor preference page implementation of this <code>IPreferencePage</code> * (and <code>IPropertyChangeListener</code>) method intercepts <code>IS_VALID</code> * events but passes other events on to its superclass. */ public void propertyChange(PropertyChangeEvent event) { if (event.getProperty().equals(FieldEditor.IS_VALID)) { boolean newValue = ((Boolean) event.getNewValue()).booleanValue(); // If the new value is true then we must check all field editors. // If it is false, then the page is invalid in any case. if (newValue) { checkState(); } else { invalidFieldEditor = (FieldEditor) event.getSource(); setValid(newValue); } } }
@Override protected Control createContents(Composite parent) { Control contents = super.createContents(parent); return contents; }
@Override public void propertyChange(PropertyChangeEvent event) { //if(event.getSource() == bkgScheduledRefresh || event.getSource() == scheduledDelay) { // updateEnablements(); // } super.propertyChange(event); }
@Override protected void initialize() { super.initialize(); updateEnablements(); }
@Override protected void checkState() { super.checkState(); setValid(true); }
/** * Adjust the layout of the field editors so that they are properly aligned. */ @Override protected void adjustGridLayout() { super.adjustGridLayout(); ((GridLayout) getFieldEditorParent().getLayout()).numColumns = 1; }
protected Control createContents(Composite parent) { fieldEditorParent = new Composite(parent, SWT.NULL); GridLayout layout = new GridLayout(); layout.numColumns = 1; layout.marginHeight = 0; layout.marginWidth = 0; fieldEditorParent.setLayout(layout); fieldEditorParent.setFont(parent.getFont()); createFieldEditors(); if (style == GRID) { adjustGridLayout(); } initialize(); checkState(); return fieldEditorParent; }
@Override protected Control createContents ( final Composite parent ) { final Composite wrapper = new Composite ( parent, SWT.NONE ); wrapper.setLayout ( new GridLayout ( 1, false ) ); final Control control = super.createContents ( wrapper ); control.setLayoutData ( new GridData ( SWT.FILL, SWT.FILL, true, false ) ); createDescription ( wrapper ); return wrapper; }
public void propertyChange(PropertyChangeEvent event) { //if(event.getSource() == bkgScheduledRefresh || event.getSource() == scheduledDelay) { // updateEnablements(); // } super.propertyChange(event); }
protected void initialize() { super.initialize(); updateEnablements(); }
/** * The field editor preference page implementation of this <code>IPreferencePage</code> * (and <code>IPropertyChangeListener</code>) method intercepts <code>IS_VALID</code> * events but passes other events on to its superclass. */ @Override public void propertyChange(PropertyChangeEvent event) { if (event.getProperty().equals(FieldEditor.IS_VALID)) { boolean newValue = ((Boolean) event.getNewValue()).booleanValue(); // If the new value is true then we must check all field editors. // If it is false, then the page is invalid in any case. if (newValue) { checkState(); } else { invalidFieldEditor = (FieldEditor) event.getSource(); setValid(newValue); } } }
/** * The field editor preference page implementation of a <code>PreferencePage</code> * method loads all the field editors with their default values. */ protected void performDefaults() { if (fields != null) { Iterator e = fields.iterator(); while (e.hasNext()) { FieldEditor pe = (FieldEditor) e.next(); pe.loadDefault(); } } // Force a recalculation of my error state. checkState(); super.performDefaults(); }
/** * When the user applies the preferences, update the set of stored preferences so that we will fall back to the applied values on Cancel. */ @Override public boolean performOk() { storeAppliedValues(); return super.performOk(); }
@Override public void createControl ( final Composite parent ) { super.createControl ( parent ); refresh (); }
@Override protected Control createContents(Composite parent) { fieldEditorParent = new Composite(parent, SWT.NULL); GridLayout layout = new GridLayout(); layout.numColumns = 1; layout.marginHeight = 0; layout.marginWidth = 0; fieldEditorParent.setLayout(layout); fieldEditorParent.setFont(parent.getFont()); createFieldEditors(); if (style == GRID) { adjustGridLayout(); } initialize(); checkState(); return fieldEditorParent; }
@Override protected void performDefaults() { super.performDefaults(); initCurrentWindow(); }