当前位置: 首页>>代码示例>>Java>>正文


Java RadioGroupFieldEditor类代码示例

本文整理汇总了Java中org.eclipse.jface.preference.RadioGroupFieldEditor的典型用法代码示例。如果您正苦于以下问题:Java RadioGroupFieldEditor类的具体用法?Java RadioGroupFieldEditor怎么用?Java RadioGroupFieldEditor使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


RadioGroupFieldEditor类属于org.eclipse.jface.preference包,在下文中一共展示了RadioGroupFieldEditor类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createFieldEditors

import org.eclipse.jface.preference.RadioGroupFieldEditor; //导入依赖的package包/类
@Override
protected void createFieldEditors() {
	Composite parent = getFieldEditorParent();
	
	RadioGroupFieldEditor autoFoldCommentChoice = new RadioGroupFieldEditor(
			SolidityPreferences.FOLDING_COMMENT_AUTOFOLD
			, "Auto-fold comments"
			, 1
			, new String[][] {
				 {"None", SolidityPreferences.FOLDING_COMMENT_AUTOFOLD_NONE}
				,{"Only header comment", SolidityPreferences.FOLDING_COMMENT_AUTOFOLD_HEADER}
				,{"All", SolidityPreferences.FOLDING_COMMENT_AUTOFOLD_ALL}
			}
			, parent);
	addField(autoFoldCommentChoice);
	
	IntegerFieldEditor longCommentLineCount = new IntegerFieldEditor(
			SolidityPreferences.FOLDING_COMMENT_LINECOUNT
			, "Enable folding for comments exceeding line count"
			, parent);
	addField(longCommentLineCount);
}
 
开发者ID:Yakindu,项目名称:solidity-ide,代码行数:23,代码来源:FoldingPreferences.java

示例2: createFieldEditors

import org.eclipse.jface.preference.RadioGroupFieldEditor; //导入依赖的package包/类
/**
 * Creates the property editing UI components of this page.
 */
protected void createFieldEditors() {
    adjustGridLayout();
    addField(new ColorFieldEditor(ColorManager.DEFAULT, TexlipsePlugin.getResourceString("preferenceColorTextLabel"), getFieldEditorParent()));
    addField(new RadioGroupFieldEditor(ColorManager.DEFAULT_STYLE, "", 3, RADIO_STYLE_STRING, getFieldEditorParent()));
    addField(new ColorFieldEditor(ColorManager.COMMAND, TexlipsePlugin.getResourceString("preferenceColorCommandLabel"), getFieldEditorParent()));
    addField(new RadioGroupFieldEditor(ColorManager.COMMAND_STYLE, "", 3, RADIO_STYLE_STRING, getFieldEditorParent()));
    addField(new ColorFieldEditor(ColorManager.CURLY_BRACKETS, TexlipsePlugin.getResourceString("preferenceColorArgumentLabel"), getFieldEditorParent()));
    addField(new RadioGroupFieldEditor(ColorManager.CURLY_BRACKETS_STYLE, "", 3, RADIO_STYLE_STRING, getFieldEditorParent()));
    addField(new ColorFieldEditor(ColorManager.SQUARE_BRACKETS, TexlipsePlugin.getResourceString("preferenceColorOptionalLabel"), getFieldEditorParent()));
    addField(new RadioGroupFieldEditor(ColorManager.SQUARE_BRACKETS_STYLE, "", 3, RADIO_STYLE_STRING, getFieldEditorParent()));
    addField(new ColorFieldEditor(ColorManager.EQUATION, TexlipsePlugin.getResourceString("preferenceColorMathLabel"), getFieldEditorParent()));
    addField(new RadioGroupFieldEditor(ColorManager.EQUATION_STYLE, "", 3, RADIO_STYLE_STRING, getFieldEditorParent()));
    addField(new ColorFieldEditor(ColorManager.COMMENT, TexlipsePlugin.getResourceString("preferenceColorCommentLabel"), getFieldEditorParent()));
    addField(new RadioGroupFieldEditor(ColorManager.COMMENT_STYLE, "", 3, RADIO_STYLE_STRING, getFieldEditorParent()));
    addField(new ColorFieldEditor(ColorManager.TEX_NUMBER, TexlipsePlugin.getResourceString("preferenceColorNumberLabel"), getFieldEditorParent()));
    addField(new RadioGroupFieldEditor(ColorManager.TEX_NUMBER_STYLE, "", 3, RADIO_STYLE_STRING, getFieldEditorParent()));
    addField(new ColorFieldEditor(ColorManager.TEX_SPECIAL, TexlipsePlugin.getResourceString("preferenceColorSpeLabel"), getFieldEditorParent()));
    addField(new RadioGroupFieldEditor(ColorManager.TEX_SPECIAL_STYLE, "", 3, RADIO_STYLE_STRING, getFieldEditorParent()));
    addField(new ColorFieldEditor(ColorManager.VERBATIM, TexlipsePlugin.getResourceString("preferenceColorVerbatimLabel"), getFieldEditorParent()));
    addField(new RadioGroupFieldEditor(ColorManager.VERBATIM_STYLE, "", 3, RADIO_STYLE_STRING, getFieldEditorParent()));
}
 
