Package org.eclipse.jface.preference

Examples of org.eclipse.jface.preference.BooleanFieldEditor


        addField(new BooleanFieldEditor(PreferenceConstants.CONCURRENT_UNDO,
            CONCURRENT_UNDO_TEXT, group));
    }

    protected void createFollowModePreferences(Composite group) {
        addField(new BooleanFieldEditor(PreferenceConstants.AUTO_FOLLOW_MODE,
            FOLLOW_MODE_TEXT, group));
    }
View Full Code Here


        GridData inviteGridData = new GridData(SWT.FILL, SWT.CENTER, true,
            false);
        inviteGridData.horizontalSpan = 2;
        inviteGroup.setLayoutData(inviteGridData);

        addField(new BooleanFieldEditor(
            PreferenceConstants.SKIP_SYNC_SELECTABLE,
            Messages.AdvancedPreferencePage_skip_synchronization, inviteGroup));

        addField(new BooleanFieldEditor(
            PreferenceConstants.AUTO_ACCEPT_INVITATION,
            Messages.AdvancedPreferencePage_auto_accept_invite, inviteGroup));

        addField(new BooleanFieldEditor(PreferenceConstants.AUTO_REUSE_PROJECT,
            Messages.AdvancedPreferencePage_auto_accept_invite_info,
            inviteGroup));
    }
View Full Code Here

            .setToolTipText(
                Messages.AdvancedPreferencePage_interval_between_editings);

        addField(millisUpdateField);

        addField(new BooleanFieldEditor(PreferenceConstants.PING_PONG,
            Messages.AdvancedPreferencePage_ping_pong, getFieldEditorParent()));

        addField(new BooleanFieldEditor(PreferenceConstants.DEBUG,
            Messages.AdvancedPreferencePage_show_xmpp_debug,
            getFieldEditorParent()));
    }
View Full Code Here

            false));

        chatserver = new StringFieldEditor(PreferenceConstants.CHATSERVER,
            "Chatserver:", chatServerGroup);

        useDefaultChatServer = new BooleanFieldEditor(
            PreferenceConstants.USE_DEFAULT_CHATSERVER,
            "Use default chatserver", chatGroup);

        beepUponIM = new BooleanFieldEditor(PreferenceConstants.BEEP_UPON_IM,
            "Beep when receiving a chat message", chatGroup);
        beepUponIM.setEnabled(true, chatGroup);

        skypeName = new StringFieldEditor(PreferenceConstants.SKYPE_USERNAME,
            "Skype name:", getFieldEditorParent());

        audioQuality = new ComboFieldEditor(
            PreferenceConstants.AUDIO_QUALITY_LEVEL,
            "Audio Quality Level (0-10) - 10 is best", audioQualityValues,
            voipGroup);

        ComboFieldEditor audioSamplerate = new ComboFieldEditor(
            PreferenceConstants.AUDIO_SAMPLERATE, "Audio Samplerate (kHz)",
            get2dArray(AudioSettings.AUDIO_SAMPLE_RATE), voipGroup);

        audio_vbr = new BooleanFieldEditor(
            PreferenceConstants.AUDIO_VBR,
            "Use Variable Bitrate (gives a better quality-to-space ratio, but may introduce a delay)",
            voipGroup);

        audio_dtx = new BooleanFieldEditor(
            PreferenceConstants.AUDIO_ENABLE_DTX,
            "Use Discontinuous Transmission (silence is not transmitted - only works with variable bitrate)",
            voipGroup);

        audio_dtx.setEnabled(prefs.getBoolean(PreferenceConstants.AUDIO_VBR),
View Full Code Here

        GridLayout layout = new GridLayout(1, true);
        layout.verticalSpacing = 15;
        parent.setLayout(layout);
        parent.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));

        resampleField = new BooleanFieldEditor(
            PreferenceConstants.PLAYER_RESAMPLE, "Resample input", parent);
        keepAspectRatioField = new BooleanFieldEditor(
            PreferenceConstants.PLAYER_KEEP_ASPECT_RATIO, "Keep aspect ratio",
            parent);
        keepAspectRatioField.setEnabled(getPreferenceStore().getBoolean(
            PreferenceConstants.PLAYER_RESAMPLE), parent);
