Package org.eclipse.jface.preference

Examples of org.eclipse.jface.preference.BooleanFieldEditor


  protected static TabElements createBasicTabElements(Composite composite,
      final Runnable modifyListener, PreferenceStore store, Params params) {
    final StringFieldEditor debugHost;
    final IntegerFieldEditor debugPort;
    final BooleanFieldEditor addNetworkConsole;
    {
      Group connectionGroup = new Group(composite, 0);
      connectionGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
      connectionGroup.setText(Messages.ChromiumRemoteTab_CONNECTION_GROUP);
      connectionGroup.setLayout(new GridLayout(1, false));


      IPropertyChangeListener propertyModifyListener = new IPropertyChangeListener() {
        public void propertyChange(PropertyChangeEvent event) {
          modifyListener.run();
        }
      };


      Composite propertiesComp = createInnerComposite(connectionGroup, 2);

      // Host text field
      debugHost = new StringFieldEditor(HOST_FIELD_NAME,
          Messages.ChromiumRemoteTab_HostLabel, propertiesComp);
      debugHost.setPropertyChangeListener(propertyModifyListener);
      debugHost.setPreferenceStore(store);

      // Port text field
      debugPort = new IntegerFieldEditor(PORT_FIELD_NAME,
          Messages.ChromiumRemoteTab_PortLabel, propertiesComp);
      debugPort.setPropertyChangeListener(propertyModifyListener);
      debugPort.setPreferenceStore(store);

      addNetworkConsole =
          new BooleanFieldEditor(ADD_NETWORK_CONSOLE_FIELD_NAME,
              Messages.ChromiumRemoteTab_ShowDebuggerNetworkCommunication, propertiesComp);
      addNetworkConsole.setPreferenceStore(store);
      addNetworkConsole.setPropertyChangeListener(propertyModifyListener);
    }

    return new TabElements() {
      @Override public StringFieldEditor getHost() {
        return debugHost;
View Full Code Here


  }

  protected void createFieldEditors() {
    addField(new DirectoryFieldEditor(Constants.GWT_HOME_PREFERENCE, "GWT &Home:", getFieldEditorParent()));
    addField(new BooleanFieldEditor(Constants.UPDATE_ASYNC_PREFERENCE, "Manually manage Async files", getFieldEditorParent()));
    addField(new BooleanFieldEditor(Constants.DELETE_SERVICE_PREFERENCE, "Delete associated files & entries when deleting a RemoteService", getFieldEditorParent()));
    addField(new StringFieldEditor(Constants.DEFAULT_VM_OPTION_PREFERENCE, "Default &VM Options:", getFieldEditorParent()));

    Group group = new Group(getFieldEditorParent(), SWT.NONE);
    group.setText("GWT Compiler Options:");
    group.setLayoutData(new GridData(SWT.FILL, SWT.NONE, true, false, 3, 1));
    addField(new StringFieldEditor(Constants.GWT_OUTPUT_PREFERENCE, "&Output Folder:", group));
    addField(new BooleanFieldEditor(Constants.COMPILE_AT_FULLBUILD_PREFERENCE, "Invoke on Clean &Build", group));
    addField(new BooleanFieldEditor(Constants.COMPILE_AT_PUBLISH_PREFERENCE, "Invoke when publishing to an &external server", group));

  }
View Full Code Here

  }

  protected void createFieldEditors() {
    addField(new DirectoryFieldEditor(Constants.GWT_HOME_PREFERENCE, "GWT &Home:", getFieldEditorParent()));
    addField(new StringFieldEditor(Constants.GWT_OUTPUT_PREFERENCE, "GWT Compiler &Output:", getFieldEditorParent()));
    addField(new BooleanFieldEditor(Constants.UPDATE_ASYNC_PREFERENCE, "Manually manage Async files", getFieldEditorParent()));
    addField(new BooleanFieldEditor(Constants.COMPILE_AT_FULLBUILD_PREFERENCE, "Invoke GWT Compiler on Clean &Build", getFieldEditorParent()));
    addField(new BooleanFieldEditor(Constants.COMPILE_AT_PUBLISH_PREFERENCE, "Invoke GWT Compiler when publishing to an &external server", getFieldEditorParent()));
  }
View Full Code Here

      IntegerFieldEditor tabWidth = new IntegerFieldEditor(PreferenceConstants.TAB_WIDTH, "Tab width", getFieldEditorParent());
      tabWidth.setValidRange(0, 8);
      addField(tabWidth);
     
      // Include powershell cmdlets
      addField(new BooleanFieldEditor(PreferenceConstants.INCLUDE_PSCMDLETS, "Include Powershell cmdlets", getFieldEditorParent()));
     
      // Include custom snapins
      addField(new BooleanFieldEditor(PreferenceConstants.INCLUDE_CUSTOMCMDLETS, "Include custom added snapins", getFieldEditorParent()));
     
      // PS Snapin file list
      addField(new FileEditor(PreferenceConstants.PS_SNAPIN_FILES, "Custom snapins", getFieldEditorParent(), new String[] {"*.dll"}));
  }
 