开发者ID:eclipse,项目名称:texlipse,代码行数:25,代码来源:ColoringPreferencePage.java

示例3: createFieldEditors

import org.eclipse.jface.preference.RadioGroupFieldEditor; //导入依赖的package包/类
@Override
protected void createFieldEditors() {
  Composite parent = getFieldEditorParent();

  // color: mode
  RadioGroupFieldEditor colorSelect = new RadioGroupFieldEditor(
      NodePreferencesIds.NODE_COLOR, "...shows...", 3,
      buildNodeColorModeOptions(), parent, true);

  // shape: mode
  RadioGroupFieldEditor shapeSelect = new RadioGroupFieldEditor(
      NodePreferencesIds.NODE_SHAPE, "...shows...", 2, 
      buildNodeShapeModeOptions(), parent, true);

  // size: mode
  RadioGroupFieldEditor sizeSelect = new RadioGroupFieldEditor(
      NodePreferencesIds.NODE_SIZE, "...shows...", 2,
      buildNodeSizeModeOptions(), parent, true);

  // add fields to the page
  addField(colorSelect);
  addField(shapeSelect);
  addField(sizeSelect);
}
 
开发者ID:google,项目名称:depan,代码行数:25,代码来源:NodePreferencesPage.java

示例4: createFieldEditors

import org.eclipse.jface.preference.RadioGroupFieldEditor; //导入依赖的package包/类
/**
 * Creates the field editors. Field editors are abstractions of the common
 * GUI blocks needed to manipulate various types of preferences. Each field
 * editor knows how to save and restore itself.
 */
public void createFieldEditors() {
	Composite parent = getFieldEditorParent();
	
	Group grpPath = createGroup(getFieldEditorParent(), "General path definition");
	addField(new DirectoryFieldEditor(PrefKeys.Path.SDK, "&SDK path:", grpPath));
	addField(new DirectoryFieldEditor(PrefKeys.Path.COMPILER, "&Compiler path:", grpPath));
	addField(new DirectoryFieldEditor(PrefKeys.Path.TOOLS, "&Tools path:", grpPath));

	Group grpSerial = createGroup(parent, "General serial port settings");
	addField(new StringFieldEditor(PrefKeys.Serial.PORT, "Default port:", grpSerial));

	RadioGroupFieldEditor rg1 = new RadioGroupFieldEditor(PrefKeys.Serial.PARITY, "Parity", 6,
			PrefKeys.Serial.VPARITY, grpSerial);
	addField(rg1);
	addField(new RadioGroupFieldEditor(PrefKeys.Serial.DATABITS, "Data bits", 6, PrefKeys.Serial.VDATABITS,
			grpSerial));
	addField(new RadioGroupFieldEditor(PrefKeys.Serial.STOPBITS, "Stop bits", 2, PrefKeys.Serial.VSTOPBITS,
			grpSerial));
	
}
 
开发者ID:ploys,项目名称:ecle,代码行数:26,代码来源:PrefPageGeneral.java

示例5: createFieldEditors

