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


Java FieldEditor.load方法代碼示例

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


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

示例1: addField

import org.eclipse.jface.preference.FieldEditor; //導入方法依賴的package包/類
protected void addField(final FieldEditor editor, Composite parent, IPreferenceStore preferenceStore) {
    fields.add(editor);

    editor.setPreferenceStore(preferenceStore);
    editor.load();
    editor.setPropertyChangeListener(new IPropertyChangeListener() {

        @Override
        public void propertyChange(PropertyChangeEvent event) {
            // Apply on any change!
            editor.store();
        }
    });
    if (editor instanceof BooleanFieldEditorCustom) {
        editor.fillIntoGrid(parent, 2);
    } else {
        editor.fillIntoGrid(parent, 1);
    }
}
 
開發者ID:fabioz,項目名稱:Pydev,代碼行數:20,代碼來源:ProfileView.java

示例2: updateFieldEditors

import org.eclipse.jface.preference.FieldEditor; //導入方法依賴的package包/類
protected void updateFieldEditors(boolean enabled) {
	Composite parent = getFieldEditorParent();
	for (FieldEditor editor : editors) {
		editor.load();
		editor.setEnabled(enabled, parent);
	}
	getDefaultsButton().setEnabled(enabled);
}
 
開發者ID:UrsZeidler,項目名稱:uml2solidity,代碼行數:9,代碼來源:AbstractProjectPreferencesPage.java

示例3: createContents

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

	fieldEditors.add(new BooleanFieldEditor(ENABLE_HAETAE, "Enable Epsilon Haetae (experimental)", composite));

	for (FieldEditor fieldEditor : fieldEditors) {
		fieldEditor.setPreferenceStore(Activator.getDefault().getPreferenceStore());
		fieldEditor.load();
	}

	return composite;
}
 
開發者ID:epsilonlabs,項目名稱:haetae,代碼行數:14,代碼來源:EpsilonHaetaePreferencePage.java

示例4: initialize

import org.eclipse.jface.preference.FieldEditor; //導入方法依賴的package包/類
protected void initialize()
{
    if (fields != null)
    {
        Iterator e = fields.iterator();
        while (e.hasNext())
        {
            FieldEditor fieldEditor = (FieldEditor) e.next();
            fieldEditor.setPage(this);
            fieldEditor.setPreferenceStore(getPreferenceStore());
            fieldEditor.load();
        }
    }
}
 
開發者ID:tlaplus,項目名稱:tlaplus,代碼行數:15,代碼來源:GenericFieldEditorPropertyPage.java

示例5: initEditor

import org.eclipse.jface.preference.FieldEditor; //導入方法依賴的package包/類
/**
 * Initializes and sets up the given editor
 * 
 * @param editor
 * @param store
 */
void initEditor(FieldEditor editor, IPreferenceStore store) {
	addField(editor);
	editor.setPage(this);
	editor.setPropertyChangeListener(this);
	editor.setPreferenceStore(store);
	editor.load();
}
 
開發者ID:angelozerr,項目名稱:typescript.java,代碼行數:14,代碼來源:TypeScriptMainPreferencePage.java

示例6: updateFieldEditors

import org.eclipse.jface.preference.FieldEditor; //導入方法依賴的package包/類
protected void updateFieldEditors(boolean enabled) {
	// TODO handle do not use project settings sets project settings to
	// default
	Composite parent = getFieldEditorParent();
	Iterator<FieldEditor> it = editors.iterator();
	while (it.hasNext()) {
		FieldEditor editor = it.next();
		if (enabled)
			editor.load();
		else
			editor.loadDefault();
		editor.setEnabled(enabled, parent);
	}
}
 
開發者ID:cplutte,項目名稱:bts,代碼行數:15,代碼來源:AbstractPreferencePage.java

示例7: addFieldEditor

import org.eclipse.jface.preference.FieldEditor; //導入方法依賴的package包/類
/**
 * Hooks up a field editor to performOk and performDefaults.
 * 
 * @param fieldEditor
 *        The field editor
 */
protected void addFieldEditor( FieldEditor fieldEditor )
{
	fieldEditors.add( fieldEditor );
	fieldEditor.setPage( this );
	fieldEditor.setPreferenceStore( getPreferenceStore() );
	fieldEditor.load();
}
 
開發者ID:tliron,項目名稱:creel,代碼行數:14,代碼來源:PreferencePageWithFields.java

示例8: initialize

import org.eclipse.jface.preference.FieldEditor; //導入方法依賴的package包/類
/**
 * Initializes all field editors.
 */
protected void initialize() {
    if (m_fields != null) {
        Iterator<FieldEditor> I = m_fields.iterator();
        while (I.hasNext()) {
            FieldEditor editor = I.next();
            editor.setPage(null);
            editor.setPropertyChangeListener(this);
            editor.setPreferenceStore(getPreferenceStore());
            editor.load();
        }
    }
}
 
開發者ID:Talend,項目名稱:tesb-studio-se,代碼行數:16,代碼來源:FieldLayoutPreferencePage.java

示例9: createContents

