Package org.eclipse.jface.preference

Examples of org.eclipse.jface.preference.BooleanFieldEditor


   
    horizontalLine = new Label(getFieldEditorParent(), SWT.NONE);
    horizontalLine.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false, 2, 1));
    //horizontalLine.setFont(getFieldEditorParent().getFont());
   
    _showInTray = new BooleanFieldEditor(PreferenceConstants.TRAY_SHOW_IN_TRAY,
        Messages.getString("SystemTrayPage.ShowInTray"), //$NON-NLS-1$
        getFieldEditorParent());   
    addField(_showInTray);
   
    horizontalLine = new Label(getFieldEditorParent(), SWT.NONE);
    horizontalLine.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false, 2, 1));             
   
    _showPrev = new BooleanFieldEditor(PreferenceConstants.TRAY_SHOW_PREV_BUTTON,
        Messages.getString("SystemTrayPage.ShowPrevious"), //$NON-NLS-1$
        getFieldEditorParent());
    addField(_showPrev);
   
    _showStop = new BooleanFieldEditor(PreferenceConstants.TRAY_SHOW_STOP_BUTTON,
        Messages.getString("SystemTrayPage.ShowStop"), //$NON-NLS-1$
        getFieldEditorParent());
    addField(_showStop);
   
    _showPause = new BooleanFieldEditor(PreferenceConstants.TRAY_SHOW_PAUSE_BUTTON,
        Messages.getString("SystemTrayPage.ShowPause"), //$NON-NLS-1$
        getFieldEditorParent());
    addField(_showPause);
   
    _showNext = new BooleanFieldEditor(PreferenceConstants.TRAY_SHOW_NEXT_BUTTON,
        Messages.getString("SystemTrayPage.ShowNext"), //$NON-NLS-1$
        getFieldEditorParent());
    addField(_showNext);
   
    _showReversed = new BooleanFieldEditor(PreferenceConstants.TRAY_SHOW_REVERSED,
        Messages.getString("SystemTrayPage.ShowReversed"), //$NON-NLS-1$
        getFieldEditorParent());
    addField(_showReversed);
  }
View Full Code Here


    Label horizontalLine;
   
    horizontalLine = new Label(getFieldEditorParent(), SWT.NONE);
    horizontalLine.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false, 3, 1));
   
    addField(new BooleanFieldEditor(PreferenceConstants.PODCAST_UPDATE_AT_STARTUP,
        Messages.getString("PodcastsPage.PodcastsUpdateAtStartUp"), //$NON-NLS-1$
        getFieldEditorParent()));
   
    cleanCacheOnUpdateBFE = new BooleanFieldEditor(PreferenceConstants.PODCAST_CLEAN_DOWNLOAD_CACHE_ON_UPDATE,
        Messages.getString("PodcastsPage.PodcastsCleanDownloadCacheOnUpdate"), //$NON-NLS-1$
        getFieldEditorParent());
    addField(cleanCacheOnUpdateBFE);
   
    automaticUpdateBFE = new BooleanFieldEditor(PreferenceConstants.PODCAST_AUTOMATIC_UPDATE,
        Messages.getString("PodcastsPage.PodcastsAutomaticUpdate"), //$NON-NLS-1$
        getFieldEditorParent());
    addField(automaticUpdateBFE);
   
    automaticUpdateIntervalIFE = new IntegerFieldEditor(PreferenceConstants.PODCAST_AUTOMATIC_UPDATE_INTERVAL,
        Messages.getString("PodcastsPage.PodcastsAutomaticUpdateInterval"), //$NON-NLS-1$
        getFieldEditorParent());
    addField(automaticUpdateIntervalIFE);   
   
    horizontalLine = new Label(getFieldEditorParent(), SWT.NONE);
    horizontalLine.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false, 3, 1));
   
    downloadBeforePlayBFE = new BooleanFieldEditor(PreferenceConstants.PODCAST_DOWNLOAD_BEFORE_PLAY,
        Messages.getString("PodcastsPage.PodcastsDownloadBeforePlay"), //$NON-NLS-1$
        getFieldEditorParent());
    addField(downloadBeforePlayBFE);
   
    playAfterDownloadBFE = new BooleanFieldEditor(PreferenceConstants.PODCAST_PLAY_AFTER_DOWNLOAD,
        Messages.getString("PodcastsPage.PodcastsPlayAfterDownload"), //$NON-NLS-1$
        getFieldEditorParent());
    addField(playAfterDownloadBFE);       
   
  }