import org.eclipse.jface.preference.RadioGroupFieldEditor; //导入依赖的package包/类
@Override
protected void createFieldEditors() {
    addField(new LabelFieldEditor("General SADL Settings", getFieldEditorParent()));
    addField(new StringFieldEditor("baseUri", "Base URI", getFieldEditorParent()));
    addField(new RadioGroupFieldEditor("OWL_Format", "Saved OWL model format :", 5, 
    		new String[][] {
    		{ConfigurationManager.RDF_XML_ABBREV_FORMAT, ConfigurationManager.RDF_XML_ABBREV_FORMAT}, 
    		{ConfigurationManager.RDF_XML_FORMAT, ConfigurationManager.RDF_XML_FORMAT}, 
    		{ConfigurationManager.N3_FORMAT, ConfigurationManager.N3_FORMAT}, 
    		{ConfigurationManager.N_TRIPLE_FORMAT, ConfigurationManager.N_TRIPLE_FORMAT}, 
    		{ConfigurationManager.JENA_TDB, ConfigurationManager.JENA_TDB},
    		}, 
    		getFieldEditorParent()));
    addField(new RadioGroupFieldEditor("importBy", "Show import model list as:", 2, 
    		new String[][] {{"Model Namespaces", "ns"}, {"SADL File Names", "fn"}}, getFieldEditorParent()));
    addField(new BooleanFieldEditor("prefixesOnlyAsNeeded", "Show prefixes for imported concepts only when needed for disambiguation", getFieldEditorParent()));
    addField(new BooleanFieldEditor("validateBeforeTest", "Validate before Testing", getFieldEditorParent()));
    addField(new BooleanFieldEditor("namespacesInQueryResults", "Show Namespaces in Query Results", getFieldEditorParent()));
    addField(new BooleanFieldEditor("showTimingInformation", "Show Timing Informaton (Build, Reasoning)", getFieldEditorParent()));
    addField(new RadioGroupFieldEditor(IConfigurationManager.dmyOrder, "Interpret Date 10/11/2012 as:", 2, 
    		new String[][] {{"MM/DD/YYYY", IConfigurationManager.dmyOrderMDY}, 
    						{"DD/MM/YYYY", IConfigurationManager.dmyOrderDMY}}, getFieldEditorParent()));
    addField(new BooleanFieldEditor("deepValidationOff", "Disable Deep Validation of Model", getFieldEditorParent()));
    addField(new StringFieldEditor("graphvizpath", "GraphViz bin folder", getFieldEditorParent()));
}
 
开发者ID:crapo,项目名称:sadlos2,代码行数:26,代码来源:SadlRootPreferencePage.java

示例6: createFieldEditors

import org.eclipse.jface.preference.RadioGroupFieldEditor; //导入依赖的package包/类
@Override
protected void createFieldEditors() {

	addField(new RadioGroupFieldEditor(TimekeeperPlugin.DATABASE_LOCATION, "Database location", 1,
			new String[][] {
		{ "Shared (in ~/.timekeeper/)", TimekeeperPlugin.DATABASE_LOCATION_SHARED },
		{ "Relative to workspace (in .timekeeper/)", TimekeeperPlugin.DATABASE_LOCATION_WORKSPACE },
		{ "Specified by JDBC URL", TimekeeperPlugin.DATABASE_LOCATION_URL },
			}, getFieldEditorParent(), true));

	addField(new StringFieldEditor(TimekeeperPlugin.DATABASE_URL, Messages.DatabasePreferences_URL,
			getFieldEditorParent()));

	Group g2 = new Group(getFieldEditorParent(), SWT.SHADOW_ETCHED_IN);
	g2.setText(Messages.DatabasePreferences_ExportImportTitle);
	g2.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false, 2, 1));
	g2.setLayout(new GridLayout(2, true));
	addExportButton(g2);
	addImportButton(g2);
	adjustGridLayout();
}
 
开发者ID:turesheim,项目名称:eclipse-timekeeper,代码行数:22,代码来源:DatabasePreferences.java

示例7: additionalFields