import org.eclipse.jface.preference.FieldEditor; //導入方法依賴的package包/類
@Override
   protected Control createContents(Composite parent) {
setTitle("Iso options");
Composite top = new Composite(parent, SWT.NONE);
fieldEditors = new ArrayList<FieldEditor>();
FieldEditor editor = new FileFieldEditor("mkisofs.path", "MKISOFS Path", true,
	StringButtonFieldEditor.VALIDATE_ON_FOCUS_LOST, top);
fieldEditors.add(editor);

Group optionsGroup = new Group(top, SWT.NONE);
optionsGroup.setText("Iso creations options");

editor = new BooleanFieldEditor("mkisofs.rockridge.use", "Use RockRidge Extension", optionsGroup);
fieldEditors.add(editor);

editor = new BooleanFieldEditor("mkisofs.joliet.use", "Use Joliet Extension", optionsGroup);
fieldEditors.add(editor);

editor = new BooleanFieldEditor("mkisofs.symlinks.follow", "Follow symbolic links", optionsGroup);
fieldEditors.add(editor);

for (FieldEditor fieldEditor : fieldEditors) {
    fieldEditor.setPage(this);
    fieldEditor.setPreferenceStore(getPreferenceStore());
    fieldEditor.load();
}

GridDataFactory.defaultsFor(optionsGroup).grab(true, false).span(3, 1).applyTo(optionsGroup);
GridLayoutFactory.swtDefaults().generateLayout(optionsGroup);
GridLayoutFactory.fillDefaults().numColumns(3).generateLayout(top);
return top;
   }
 
開發者ID:Cavallinux,項目名稱:jisocreator,代碼行數:33,代碼來源:MKISOFSPreferencePage.java

示例10: setupEditor

import org.eclipse.jface.preference.FieldEditor; //導入方法依賴的package包/類
/**
 * Adds the editor to the current preference page. Links it with the 
 * page IPreferenceStore and then load stored value.
 * 
 * @param editor the field editor to setup 
 */
public void setupEditor(FieldEditor editor)
{
    editor.setPage(this);
    editor.setPreferenceStore(getPreferenceStore());
    editor.load();
}
 
開發者ID:edeoliveira,項目名稱:Mailster,代碼行數:13,代碼來源:DefaultConfigurationPage.java

示例11: loadFromWorkspace

import org.eclipse.jface.preference.FieldEditor; //導入方法依賴的package包/類
public void loadFromWorkspace() {
    if (fields != null) {
        Iterator<FieldEditor> e = fields.iterator();
        while (e.hasNext()) {
            FieldEditor pe = e.next();
            pe.load();
        }
    }
}
 
開發者ID:fabioz,項目名稱:Pydev,代碼行數:10,代碼來源:ScopedFieldEditorPreferencePage.java

示例12: performDefaults

import org.eclipse.jface.preference.FieldEditor; //導入方法依賴的package包/類
@Override
protected void performDefaults() {
	super.performDefaults();
	IoPreference.reset();
	for (FieldEditor editor : editors)
		editor.load();
}
 
開發者ID:GreenDelta,項目名稱:olca-app,代碼行數:8,代碼來源:IoPreferencePage.java

示例13: addTimezonePrefsEditors

import org.eclipse.jface.preference.FieldEditor; //導入方法依賴的package包/類
/**
     * Configuration of timezone.
     */
    private void addTimezonePrefsEditors() {
        timezonePrefsGroup = new Group(getFieldEditorParent(), SWT.NONE);
        timezonePrefsGroup.setLayout(new GridLayout(1, false));
        timezonePrefsGroup.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
        timezonePrefsGroup.setText("Timezone settings");

        timezoneFromCountryEditor = new BooleanFieldEditor(WaqtSalatPreferenceConstants.P_GET_TIMEZONE_FROM_COUNTRY,
                "Try to get timezone from country/city", timezonePrefsGroup);
// FIXME: fix tooltip display issues in windows XP        
//        timezoneFromCountryEditor
//                .getLabelControl(timezonePrefsGroup)
//                .setToolTipText(
//                        "Be aware that there may exist several timezones for the same country. In that case, it is highly recommended to set explicitely the timezone or even use system default timezone.");

        useSystemTimezoneEditor = new BooleanFieldEditor(WaqtSalatPreferenceConstants.P_USE_SYSTEM_TIMEZONE,
                "Use system timezone", timezonePrefsGroup);

        timezonesEditor = new ComboFieldEditor(WaqtSalatPreferenceConstants.P_TIMEZONE, "Timezone",
                getAvailableTimezones(), timezonePrefsGroup);

        BooleanFieldEditor daylightSavingsEditor = new BooleanFieldEditor(
                WaqtSalatPreferenceConstants.P_DAYLIGHT_SAVINGS, "Daylight savings", timezonePrefsGroup);

        for (FieldEditor editor : new FieldEditor[] { timezoneFromCountryEditor, useSystemTimezoneEditor,
                timezonesEditor, daylightSavingsEditor }) {
            editor.setPreferenceStore(getPreferenceStore());
            editor.load();
            addField(editor);
        }
    }
 
開發者ID:paissad,項目名稱:waqtsalat-eclipse-plugin,代碼行數:34,代碼來源:MainPrefsPage.java

示例14: initPreferenceStore

import org.eclipse.jface.preference.FieldEditor; //導入方法依賴的package包/類
private static void initPreferenceStore(FieldEditor field) {
    field.setPreferenceStore(PreferenceActivator.getDefault().getPreferenceStore());
    field.load();
}
 
開發者ID:Cooperate-Project,項目名稱:CooperateModelingEnvironment,代碼行數:5,代碼來源:CDOServerConnectionPreference.java

示例15: initField

import org.eclipse.jface.preference.FieldEditor; //導入方法依賴的package包/類
private void initField(FieldEditor field) {
	field.setPreferenceStore(getPreferenceStore());
	field.setPreferencePage(this);
	field.load();
}
 
開發者ID:dcendents,項目名稱:sysdeotomcat,代碼行數:6,代碼來源:TomcatJVMPreferencePage.java


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