View Full Code Here

  protected void createFieldEditors() {
    Label horizontalLine;   
    horizontalLine = new Label(getFieldEditorParent(), SWT.NONE);
    horizontalLine.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false, 2, 1));
   
    addField(new BooleanFieldEditor(
        PreferenceConstants.DISKVIEW_MERGE_FOLDER,
        Messages.getString("DiskViewPage.MergeFolder"), //$NON-NLS-1$
        getFieldEditorParent()));
   
    horizontalLine = new Label(getFieldEditorParent(), SWT.NONE);
View Full Code Here

        editor.setEnabled(enable,fonts);
      }
  }
  @Override
  protected void createFieldEditors() {
    BooleanFieldEditor customizeColors = new BooleanFieldEditor(PreferenceConstants.P_SIMPLE_CONTACTLIST_CUSTOMIZE_COLORS,"Customize Colors",getFieldEditorParent()) {
        protected void valueChanged(boolean oldValue, boolean newValue) {
          super.valueChanged(oldValue,newValue);
          setColorsEnabledState(newValue);
        }
    };
    addField(customizeColors);
   
   
    Group colors = new Group(getFieldEditorParent(),SWT.NULL);
    colors.setLayout(new GridLayout(2,false));
    colors.getParent().setLayout(new GridLayout(1,true));
    colors.setLayoutData(new GridData(SWT.FILL,SWT.TOP,true,false));
    colors.setText("Modify Colors of Simple Contact List");
   
    this.colors = new Composite(colors,SWT.NULL);
    this.colors.setLayoutData(new GridData(SWT.FILL,SWT.TOP,true,false));
   
    addField(addEditorToColorGroup(new ColorFieldEditor(PreferenceConstants.P_SIMPLE_CONTACTLIST_COLORS_BACKGROUND,"Background Color",this.colors)));
    addField(addEditorToColorGroup(new ColorFieldEditor(PreferenceConstants.P_SIMPLE_CONTACTLIST_COLORS_TEXT,"Foreground Color",this.colors)));
   
    BooleanFieldEditor customizeFonts = new BooleanFieldEditor(PreferenceConstants.P_SIMPLE_CONTACTLIST_CUSTOMIZE_FONTS,"Customize Fonts",getFieldEditorParent()) {
        protected void valueChanged(boolean oldValue, boolean newValue) {
          super.valueChanged(oldValue,newValue);
          setFontsEnabledState(newValue);
        }
    };
View Full Code Here

        3,new String[][] {
        { "Same Window as Contact List", PreferenceConstants.P_CHAT_OPEN_TYPE_SAMEWINDOW },
        { "All in a New Window", PreferenceConstants.P_CHAT_OPEN_TYPE_NEWWINDOW },
        { "All in a second Tabbed Window", PreferenceConstants.P_CHAT_OPEN_TYPE_NEWTABBEDWINDOW }
        },getFieldEditorParent()));
    addField(new BooleanFieldEditor(
        PreferenceConstants.P_CHAT_ACTIVATE_CHAT_WINDOW,
        "Activate (force foreground) Chat Window when New Messages Arrive",
        getFieldEditorParent()));
    addField(new BooleanFieldEditor(
        PreferenceConstants.P_CHAT_ACTIVATE_CHAT_WINDOW_ONLY_IFAVAILABLE,
        "Only Activate Chat Window if your status is Online (above option must be enabled)",
        getFieldEditorParent()));
    addField(new BooleanFieldEditor(
        PreferenceConstants.P_CHAT_USE_BROWSER_WIDGET,
        "Use Browser Widget in Chat Window",
        getFieldEditorParent()));
    addField(new BooleanFieldEditor(
        PreferenceConstants.P_ENABLE_TRAY_ICON,
        "Enable Tray Icon",
        getFieldEditorParent()));
    String[][] changeStatusToOnGameLaunch = new String[][] {
        { "Don't Change", "" },
        { "Away", Presence.Mode.AWAY.toString() },
        { "Do Not Disturb", Presence.Mode.DO_NOT_DISTURB.toString() }
    };
    addField(new RadioGroupFieldEditor(PreferenceConstants.P_CHANGE_STATUS_TO_ON_GAME_LAUNCH,
        "Change Status When Launching Game To",
        1,changeStatusToOnGameLaunch,getFieldEditorParent()));
    List<ContactListExtension> lists = ContactListExtensionPoint.getContactListExtensions();
    String[][] lists_choose = new String[lists.size()][2];
    int i = 0;
    for(ContactListExtension contactList : lists) {
      lists_choose[i][0] = contactList.name;
      lists_choose[i][1] = contactList.viewid;
      i++;
    }
    addField(new RadioGroupFieldEditor(PreferenceConstants.P_CONTACTLIST,"Contact List",1,lists_choose,getFieldEditorParent()));
    addField(new BooleanFieldEditor(
        PreferenceConstants.P_CONTACTLIST_ALLACCOUNTS,
        "All Accounts handled by ONE ContactList",
        getFieldEditorParent()));
    addField(new BooleanFieldEditor(
        PreferenceConstants.P_CONTACTLIST_AUTOOPEN,
        "Automatically Open ContactList(s)",
        getFieldEditorParent()));
    addField(new BooleanFieldEditor(PreferenceConstants.P_GAMES_ALLOW_SERVER_QUERY,"Allow Query of Game Servers (after you join)",getFieldEditorParent()));
    addField(new BooleanFieldEditor(PreferenceConstants.P_STARTSNIFFER, "Start Sniffer",getFieldEditorParent()));
    addField(new BooleanFieldEditor(PreferenceConstants.P_ENABLE_SMACK_DEBUGGING,"Enable Smack debugging console",getFieldEditorParent()));
    addField(new BooleanFieldEditor(PreferenceConstants.P_MAIN_WINDOW_DISPLAY_MENUBAR,"Display Menubar in Main Window",getFieldEditorParent()));
    if(WindowsHelper.hasWindowsXP()) {
      useWindowsXPTheme = new Button(getFieldEditorParent(),SWT.CHECK);
      useWindowsXPTheme.setText("Use Windows XP Theme (Requires Restart)");
      useWindowsXPTheme.setSelection(WindowsHelper.hasXPThemeEnabled());
    }
