當前位置: 首頁>>代碼示例>>Java>>正文


Java DirectoryFieldEditor類代碼示例

本文整理匯總了Java中org.eclipse.jface.preference.DirectoryFieldEditor的典型用法代碼示例。如果您正苦於以下問題:Java DirectoryFieldEditor類的具體用法?Java DirectoryFieldEditor怎麽用?Java DirectoryFieldEditor使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


DirectoryFieldEditor類屬於org.eclipse.jface.preference包,在下文中一共展示了DirectoryFieldEditor類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: createFieldEditors

import org.eclipse.jface.preference.DirectoryFieldEditor; //導入依賴的package包/類
@Override
protected void createFieldEditors() {
	addField(new DirectoryFieldEditor(PreferenceConstants.TIMER_FILE_PATH, 
			"Timer output directory:", getFieldEditorParent()));
	
	addField(new StringFieldEditor(PreferenceConstants.TIMER_FILE, "Filename:", getFieldEditorParent()));
	
	addField(new SpacerFieldEditor(getFieldEditorParent()));
	
	addField(new LabelFieldEditor("Default Timer Settings", getFieldEditorParent()));
	
	StringFieldEditor hoursField = new StringFieldEditor(PreferenceConstants.TIMER_HOUR_DEFAULT, "Hour(s):", getFieldEditorParent());
	hoursField.setTextLimit(2);
	addField(hoursField);
	
	StringFieldEditor minsField = new StringFieldEditor(PreferenceConstants.TIMER_MINUTES_DEFAULT, "Minutes:", getFieldEditorParent());
	minsField.setTextLimit(2);
	addField(minsField);
	
	StringFieldEditor secField = new StringFieldEditor(PreferenceConstants.TIMER_SECONDS_DEFAULT, "Seconds:", getFieldEditorParent());
	secField.setTextLimit(2);
	addField(secField);
}
 
開發者ID:NineWorlds,項目名稱:xstreamer,代碼行數:24,代碼來源:TimerPreferencePage.java

示例2: createFieldEditors

import org.eclipse.jface.preference.DirectoryFieldEditor; //導入依賴的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(), "Sming path definition");
		addField(new DirectoryFieldEditor(PrefKeys.Sming.PATH, "&Sming framework path:", parent));
//		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));
		addField(new RadioGroupFieldEditor(PrefKeys.Serial.PARITY, "Parity", 6, PrefKeys.Serial.VPARITY, grpSerial));
		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));

		// addField(new BooleanFieldEditor(PrefKeys.P_BOOLEAN,
		// "&An example of a boolean preference", grpSerial));
		// addField(new StringFieldEditor(PrefKeys.P_STRING,
		// "A &text preference:", getFieldEditorParent()));
		this.adjustGridLayout();
		*/
	}
 
開發者ID:ploys,項目名稱:ecle,代碼行數:30,代碼來源:PrefPageSming.java

示例3: createFieldEditors

import org.eclipse.jface.preference.DirectoryFieldEditor; //導入依賴的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

示例4: createUI14RawDataPath

import org.eclipse.jface.preference.DirectoryFieldEditor; //導入依賴的package包/類
/**
 * create field: raw data path
 * 
 * @param parent
 */
private void createUI14RawDataPath(final Composite parent) {

	/*
	 * path to save raw tour data
	 */
	_pathEditor = new DirectoryFieldEditor(
			ITourbookPreferences.DUMMY_FIELD,
			Messages.Import_Wizard_Label_auto_save_path,
			parent);

	_pathEditor.setPropertyChangeListener(new IPropertyChangeListener() {
		public void propertyChange(final PropertyChangeEvent event) {
			isPageValid();
		}
	});
}
 
開發者ID:wolfgang-ch,項目名稱:mytourbook,代碼行數:22,代碼來源:DataTransferWizardPage.java

示例5: createUI_94_Field_RawDataPath

import org.eclipse.jface.preference.DirectoryFieldEditor; //導入依賴的package包/類
/**
 * field: path to save raw tour data
 */
private void createUI_94_Field_RawDataPath(final Composite parent) {

	/*
	 * editor: raw data path
	 */
	_rawDataPathEditor = new DirectoryFieldEditor(
			ITourbookPreferences.DUMMY_FIELD,
			Messages.Pref_People_Label_DefaultDataTransferFilePath,
			parent);
	_rawDataPathEditor.setEmptyStringAllowed(true);
	_rawDataPathEditor.setValidateStrategy(StringFieldEditor.VALIDATE_ON_KEY_STROKE);

	final Label lblPath = _rawDataPathEditor.getLabelControl(parent);
	lblPath.setToolTipText(Messages.Pref_People_Label_DefaultDataTransferFilePath_Tooltip);

	_txtRawDataPath = _rawDataPathEditor.getTextControl(parent);
	_txtRawDataPath.addModifyListener(_defaultModifyListener);
}
 
開發者ID:wolfgang-ch,項目名稱:mytourbook,代碼行數:22,代碼來源:PrefPagePeople.java

示例6: createFieldEditors