import org.eclipse.jface.preference.RadioGroupFieldEditor; //导入依赖的package包/类
@Override
protected List<? extends FieldEditor> additionalFields(Composite fieldEditorParent) {
    modelExtensionSelector = new RadioGroupFieldEditor(
            PreferenceConstants.EXPORT_RESULT_MODEL_EXTENSION, 
            "Simulink model file extension: ", 
            1,
            new String[][] {
                {"MDL", "mdl"},
                {"SLX", "slx"}
            },
            fieldEditorParent);  
    //@formatter:on
    modelExtensionSelector.setPreferenceStore(store);
    modelExtensionSelector.load();
    
    return Lists.newArrayList(modelExtensionSelector);
}
 
开发者ID:viatra,项目名称:massif,代码行数:18,代码来源:ExportSettingsDialog.java

示例8: createFieldEditors

import org.eclipse.jface.preference.RadioGroupFieldEditor; //导入依赖的package包/类
/**
 * @see org.eclipse.jface.preference.FieldEditorPreferencePage#createFieldEditors()
 */
@Override
public void createFieldEditors() {
    Composite p = getFieldEditorParent();

    useLocalsAndAttrsCamelCase = new RadioGroupFieldEditor(USE_LOCALS_AND_ATTRS_CAMELCASE,
            "Locals and attributes format (used for assign quick-assist)?", 1, LOCALS_LABEL_AND_VALUE, p, true);
    addField(useLocalsAndAttrsCamelCase);

    useMethodsFormat = new RadioGroupFieldEditor(USE_METHODS_FORMAT,
            "Methods format (used for generate properties refactoring)", 1, LABEL_AND_VALUE, p, true);
    addField(useMethodsFormat);

    labelLocalsFormat = new Label(p, SWT.NONE);

    labelMethodsFormat = new Label(p, SWT.NONE);
    updateLabelLocalsAndAttrs(useLocalsAndAttrsCamelCase());
    updateLabelMethods(useMethodsCamelCase());

}
 
开发者ID:fabioz,项目名称:Pydev,代码行数:23,代码来源:PyCodeStylePreferencesPage.java

示例9: createFieldEditors

import org.eclipse.jface.preference.RadioGroupFieldEditor; //导入依赖的package包/类
@Override
protected void createFieldEditors() {
	if (Platform.getOS().equals(Platform.OS_WIN32)) {
		addField(new RadioGroupFieldEditor(
				PreferenceIds.WINDOWS_EXPLORER_POLICY,
				"Windows Explorer Policy:", 1, new String[][] {
						{ "Open with folders", PreferenceIds.WINDOWS_EXPLORER_FOLDERS },
						{ "Open without folders", PreferenceIds.WINDOWS_EXPLORER_NO_FOLDERS }},
						getFieldEditorParent(), true));
	}
	
	if (Platform.getOS().equals(Platform.OS_MACOSX)) {
		addField(new RadioGroupFieldEditor(
				PreferenceIds.MAC_TERMINAL_POLICY,
				"Mac OS X Shell Policy:", 1, new String[][] {
						{ "Open in a new shell", PreferenceIds.MAC_TERMINAL_NEW_SHELL },
						{ "Open in a new tab", PreferenceIds.MAC_TERMINAL_NEW_TAB }},
						getFieldEditorParent(), true));
	}
}
 
开发者ID:sakim,项目名称:eclipse-utility,代码行数:21,代码来源:OpenExternalPreferencePage.java

示例10: createFieldEditors