View Full Code Here

                { "8 bit (256)", "256" }, { "16 bit (65K)", "65536" },
                { "24 bit (16M)", "16777216" } }, composite));
        // addField(new ScaleFieldEditor(PreferenceConstants.IMAGE_TILE_QUALITY,
        // "Quality (only jpg)",
        // composite, 1, 100, 1, 10));
        addField(new BooleanFieldEditor(PreferenceConstants.IMAGE_TILE_DITHER,
            "Dithering", composite));
        // addField(new BooleanFieldEditor(
        // PreferenceConstants.IMAGE_TILE_SERPENTINE, "Serpentine", composite));
    }
View Full Code Here

            "Videocodec",
            new String[][] {
                { "FLV - Flash Video (fast codec, medium bandwidth)", "flv" },
                { "H.264 (slow codec, small bandwidth, recommended)", "libx264" } },
            composite));
        addField(new BooleanFieldEditor(PreferenceConstants.XUGGLER_USE_VBV,
            "Use VBV (recommended for FLV in general or when video stutters)",
            composite));
    }
View Full Code Here

            composite, 4));
        addField(new IntegerFieldEditor(
            PreferenceConstants.SCREEN_MOUSE_AREA_HEIGHT, "mouse area height",
            composite, 4));

        addField(new BooleanFieldEditor(
            PreferenceConstants.SCREEN_SHOW_MOUSEPOINTER, "Show mousepointer",
            composite));
    }
View Full Code Here

  @Override
  protected void createFieldEditors() {
    Composite parent = this.getFieldEditorParent();
   
    this.auto_save_on_build = new BooleanFieldEditor(PreferenceConstants.GEN_AUTO_SAVE_ON_BUILD, "Automatically save dirty editors when build", BooleanFieldEditor.DEFAULT, parent);
    this.auto_save_on_build.load();
    this.addField(this.auto_save_on_build);
  }
View Full Code Here

                        + "files. The semantic highlighting, in addition to Java "
                        + "semantic highlighting, colors different Ptolemy semantic "
                        + "elements in the source files.");

        Composite currentComposite = _newComposite(composite);
        _highlightingEnabled = new BooleanFieldEditor(
                PreferenceConstants.EDITOR_HIGHLIGHTING_ENABLED,
                "&Enable semantic highlighting (work since Eclipse 3.1)",
                currentComposite) {
            protected void doLoadDefault() {
                super.doLoadDefault();
                _setEnabled(_colorGroup, getBooleanValue());
            }

            protected void valueChanged(boolean oldValue, boolean newValue) {
                super.valueChanged(oldValue, newValue);
                _setEnabled(_colorGroup, newValue);
            }
        };
        _setParent(_highlightingEnabled, currentComposite);
        addField(_highlightingEnabled);

        _colorGroup = _newGroup(composite, "Colors");

        currentComposite = _newComposite(_colorGroup);

        ColorFieldEditor color = new ColorFieldEditor(
                PreferenceConstants.EDITOR_STATE_COLOR,
                "&State variable color", currentComposite);
        addField(color);

        //currentComposite = _newComposite(currentLine);
        BooleanFieldEditor bold = new BooleanFieldEditor(
                PreferenceConstants.EDITOR_STATE_BOLD, "Bold", currentComposite);
        addField(bold);

        BooleanFieldEditor italic = new BooleanFieldEditor(
                PreferenceConstants.EDITOR_STATE_ITALIC, "Italic",
                currentComposite);
        addField(italic);

        color = new ColorFieldEditor(
                PreferenceConstants.EDITOR_ACTOR_METHOD_COLOR,
                "&Actor method color", currentComposite);
        addField(color);

        bold = new BooleanFieldEditor(
                PreferenceConstants.EDITOR_ACTOR_METHOD_BOLD, "Bold",
                currentComposite);
        addField(bold);

        italic = new BooleanFieldEditor(
                PreferenceConstants.EDITOR_ACTOR_METHOD_ITALIC, "Italic",
                currentComposite);
        addField(italic);

        IPreferenceStore store = EclipsePlugin.getDefault()
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.