import org.eclipse.jface.preference.DirectoryFieldEditor; //導入依賴的package包/類
/**
 * Create contents of the preference page.
 */
@Override
protected void createFieldEditors() {
    
    serverAddress = new StringListEditor(MONDO_ADDRESSES_PROPERTY, "Server Addresses", getFieldEditorParent());
    extensions = new StringListEditor(MONDO_EXTENSIONS_PROPERTY, "Extensions", getFieldEditorParent());
    tempFolder = new DirectoryFieldEditor(MONDO_TEMP_PROPERTY, "Temp folder", getFieldEditorParent());
    enableLock = new BooleanFieldEditor(MONDO_ENABLE_PROPERTY, "Enable live-lock", getFieldEditorParent());
    lockUpdateDelay = new IntegerFieldEditor(MONDO_DELAY_PROPERTY, "Lock update delay [ms] (0 = manually)",
            getFieldEditorParent());
    lockUpdateDelay.setValidRange(0, 100000);

    
    addField(serverAddress);
    addField(extensions);
    addField(tempFolder);
    addField(enableLock);
    addField(lockUpdateDelay);
}
 
開發者ID:FTSRG,項目名稱:mondo-collab-framework,代碼行數:22,代碼來源:MondoPreferencePage.java

示例7: createFieldEditors