View Full Code Here

    super(GRID);
  }

  @Override
  protected void createFieldEditors() {
    addField(new BooleanFieldEditor(PreferenceConstants.P_SOUND_PLAY_RECV_MESSAGE,
          "Play Sound when receiving message", getFieldEditorParent()));
  }
View Full Code Here

    store.setDefault(P_VNS_PORT, "9000");
    // store.setDefault(P_DATA_PATH, "");
  }

  public void createFieldEditors() {
    addField(new BooleanFieldEditor(P_JCAS, "&Automatically run JCasGen when Types change",
            getFieldEditorParent()));

    addField(new BooleanFieldEditor(P_SHOW_FULLY_QUALIFIED_NAMES, "&Show fully qualified names",
            getFieldEditorParent()));

    addField(new IntegerFieldEditor(P_XML_TAB_SPACES, "&XML indentation", getFieldEditorParent()));

    addField(new StringFieldEditor(P_VNS_HOST, "&Vinci Name Service Host IP address",
View Full Code Here

                PreferenceConstants.DEFAULT_VIEW_PAGE,
                "Select the default tab to view csv file:",
                pagesLabelsAndValues,
                getFieldEditorParent()));

        addField(new BooleanFieldEditor(
                PreferenceConstants.USE_FIRST_LINE_AS_HEADER,
                "&Use the first line of the CSV file as the column headers",
                getFieldEditorParent()));

        StringFieldEditor customDelimiterField = new StringFieldEditor(
                PreferenceConstants.CUSTOM_DELIMITER,
                "Choose the delimiter to use:", 2, getFieldEditorParent());
        customDelimiterField.setTextLimit(1);
        customDelimiterField.setEmptyStringAllowed(false);
        addField(customDelimiterField);

        StringFieldEditor textQualifierChar = new StringFieldEditor(
                PreferenceConstants.TEXT_QUALIFIER,
                "Define the character used as a text qualifier of the data:", 2, getFieldEditorParent());
        customDelimiterField.setTextLimit(1);
        customDelimiterField.setEmptyStringAllowed(false);
        addField(textQualifierChar);
        addField(new BooleanFieldEditor(
                PreferenceConstants.USE_QUALIFIER,
                "For the text qualifier to be used for all fields",
                getFieldEditorParent()));

        StringFieldEditor commentChar = new StringFieldEditor(
                PreferenceConstants.COMMENT_CHAR,
                "Choose the character to use as a comment:", 2, getFieldEditorParent());
        customDelimiterField.setTextLimit(1);
        customDelimiterField.setEmptyStringAllowed(true);
        addField(commentChar);

        addField(new BooleanFieldEditor(
                PreferenceConstants.CASE_SENSITIVE_SEARCH,
                "&make filtering case sensitive",
                getFieldEditorParent()));

    }
View Full Code Here

   
  }

  @Override
  protected void createFieldEditors() {
    BooleanFieldEditor  signature = new BooleanFieldEditor(
        ToolPlugin.METHOD_SIGNATURE_PREFERENCE,
        "&Show signature panel:",
        getFieldEditorParent());
      addField(signature);
   
View Full Code Here

   
  }

  @Override
  protected void createFieldEditors() {
    BooleanFieldEditor  parser = new BooleanFieldEditor(
        ToolPlugin.USE_PARSER_PREFERENCE,
        "&Use parser:",
        getFieldEditorParent());
      addField(parser);
  }
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.