import org.eclipse.jface.preference.RadioGroupFieldEditor; //导入依赖的package包/类
protected void createFieldEditors() {
    // Initialize all field editors.
    FileFieldEditor dotPath = new FileFieldEditor(AutoLayoutPreferences.PREF_DOTPATH, Messages.getString("AutoLayoutDotSettingsWizardPage.dotPath"), //$NON-NLS-1$
            getFieldEditorParent());
    addField(dotPath);

    StringFieldEditor width = new StringFieldEditor(AutoLayoutPreferences.PREF_WIDTH, Messages.getString("AutoLayoutDotSettingsWizardPage.width"), //$NON-NLS-1$
            getFieldEditorParent());
    addField(width);

    StringFieldEditor height = new StringFieldEditor(AutoLayoutPreferences.PREF_HEIGHT, Messages.getString("AutoLayoutDotSettingsWizardPage.height"), //$NON-NLS-1$
            getFieldEditorParent());
    addField(height);

    String[][] values = { { Messages.getString("AutoLayoutDotSettingsWizardPage.topdown"), "TB" }, //$NON-NLS-1$ //$NON-NLS-2$
            { Messages.getString("AutoLayoutDotSettingsWizardPage.leftright"), "LR" } }; //$NON-NLS-1$ //$NON-NLS-2$

    RadioGroupFieldEditor orientation = new RadioGroupFieldEditor(AutoLayoutPreferences.PREF_ORIENTATION, Messages
            .getString("AutoLayoutDotSettingsWizardPage.orientation"), 1, values, getFieldEditorParent()); //$NON-NLS-1$
    addField(orientation);

    BooleanFieldEditor empty = new BooleanFieldEditor(AutoLayoutPreferences.PREF_EMPTYPOINTS, Messages
            .getString("AutoLayoutDotSettingsWizardPage.manipulateEmptyPoints"), getFieldEditorParent()); //$NON-NLS-1$
    addField(empty);

}
 
开发者ID:McGill-DP-Group,项目名称:seg.jUCMNav,代码行数:27,代码来源:AutoLayoutPreferencePage.java

示例11: createFieldEditors

import org.eclipse.jface.preference.RadioGroupFieldEditor; //导入依赖的package包/类
protected void createFieldEditors() {
    // Initialize all field editors.

    String[][] values = { { Messages.getString("ScenarioExportPreferencePage.ExportJucmScenarios"), "0" }, //$NON-NLS-1$ //$NON-NLS-2$
            { Messages.getString("ScenarioExportPreferencePage.ExportLinearizedJucm"), "1" }, //$NON-NLS-1$ //$NON-NLS-2$
            { Messages.getString("ScenarioExportPreferencePage.ExportWellFormedJucm"), "2" } //$NON-NLS-1$ //$NON-NLS-2$
    };

    RadioGroupFieldEditor type = new RadioGroupFieldEditor(ScenarioExportPreferences.PREF_EXPORTTYPE, Messages
            .getString("ScenarioExportPreferencePage.ExportType"), 1, values, getFieldEditorParent()); //$NON-NLS-1$
    addField(type);

    String[][] values2 = { { Messages.getString("ScenarioExportPreferencePage.AllScenarios"), "all" }, //$NON-NLS-1$ //$NON-NLS-2$
            { Messages.getString("ScenarioExportPreferencePage.LastRunScenario"), "last" } }; //$NON-NLS-1$ //$NON-NLS-2$

    RadioGroupFieldEditor what = new RadioGroupFieldEditor(ScenarioExportPreferences.PREF_EXPORTALL, Messages
            .getString("ScenarioExportPreferencePage.ExportWhat"), 1, values2, getFieldEditorParent()); //$NON-NLS-1$
    addField(what);

    BooleanFieldEditor openAfterExport = new BooleanFieldEditor(ScenarioExportPreferences.PREF_OPENAFTEREXPORT, Messages
            .getString("ScenarioExportPreferencePage.AutoOpenAfterExport"), getFieldEditorParent()); //$NON-NLS-1$
    addField(openAfterExport);

}
 
开发者ID:McGill-DP-Group,项目名称:seg.jUCMNav,代码行数:25,代码来源:ScenarioExportPreferencePage.java

示例12: createFieldEditors

import org.eclipse.jface.preference.RadioGroupFieldEditor; //导入依赖的package包/类
@Override
protected void createFieldEditors(){
	addField(new RadioGroupFieldEditor(Preferences.ABL_LANGUAGE, Messages.Ablauf_preferredLang,
		1, new String[][] {
			{
				Messages.Ablauf_german, "d" //$NON-NLS-1$
			}, {
				Messages.Ablauf_french, "f" //$NON-NLS-1$
			}, {
				Messages.Ablauf_italian, Messages.Ablauf_24
			}
		}, getFieldEditorParent()));
		
	addField(new IntegerFieldEditor(Preferences.ABL_CACHELIFETIME,
		Messages.Ablauf_cachelifetime, getFieldEditorParent()));
	
	addField(new IntegerFieldEditor(Preferences.ABL_HEARTRATE, Messages.Ablauf_heartrate,
		getFieldEditorParent()));
	
}
 