import org.eclipse.jface.preference.DirectoryFieldEditor; //導入依賴的package包/類
@Override
	protected void createFieldEditors() {

		addField(new DirectoryFieldEditor("MAIN_PATH", "&Directory preference:",
				getFieldEditorParent()));
		addField(new BooleanFieldEditor("BOOLEAN_CREATE_BACKUP",
				"&Create backup file", 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("BACKUP_SUFF", "A &backup suffix:",
				getFieldEditorParent()));
		addField(new StringFieldEditor("DEFAULT_LOCALE", "A &default resource locale:",
				getFieldEditorParent()));

	}
 
開發者ID:dmvstar,項目名稱:eclipse-asveditor,代碼行數:20,代碼來源:CommonPreferences.java

示例8: createFieldEditors

import org.eclipse.jface.preference.DirectoryFieldEditor; //導入依賴的package包/類
@Override
protected void createFieldEditors(){
	addField(new DirectoryFieldEditor(DOWNLOAD_DIR,
		Messages.MedicsPreferencePage_labelDownloadDir, getFieldEditorParent()));
	addField(new DirectoryFieldEditor(UPLOAD_DIR, Messages.MedicsPreferencePage_labelUploadDir,
		getFieldEditorParent()));
	addField(new DirectoryFieldEditor(IMED_DIR,
		Messages.MedicsPreferencePage_labelUploadDirimed, getFieldEditorParent()));
	addField(new DirectoryFieldEditor(ARCHIV_DIR, Messages.MedicsPreferencePage_labelArchivDir,
		getFieldEditorParent()));
	addField(new DirectoryFieldEditor(ERROR_DIR, Messages.MedicsPreferencePage_labelErrorDir,
		getFieldEditorParent()));
	addField(new StringFieldEditor(DOKUMENT_CATEGORY,
		Messages.MedicsPreferencePage_labelDocumentCategory, getFieldEditorParent()));
	addField(new StringFieldEditor(DELETE_ARCHIV_DAYS, "Archiv bereinigen (Tage)",
		getFieldEditorParent()));
}
 
開發者ID:elexis,項目名稱:elexis-3-base,代碼行數:18,代碼來源:MedicsPreferencePage.java

示例9: createFieldEditors

import org.eclipse.jface.preference.DirectoryFieldEditor; //導入依賴的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

示例10: createFieldEditors

import org.eclipse.jface.preference.DirectoryFieldEditor; //導入依賴的package包/類
@Override
	protected void createFieldEditors() {
//		addField(new ComboFieldEditor("prefCombo", "A combo field", new String[][]{{"display1", "value1"},{"display2", "value2"}}, getFieldEditorParent()));
//		addField(new ColorFieldEditor("prefColor", "Color for table items : ", getFieldEditorParent()));
//		addField(new BooleanFieldEditor("prefBoolean", "A boolean : ", getFieldEditorParent()));
//		addField(new DirectoryFieldEditor(TermSuiteUIPreferences.OUTPUT_DIRECTORY, "Output directory : ", getFieldEditorParent()));
		addField(new BooleanFieldEditor(TermSuiteUIPreferences.WRAP_TEXT, "Wrap text by default when viewing a document", getFieldEditorParent()));
		addField(new DirectoryFieldEditor(TermSuiteUIPreferences.OUTPUT_DIRECTORY, "Termsuite output directory", getFieldEditorParent()));

	}
 
開發者ID:termsuite,項目名稱:termsuite-ui,代碼行數:11,代碼來源:GeneralPreferencePage.java

示例11: propertyChange

import org.eclipse.jface.preference.DirectoryFieldEditor; //導入依賴的package包/類
@Override
public void propertyChange(PropertyChangeEvent event) {
  if (event.getProperty() == DirectoryFieldEditor.IS_VALID) {
    fireValueChanged(IS_VALID, event.getOldValue(), event.getNewValue());
  } else if (event.getProperty() == DirectoryFieldEditor.VALUE) {
    fireValueChanged(VALUE, event.getOldValue(), event.getNewValue());
  }
}
 
開發者ID:GoogleCloudPlatform,項目名稱:google-cloud-eclipse,代碼行數:9,代碼來源:CloudSdkPreferenceArea.java

示例12: createFieldEditors

import org.eclipse.jface.preference.DirectoryFieldEditor; //導入依賴的package包/類
/**
 * Creates the Weblogic Preferece page 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.
 * 
 * @see org.eclipse.jface.preference.FieldEditorPreferencePage#createFieldEditors()
 */
@Override
public void createFieldEditors() {
    this.addField(new DirectoryFieldEditor(PREF_ORACLEHOME, WEBLOGIC_ORACLEHOME_LABEL, this.getFieldEditorParent()));
    this.addField(new DirectoryFieldEditor(PREF_WLHOME, WEBLOGIC_WLHOME_LABEL, this.getFieldEditorParent()));
    this.addField(new StringFieldEditor(PREF_DOMAINNAME, WEBLOGIC_DOMAINNAME_LABEL, 20, this.getFieldEditorParent()));
    this.addField(new DirectoryFieldEditor(PREF_DOMAINDIR, WEBLOGIC_DOMAINDIR_LABEL, this.getFieldEditorParent()));
    this.addField(new StringFieldEditor(PREF_SERVERNAME, WEBLOGIC_SERVERNAME_LABEL, 20, this.getFieldEditorParent()));
    this.addField(new StringFieldEditor(PREF_USERNAME, WEBLOGIC_USER_LABEL, 20, this.getFieldEditorParent()));
    this.addField(new StringFieldEditor(PREF_PASSWORD, WEBLOGIC_PASSWORD_LABEL, 20, this.getFieldEditorParent()));
    this.addField(new StringFieldEditor(PREF_HOSTNAME, WEBLOGIC_HOSTNAME_LABEL, 20, this.getFieldEditorParent()));
    this.addField(new StringFieldEditor(PREF_PORT, WEBLOGIC_PORT_LABEL, 10, this.getFieldEditorParent()));
}
 
開發者ID:rajendarreddyj,項目名稱:eclipse-weblogic-plugin,代碼行數:19,代碼來源:WeblogicPreferencePage.java

示例13: createContents

import org.eclipse.jface.preference.DirectoryFieldEditor; //導入依賴的package包/類
@Override
protected Control createContents(final Composite parent) {
    final Composite composite = new Composite(parent, SWT.NONE);

    final GridLayout gridLayout = new GridLayout();
    gridLayout.numColumns = 3;

    composite.setLayout(gridLayout);

    extDir = new DirectoryFieldEditor("", ResourceString.getResourceString("label.ext.classpath"), composite);

    CompositeFactory.filler(composite, 2);
    downloadButton = createButton(composite, "Download");

    downloadButton.addSelectionListener(new SelectionAdapter() {

        /**
         * {@inheritDoc}
         */
        @Override
        public void widgetSelected(final SelectionEvent e) {
            download();
        }
    });

    extDir.setFocus();

    setData();

    return composite;
}
 
開發者ID:roundrop,項目名稱:ermasterr,代碼行數:32,代碼來源:ExtClassPathPreferencePage.java

示例14: createContents

import org.eclipse.jface.preference.DirectoryFieldEditor; //導入依賴的package包/類
@Override
protected Control createContents(Composite parent) {
	Composite composite = new Composite(parent, SWT.NONE);

	GridLayout gridLayout = new GridLayout();
	gridLayout.numColumns = 3;

	composite.setLayout(gridLayout);

	this.extDir = new DirectoryFieldEditor("",
			ResourceString.getResourceString("label.ext.classpath"),
			composite);

	CompositeFactory.filler(composite, 2);
	this.downloadButton = this.createButton(composite, "Download");

	this.downloadButton.addSelectionListener(new SelectionAdapter() {

		/**
		 * {@inheritDoc}
		 */
		@Override
		public void widgetSelected(SelectionEvent e) {
			download();
		}
	});

	this.extDir.setFocus();

	this.setData();

	return composite;
}
 
開發者ID:kozake,項目名稱:ermaster-k,代碼行數:34,代碼來源:ExtClassPathPreferencePage.java

示例15: createFieldEditors

import org.eclipse.jface.preference.DirectoryFieldEditor; //導入依賴的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.
 */
@Override
public void createFieldEditors() {
  addField(new DirectoryFieldEditor(PreferenceConstants.P_PATH,
      "&Hadoop installation directory:", getFieldEditorParent()));

}
 
開發者ID:Nextzero,項目名稱:hadoop-2.6.0-cdh5.4.3,代碼行數:12,代碼來源:MapReducePreferencePage.java


注:本文中的org.eclipse.jface.preference.DirectoryFieldEditor類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。