Examples of RadioGroupFieldEditor


Examples of org.eclipse.jface.preference.RadioGroupFieldEditor

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

        addField(new RadioGroupFieldEditor(
            PreferenceConstants.SCREEN_INITIAL_MODE, "Initial mode", 2,
            new String[][] {
                { "follow mouse", Screen.Mode.FOLLOW_MOUSE.name() },
                { "full screen", Screen.Mode.FULL_SCREEN.name() } }, composite,
            true));
View Full Code Here

Examples of org.eclipse.jface.preference.RadioGroupFieldEditor

    Composite c = (Composite) this.getControl();
    GridLayout l = (GridLayout) c.getLayout();

    l.verticalSpacing = 20;
   
    this.group = new RadioGroupFieldEditor(PreferenceConstants.RD_VM_USED,
        "Select which type of Virtual machine you want to use to run your program.",
        1,
        new String[][]{
        {"XVR GLUT(default)", PreferenceConstants.RD_GLUT},
        {"XVR GLUT 64", PreferenceConstants.RD_GLUT64},
View Full Code Here

Examples of org.eclipse.jface.preference.RadioGroupFieldEditor

  @Override
  protected void createFieldEditors() {
    Composite parent = getFieldEditorParent();

    // label positions.
    RadioGroupFieldEditor position = new RadioGroupFieldEditor(
        LabelPreferencesIds.LABEL_POSITION,
        "Label position", 3, new String[][] {
            // first line of 3 elements
            {"North-west", LabelPosition.NW.toString()},
            {"North", LabelPosition.N.toString()},
View Full Code Here

Examples of org.eclipse.jface.preference.RadioGroupFieldEditor

    // colors: on/off
    BooleanFieldEditor nodeColors = new BooleanFieldEditor(
        NodePreferencesIds.NODE_COLOR_ON, "Node coloring...", parent);
    // color: mode
    RadioGroupFieldEditor colorSelect = new RadioGroupFieldEditor(
        NodePreferencesIds.NODE_COLOR, "...shows...", 3, new String[][] {
            {"Degree", NodeColors.DEGREE.toString()},
            {"Role", NodeColors.ROLE.toString()},
            {"Voltage", NodeColors.VOLTAGE.toString()}
        }, parent, true);

    // shape: on/off
    BooleanFieldEditor nodeShapes = new BooleanFieldEditor(
        NodePreferencesIds.NODE_SHAPE_ON, "Node shapes...", parent);
    // shape: mode
    RadioGroupFieldEditor shapeSelect = new RadioGroupFieldEditor(
        NodePreferencesIds.NODE_SHAPE, "...shows...", 2, new String[][] {
            {"Degree", NodeShape.DEGREE.toString()},
            {"Role", NodeShape.ROLE.toString()},
        }, parent, true);

    // size: on/off
    BooleanFieldEditor nodeSizes = new BooleanFieldEditor(
        NodePreferencesIds.NODE_SIZE_ON, "Node sizes...", parent);
    // size: mode
    RadioGroupFieldEditor sizeSelect = new RadioGroupFieldEditor(
        NodePreferencesIds.NODE_SIZE, "...shows...", 2, new String[][] {
            {"Degree", NodeSize.DEGREE.toString()},
            {"Voltage", NodeSize.VOLTAGE.toString()},
        }, parent, true);
View Full Code Here

Examples of org.eclipse.jface.preference.RadioGroupFieldEditor

      getFieldEditorParent()));
    addField(new IntegerFieldEditor(PreferenceConstants.P_DATA_BITS, "Data bits:",
      getFieldEditorParent()));
    addField(new IntegerFieldEditor(PreferenceConstants.P_STOP_BITS, "Stop bits:",
      getFieldEditorParent()));
    addField(new RadioGroupFieldEditor(PreferenceConstants.P_PARITY, "Parity", 1,
      new String[][] { { "None", "none" }, { "Even", "even" }, { "Odd", "odd" } },
      getFieldEditorParent()));
  }
View Full Code Here

Examples of org.eclipse.jface.preference.RadioGroupFieldEditor

      }
    });
    final GridData gd1 = new GridData(GridData.FILL_HORIZONTAL);
    gd1.heightHint = 150;
    _tree.getTree().setLayoutData(gd1);
    _createType = new RadioGroupFieldEditor("", Messages.NewRegionWizardPage_CreateRegionGroup, 1, new String[][] { //$NON-NLS-1$
      { Messages.NewRegionWizardPage_RegionFromMap, "fromMap" }, //$NON-NLS-2$
      { Messages.NewRegionWizardPage_RegionFromBB, "new" } }, container, false); //$NON-NLS-2$
    _createType.setPropertyChangeListener(new IPropertyChangeListener() {
      @Override
      public void propertyChange(final PropertyChangeEvent arg0) {
View Full Code Here

Examples of org.eclipse.jface.preference.RadioGroupFieldEditor

                {
                    String en = Preference.Lang.English;
                    String ja = Preference.Lang.Japanese;
                    String[][] labelAndValues = new String[][] { { Preference.Lang.EnglishLabel, en },
                            { Preference.Lang.JapaneseLabel, ja }, };
                    editor_Language = new RadioGroupFieldEditor(Preference.lang, "Select your language.", 2,
                            labelAndValues, parent);
                    addField(editor_Language);

                    // output file encoding
                    addField(new StringFieldEditor(Preference.Common.outputFileEncoding, props
                            .get(Preference.Common.outputFileEncoding), parent));

                    // src/main/java
                    addField(new StringFieldEditor(Preference.Common.srcMainPath, props
                            .get(Preference.Common.srcMainPath), parent));
                    // src/test/java
                    addField(new StringFieldEditor(Preference.Common.srcTestPath, props
                            .get(Preference.Common.srcTestPath), parent));

                    // line break policy
                    {
                        String forceCRLF = Preference.LineBreakPolicy.forceCRLF;
                        String forceLF = Preference.LineBreakPolicy.forceLF;
                        String forceNewFileCRLF = Preference.LineBreakPolicy.forceNewFileCRLF;
                        String forceNewFileLF = Preference.LineBreakPolicy.forceNewFileLF;
                        String[][] lbpLabelAndValues = new String[][] { { props.get(forceCRLF), forceCRLF },
                                { props.get(forceLF), forceLF }, { props.get(forceNewFileCRLF), forceNewFileCRLF },
                                { props.get(forceNewFileLF), forceNewFileLF } };
                        editor_lineBreakPolicy = new RadioGroupFieldEditor(Preference.Common.lineBreakPolicy, props
                                .get(Preference.LineBreakPolicy.description), 5, lbpLabelAndValues, parent);
                        addField(editor_lineBreakPolicy);
                    }

                    // Soft tabs
                    {
                        editor_useSoftTabs = new BooleanFieldEditor(Preference.Common.useSoftTabs, props
                                .get(Preference.Common.useSoftTabs), parent);
                        addField(editor_useSoftTabs);
                        editor_softTabSize = new StringFieldEditor(Preference.Common.softTabSize, props
                                .get(Preference.Common.softTabSize), parent);
                        addField(editor_softTabSize);
                    }

                    // JUnit version(3 or 4)
                    String ver3 = Preference.TestClassGen.junitVersion3;
                    String ver4 = Preference.TestClassGen.junitVersion4;
                    String[][] junitVersionsLabelAndValues = new String[][] { { props.get(ver3), ver3 },
                            { props.get(ver4), ver4 }, };

                    editor_JUnitVersion = new RadioGroupFieldEditor(Preference.TestClassGen.junitVersion, props
                            .get(Preference.TestClassGen.description), 2, junitVersionsLabelAndValues, parent) {
                        @Override
                        protected void fireValueChanged(String p, Object o, Object n) {
                            super.fireValueChanged(p, o, n);
                            IPreferenceStore store = Activator.getDefault().getPreferenceStore();
                            store.setValue(Preference.TestClassGen.junitVersion, String.valueOf(n));
                        }
                    };
                    addField(editor_JUnitVersion);

                    // class to extend
                    editor_ClassToExtend = new StringFieldEditor(Preference.TestClassGen.classToExtend, props
                            .get(Preference.TestClassGen.classToExtend), parent);
                    addField(editor_ClassToExtend);

                    // common delimiter setting
                    editor_TestMethodNameBasicDelimiter = new StringFieldEditor(Preference.TestMethodGen.delimiter,
                            props.get(Preference.TestMethodGen.delimiter), 10, parent);
                    addField(editor_TestMethodNameBasicDelimiter);

                    editor_isTestMethodNameArgsRequired = new BooleanFieldEditor(Preference.TestMethodGen.enabledArgs,
                            props.get(Preference.TestMethodGen.enabledArgs), parent);
                    addField(editor_isTestMethodNameArgsRequired);
                    editor_TestMethodNameArgsPrefix = new StringFieldEditor(Preference.TestMethodGen.argsPrefix, props
                            .get(Preference.TestMethodGen.argsPrefix), parent);
                    addField(editor_TestMethodNameArgsPrefix);
                    editor_TestMethodNameArgsDelimiter = new StringFieldEditor(Preference.TestMethodGen.argsDelimiter,
                            props.get(Preference.TestMethodGen.argsDelimiter), parent);
                    addField(editor_TestMethodNameArgsDelimiter);

                    editor_isTestMethodNameReturnTypeRequired = new BooleanFieldEditor(
                            Preference.TestMethodGen.enabledReturn, props.get(Preference.TestMethodGen.enabledReturn),
                            parent);
                    addField(editor_isTestMethodNameReturnTypeRequired);
                    editor_TestMethodNameReturnPrefix = new StringFieldEditor(Preference.TestMethodGen.returnPrefix,
                            props.get(Preference.TestMethodGen.returnPrefix), parent);
                    addField(editor_TestMethodNameReturnPrefix);
                    editor_TestMethodNameRetrnDelimiter = new StringFieldEditor(
                            Preference.TestMethodGen.returnDelimiter, props
                                    .get(Preference.TestMethodGen.returnDelimiter), parent);
                    addField(editor_TestMethodNameRetrnDelimiter);

                    // enable exception thrown
                    editor_isExceptionThrownRequired = new BooleanFieldEditor(
                            Preference.TestMethodGen.enabledException, props
                                    .get(Preference.TestMethodGen.enabledException), parent);
                    addField(editor_isExceptionThrownRequired);
                    editor_TestMethodNameExceptionPrefix = new StringFieldEditor(
                            Preference.TestMethodGen.exceptionPrefix, props
                                    .get(Preference.TestMethodGen.exceptionPrefix), parent);
                    addField(editor_TestMethodNameExceptionPrefix);
                    editor_TestMethodNameExceptionDelimiter = new StringFieldEditor(
                            Preference.TestMethodGen.exceptionDelimiter, props
                                    .get(Preference.TestMethodGen.exceptionDelimiter), parent);
                    addField(editor_TestMethodNameExceptionDelimiter);

                    // public methods
                    editor_isPublicRequired = new BooleanFieldEditor(Preference.TestMethodGen.includePublic, props
                            .get(Preference.TestMethodGen.includePublic), parent);
                    addField(editor_isPublicRequired);
                    // protected methods
                    editor_isProtectedRequired = new BooleanFieldEditor(Preference.TestMethodGen.includeProtected,
                            props.get(Preference.TestMethodGen.includeProtected), parent);
                    addField(editor_isProtectedRequired);
                    // package local methods
                    editor_isPackageLocalRequired = new BooleanFieldEditor(
                            Preference.TestMethodGen.includePackageLocal, props
                                    .get(Preference.TestMethodGen.includePackageLocal), parent);
                    addField(editor_isPackageLocalRequired);

                    // enable excluding accessors
                    editor_isAccessorsExcluded = new BooleanFieldEditor(Preference.TestMethodGen.excludesAccessors,
                            props.get(Preference.TestMethodGen.excludesAccessors), parent);
                    addField(editor_isAccessorsExcluded);

                    {
                        String mock_none = Preference.TestMethodGen.usingMockNone;
                        String mock_easyMock = Preference.TestMethodGen.usingMockEasyMock;
                        String mock_jmock2 = Preference.TestMethodGen.usingMockJMock2;
                        String mock_mockito = Preference.TestMethodGen.usingMockMockito;
                        String mock_jmockit = Preference.TestMethodGen.usingMockJMockit;
                        String[][] mockLabelAndValues = new String[][] { { props.get(mock_none), mock_none },
                                { props.get(mock_easyMock), mock_easyMock }, { props.get(mock_jmock2), mock_jmock2 },
                                { props.get(mock_mockito), mock_mockito }, { props.get(mock_jmockit), mock_jmockit } };
                        editor_MockObjectFramework = new RadioGroupFieldEditor(Preference.TestMethodGen.usingMock,
                                props.get(Preference.TestMethodGen.descriptionForMock), 5, mockLabelAndValues, parent);
                        addField(editor_MockObjectFramework);
                    }

                    {
                        String comments_none = Preference.TestMethodGen.commentsNone;
                        String comments_aaa = Preference.TestMethodGen.commentsArrangeActAssert;
                        String comments_gwt = Preference.TestMethodGen.commentsGivenWhenThen;
                        String[][] commentsLabelAndValues = new String[][] {
                                { props.get(comments_none), comments_none }, { props.get(comments_aaa), comments_aaa },
                                { props.get(comments_gwt), comments_gwt } };
                        editor_TestingPatternComments = new RadioGroupFieldEditor(
                                Preference.TestMethodGen.usingTestingPatternComments, props
                                        .get(Preference.TestMethodGen.descriptionForTestingPatternComments), 3,
                                commentsLabelAndValues, parent);
                        addField(editor_TestingPatternComments);
                    }
View Full Code Here

Examples of org.eclipse.jface.preference.RadioGroupFieldEditor

  protected void createFieldEditors() {
    String[][] labelAndValues = new String[][] {
        { LABEL_PROVIDER_STYLE_DDT, DeeUIPreferenceConstants.ElementIconsStyle.DDT.toString() },
        { LABEL_PROVIDER_STYLE_JDT, DeeUIPreferenceConstants.ElementIconsStyle.JDTLIKE.toString() },
    };
    iconStyleEditor = new RadioGroupFieldEditor(
        DeeUIPreferenceConstants.ELEMENT_ICONS_STYLE, LABEL_PROVIDER_STYLE, 1,
        labelAndValues, getFieldEditorParent());
    addField(iconStyleEditor);
    //This should not be necessary, editor should have property initialized:
    selectedIconStyle = ElementIconsStyle.DDTLEAN;
View Full Code Here

Examples of org.eclipse.jface.preference.RadioGroupFieldEditor

      ife.setValidRange(1,Integer.MAX_VALUE);
 
    }
   
    // Radio buttons of the execution type
    addField(new RadioGroupFieldEditor(
        PreferenceConstants.P_RUNTYPE,
        Messages.getString("MaudeDaemon.PREF_MODE"), //$NON-NLS-1$
        1,
        new String[][] { { Messages.getString("MaudeDaemon.PREF_RUNCORE"), Messages.getString("MaudeDaemon.PREF_RUNCORE_VALUE") }, { //$NON-NLS-1$ //$NON-NLS-2$
          Messages.getString("MaudeDaemon.PREF_RUNFULL"), Messages.getString("MaudeDaemon.PREF_RUNFULL_VALUE") } //$NON-NLS-1$ //$NON-NLS-2$
View Full Code Here

Examples of org.eclipse.jface.preference.RadioGroupFieldEditor

              {"Space", PreferenceStrings.INDENT_SPACE}
          },
          parent);
    addField(indentEditor);
   
    indentSizeEditor = new RadioGroupFieldEditor(
            PreferenceStrings.INDENT_SIZE, "Indent size", 4,
        new String[][]{
            {"2", PreferenceStrings.INDENT_SIZE_2},
            {"3", PreferenceStrings.INDENT_SIZE_3},
            {"4", PreferenceStrings.INDENT_SIZE_4},
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.