Examples of FieldEditor


Examples of org.eclipse.jface.preference.FieldEditor

    editor.fillIntoGrid(group, 2);
    adjustGroupLayout(group);
  }

  private void createCoverageRuntimeGroup(final Composite parent) {
    FieldEditor editor;
    final Group group = createGroup(parent,
        UIMessages.CoveragePreferencesCoverageRuntime_title);
    editor = new StringFieldEditor(UIPreferences.PREF_AGENT_INCLUDES,
        UIMessages.CoveragePreferencesIncludes_label, group);
    addField(editor);
    editor.fillIntoGrid(group, 2);
    editor = new StringFieldEditor(UIPreferences.PREF_AGENT_EXCLUDES,
        UIMessages.CoveragePreferencesExcludes_label, group);
    addField(editor);
    editor.fillIntoGrid(group, 2);
    editor = new StringFieldEditor(UIPreferences.PREF_AGENT_EXCLCLASSLOADER,
        UIMessages.CoveragePreferencesExcludeClassloaders_label, group);
    addField(editor);
    editor.fillIntoGrid(group, 2);
    Label hint = new Label(group, SWT.WRAP);
    GridDataFactory.fillDefaults().span(2, 1).applyTo(hint);
    hint.setText(UIMessages.CoveragePreferencesCoverageRuntime_message);
    adjustGroupLayout(group);
  }
View Full Code Here

Examples of org.eclipse.jface.preference.FieldEditor

  /**
   * Stores all <code>FieldEditor</code> instances.
   */
  private void storeFieldEditors() {
    for (Iterator<FieldEditor> i = this.fieldEditors.iterator(); i.hasNext();) {
      FieldEditor fieldEditor = (FieldEditor) i.next();
      if (fieldEditor != null) {
        fieldEditor.setPreferenceStore(this.store);
        fieldEditor.store();
      }
    }
  }
View Full Code Here

Examples of org.eclipse.jface.preference.FieldEditor

   * @param isDefautLoaded <code>true</code> if default field editors are loaded.
   *        <code>false</code> otherwise.
   */
  private void loadFieldEditors(boolean isDefautLoaded) {
    for (Iterator<FieldEditor> i = this.fieldEditors.iterator(); i.hasNext();) {
      FieldEditor fieldEditor = (FieldEditor) i.next();
      if (fieldEditor != null) {
        fieldEditor.setPreferenceStore(this.store);
        if (isDefautLoaded) {
          fieldEditor.loadDefault();
        }
        else {
          fieldEditor.load();
        }
      }
    }
  }
View Full Code Here

Examples of org.eclipse.jface.preference.FieldEditor

    for (Iterator<Object[]> i = fields.iterator(); i.hasNext();) {
      Object[] object = i.next();

      // Excludes enable filter check box.
      if (object.length >= 2) {
        FieldEditor fieldEditor = (FieldEditor) object[0];
        Composite parent = (Composite) object[1];
        fieldEditor.setEnabled(isEnabled, parent);
        // if a filed editor or composite is hooked to the filedEditor property listener.
        if (object.length >= 3) {
          if (!isEnabled
              || (isEnabled && (fieldEditor instanceof BooleanFieldEditor)
              && ((BooleanFieldEditor) fieldEditor).getBooleanValue())) {
View Full Code Here

Examples of org.eclipse.jface.preference.FieldEditor

   *        <code>false</code> otherwise.
   */
  private void loadFieldEditors(boolean isDefautLoaded) {
    for (Iterator<Object[]> i = this.fields.iterator(); i.hasNext();) {
      Object[] object = i.next();
      FieldEditor fieldEditor = (FieldEditor) object[0];
      fieldEditor.setPreferenceStore(this.store);
      if (isDefautLoaded) {
        fieldEditor.loadDefault();
      }
      else {
        fieldEditor.load();
      }
    }
  }
View Full Code Here

Examples of org.eclipse.jface.preference.FieldEditor

   * Stores all <code>FiledEditor</code> instances.
   */
  private void storeFieldEditors() {
    for (Iterator<Object[]> i = this.fields.iterator(); i.hasNext();) {
      Object[] object = (Object[]) i.next();
      FieldEditor fieldEditor = (FieldEditor) object[0];
      fieldEditor.setPreferenceStore(this.store);
      fieldEditor.store();
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.