开发者ID:elexis,项目名称:elexis-3-core,代码行数:21,代码来源:Ablauf.java

示例13: createFieldEditors

import org.eclipse.jface.preference.RadioGroupFieldEditor; //导入依赖的package包/类
@Override
protected void createFieldEditors() {
	Composite parent = getFieldEditorParent();
	BooleanFieldEditor logConsole = new BooleanFieldEditor(
			LoggerPreference.LOG_CONSOLE, "Show log console",
			getFieldEditorParent());
	addField(logConsole);
	String[][] logLevel = new String[][] {
			{ "All", LoggerPreference.LEVEL_ALL },
			{ "Information", LoggerPreference.LEVEL_INFO },
			{ "Warnings", LoggerPreference.LEVEL_WARN },
			{ "Errors", LoggerPreference.LEVEL_ERROR } };
	RadioGroupFieldEditor logRadios = new RadioGroupFieldEditor(
			LoggerPreference.LOG_LEVEL, "Log-Level:", 1, logLevel, parent,
			true);
	addField(logRadios);
}
 
开发者ID:GreenDelta,项目名称:olca-app,代码行数:18,代码来源:LoggerConfigPage.java

示例14: createFieldEditors

import org.eclipse.jface.preference.RadioGroupFieldEditor; //导入依赖的package包/类
@Override
protected void createFieldEditors(){
	final Composite parentComp = getFieldEditorParent();
	final RadioGroupFieldEditor groupFieldEditor =
		new RadioGroupFieldEditor(
			BATCH_OR_FTP,
			Messages.getString("PreferencePage.direktimport.label"), 2, new String[][] { //$NON-NLS-1$
				{
					Messages.getString("PreferencePage.batchscript.label"), BATCH}, { Messages.getString("PreferencePage.ftpserver.label"), FTP}}, //$NON-NLS-1$ //$NON-NLS-2$
			parentComp, true);
	final FileFieldEditor batchFileEditor =
		new FileFieldEditor(BATCH_DATEI, Messages.getString("PreferencePage.batchdatei.label"), //$NON-NLS-1$
			parentComp);
	
	addField(groupFieldEditor);
	addField(batchFileEditor);
	
	addField(new StringFieldEditor(FTP_HOST,
		Messages.getString("PreferencePage.label.host"), getFieldEditorParent())); //$NON-NLS-1$
	addField(new StringFieldEditor(FTP_USER,
		Messages.getString("PreferencePage.label.user"), getFieldEditorParent())); //$NON-NLS-1$
	addField(new StringFieldEditor(FTP_PWD,
		Messages.getString("PreferencePage.label.password"), getFieldEditorParent())); //$NON-NLS-1$
	addField(new InexistingDirectoryOKDirectoryFieldEditor(DL_DIR,
		Messages.getString("PreferencePage.label.download"), getFieldEditorParent())); //$NON-NLS-1$
}
 
开发者ID:elexis,项目名称:elexis-3-base,代码行数:27,代码来源:PreferencePage.java

示例15: createFieldEditors

import org.eclipse.jface.preference.RadioGroupFieldEditor; //导入依赖的package包/类
@Override
protected void createFieldEditors() {
	addField(new DirectoryFieldEditor("PATH", "&Directory preference:", getFieldEditorParent()));
	addField(new BooleanFieldEditor("BOOLEAN_VALUE", "&An example of a boolean preference", getFieldEditorParent()));
	addField(new RadioGroupFieldEditor("CHOICE", "An example of a multiple-choice preference", 1, new String[][] { { "&Choice 1", "choice1" },
           { "C&hoice 2", "choice2" } }, getFieldEditorParent()));
	
	addField(new StringFieldEditor("MySTRING1", "A &text preference:",
               getFieldEditorParent()));
       addField(new StringFieldEditor("MySTRING2", "A &text preference:",
               getFieldEditorParent()));
}
 
开发者ID:EnFlexIT,项目名称:AgentWorkbench,代码行数:13,代码来源:DummyPage.java


注:本文中的org.eclipse.jface.preference.RadioGroupFieldEditor类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。