Пример #1
0
 public void dispose() {
   super.dispose();
   if (cellEditor != null) cellEditor.dispose();
   cellEditor = null;
   if (fieldEditor != null) fieldEditor.dispose();
   fieldEditor = null;
   listContentProvider = null;
 }
Пример #2
0
  /*
   * (non-Javadoc)
   *
   * @see org.eclipse.jface.preference.FieldEditorPreferencePage#adjustGridLayout()
   */
  protected void adjustGridLayout() {
    super.adjustGridLayout();

    ((GridData) verticalAlign.getComboBoxControl(getFieldEditorParent()).getLayoutData())
            .widthHint =
        167;

    ((GridData) textAlign.getComboBoxControl(getFieldEditorParent()).getLayoutData()).widthHint =
        167;

    ((GridData) textTrans.getComboBoxControl(getFieldEditorParent()).getLayoutData()).widthHint =
        167;

    ((GridData) whiteSpace.getComboBoxControl(getFieldEditorParent()).getLayoutData()).widthHint =
        167;

    ((GridData) display.getComboBoxControl(getFieldEditorParent()).getLayoutData()).widthHint = 167;

    // bidi_hcg
    ((GridData) direction.getComboBoxControl(getFieldEditorParent()).getLayoutData()).widthHint =
        167;
  }
Пример #3
0
 protected ExtendedFieldEditor createFieldEditor(Composite parent) {
   fieldEditor = new ComboBoxFieldEditor(settings);
   fieldEditor.setLabelText(getLabelText());
   return fieldEditor;
 }