View Full Code Here

   
  }

  protected void createFieldEditors() {
    addField(new DirectoryFieldEditor(Constants.GWT_HOME_PREFERENCE, "GWT Home:", getFieldEditorParent()));
    addField(new BooleanFieldEditor(Constants.UPDATE_ASYNC_PREFERENCE, "Manually manage Async files", getFieldEditorParent()));
    addField(new BooleanFieldEditor(Constants.COMPILE_AT_FULLBUILD_PREFERENCE, "Invoke GWT Compiler on Clean &Build", getFieldEditorParent()));
    addField(new BooleanFieldEditor(Constants.COMPILE_AT_PUBLISH_PREFERENCE, "Invoke GWT Compiler when publishing to an &external server", getFieldEditorParent()));
  }
View Full Code Here

  @Override
  protected void createFieldEditors() {
    // addField(new DirectoryFieldEditor(Constants.GWT_HOME_PREFERENCE,
    // "GWT &Home:", getFieldEditorParent()));
    addField(new BooleanFieldEditor(Constants.UPDATE_ASYNC_PREFERENCE, "Manually manage Async files", getFieldEditorParent()));
    addField(new BooleanFieldEditor(Constants.DELETE_SERVICE_PREFERENCE, "When deleting a RemoteService, delete associated Async, Impl files and remove entries from web.xml", getFieldEditorParent()));
    addField(new StringFieldEditor(Constants.DEFAULT_VM_OPTION_PREFERENCE, "Default &VM Options:", getFieldEditorParent()));

    Group group = new Group(getFieldEditorParent(), SWT.NONE);
    group.setText("GWT Compiler Options:");
    group.setLayoutData(new GridData(SWT.FILL, SWT.NONE, true, false, 3, 1));
    addField(new StringFieldEditor(Constants.GWT_OUTPUT_PREFERENCE, "&Output Folder:", group));
    addField(new BooleanFieldEditor(Constants.COMPILE_AT_FULLBUILD_PREFERENCE, "Invoke on Clean &Build", group));
    // addField(new
    // BooleanFieldEditor(Constants.COMPILE_AT_PUBLISH_PREFERENCE,
    // "Invoke when publishing to an &external server", group));

  }
View Full Code Here

            accountList.add(account.toString());
        }
    }

    protected void createEncryptPasswordField(Composite group) {
        addField(new BooleanFieldEditor(PreferenceConstants.ENCRYPT_ACCOUNT,
            ENCRYPT_PASSWORD_TEXT, group));
    }
View Full Code Here

        addField(new BooleanFieldEditor(PreferenceConstants.ENCRYPT_ACCOUNT,
            ENCRYPT_PASSWORD_TEXT, group));
    }

    protected void createAutomaticConnectField(Composite group) {
        addField(new BooleanFieldEditor(PreferenceConstants.AUTO_CONNECT,
            STARTUP_CONNECT_TEXT, group));
    }
View Full Code Here

        addField(new BooleanFieldEditor(PreferenceConstants.AUTO_CONNECT,
            STARTUP_CONNECT_TEXT, group));
    }

    protected void createVersionControlPreferences(Composite group) {
        BooleanFieldEditor editor = new BooleanFieldEditor(
            PreferenceConstants.DISABLE_VERSION_CONTROL,
            DISABLE_VERSION_CONTROL_TEXT, group);
        Control descriptionControl = editor.getDescriptionControl(group);
        descriptionControl.setToolTipText(DISABLE_VERSION_CONTROL_TOOLTIP);
        addField(editor);
    }
View Full Code Here

        descriptionControl.setToolTipText(DISABLE_VERSION_CONTROL_TOOLTIP);
        addField(editor);
    }

    protected void createConcurrentUndoField(Composite group) {
        addField(new BooleanFieldEditor(PreferenceConstants.CONCURRENT_UNDO,
            CONCURRENT_UNDO_TEXT, group));
    }
View Full Code Here

TOP

Related Classes of org.eclipse.jface.preference.BooleanFieldEditor

Copyright © 2018 www.massapicom. 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.