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


Java FieldEditor.store方法代碼示例

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


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

示例1: performOk

import org.eclipse.jface.preference.FieldEditor; //導入方法依賴的package包/類
@Override
public boolean performOk() {
	for (FieldEditor fieldEditor : fieldEditors) {
		fieldEditor.store();
	}
	return true;
}
 
開發者ID:epsilonlabs,項目名稱:haetae,代碼行數:8,代碼來源:EpsilonHaetaePreferencePage.java

示例2: performOk

import org.eclipse.jface.preference.FieldEditor; //導入方法依賴的package包/類
/** 
 * The field editor preference page implementation of this 
 * <code>PreferencePage</code> method saves all field editors by
 * calling <code>FieldEditor.store</code>. Note that this method
 * does not save the preference store itself; it just stores the
 * values back into the preference store.
 *
 * @see FieldEditor#store()
 */
public boolean performOk()
{
    if (fields != null)
    {
        Iterator e = fields.iterator();
        while (e.hasNext())
        {
            FieldEditor pe = (FieldEditor) e.next();
            pe.store();
        }
        
    }
    return true;
}
 
開發者ID:tlaplus,項目名稱:tlaplus,代碼行數:24,代碼來源:GenericFieldEditorPropertyPage.java

示例3: propertyChange

import org.eclipse.jface.preference.FieldEditor; //導入方法依賴的package包/類
@Override
public final void propertyChange(PropertyChangeEvent event) {
	if (event.getSource() instanceof FieldEditor) {
		FieldEditor fe = (FieldEditor) event.getSource();
		internalStore.setValue(fe.getPreferenceName(), fe.getPreferenceStore().getDefaultString(fe.getPreferenceName()));
		fe.setPreferenceStore(internalStore);
		fe.store();
	}
	super.propertyChange(event);
}
 
開發者ID:cplutte,項目名稱:bts,代碼行數:11,代碼來源:AbstractDetailsPart.java

示例4: performOk

import org.eclipse.jface.preference.FieldEditor; //導入方法依賴的package包/類
@Override
public boolean performOk()
{
	for( FieldEditor fieldEditor : fieldEditors )
		fieldEditor.store();
	return super.performOk();
}
 
開發者ID:tliron,項目名稱:creel,代碼行數:8,代碼來源:PreferencePageWithFields.java

示例5: storeEditor

import org.eclipse.jface.preference.FieldEditor; //導入方法依賴的package包/類
private static void storeEditor(FieldEditor editor, String errorValue) {
  if (editor.isValid()) {
    editor.store();
  } else {
    editor.getPreferenceStore().setValue(editor.getPreferenceName(), errorValue);
  }
}
 
開發者ID:jbosstools,項目名稱:chromedevtools,代碼行數:8,代碼來源:TabBase.java

示例6: performOk

import org.eclipse.jface.preference.FieldEditor; //導入方法依賴的package包/類
@Override
public boolean performOk() {
    for (FieldEditor field : fields) {
        if (field.isValid()) {
            field.store();
            setErrorMessage(null);
        } else {
            setErrorMessage("Some fields do not have valid values!");
        }
    }
    return super.performOk();
}
 
開發者ID:Cooperate-Project,項目名稱:CooperateModelingEnvironment,代碼行數:13,代碼來源:CDOServerConnectionPreference.java

示例7: performOk

import org.eclipse.jface.preference.FieldEditor; //導入方法依賴的package包/類
@Override
public boolean performOk() {
    for (FieldEditor field : fields) {
        field.store();
    }
    return super.performOk();
}
 
開發者ID:Cooperate-Project,項目名稱:CooperateModelingEnvironment,代碼行數:8,代碼來源:WorkbenchPreferenceErrorIndicator.java

示例8: performOk

import org.eclipse.jface.preference.FieldEditor; //導入方法依賴的package包/類
/**
 * The field editor preference page implementation of this <code>PreferencePage</code> method saves all field
 * editors by calling <code>FieldEditor.store</code>. Note that this method does not save the preference store
 * itself; it just stores the values back into the preference store.
 *
 * @see FieldEditor#store()
 */
@Override
public boolean performOk() {
    if (m_fields != null) {
        Iterator<FieldEditor> I = m_fields.iterator();
        while (I.hasNext()) {
            FieldEditor editor = I.next();
            editor.store();
        }
    }
    return true;
}
 
開發者ID:Talend,項目名稱:tesb-studio-se,代碼行數:19,代碼來源:FieldLayoutPreferencePage.java

示例9: buttonPressed

import org.eclipse.jface.preference.FieldEditor; //導入方法依賴的package包/類
@Override
protected void buttonPressed(int buttonId) {
	if (buttonId == IDialogConstants.OK_ID) {
		// make each editor save its value
		for (FieldEditor editor : editors) {
			editor.store();
		}
		// copy updated values into configuration map
		updateConfigurationOptions();
	}
	super.buttonPressed(buttonId);
}
 
開發者ID:crapo,項目名稱:sadlos2,代碼行數:13,代碼來源:ReasonerConfigurationDialog.java

示例10: performApply

import org.eclipse.jface.preference.FieldEditor; //導入方法依賴的package包/類
@Override
   protected void performApply() {
for (FieldEditor fieldEditor : fieldEditors) {
    fieldEditor.store();
}
   }
 
開發者ID:Cavallinux,項目名稱:jisocreator,代碼行數:7,代碼來源:MKISOFSPreferencePage.java

示例11: performOk

import org.eclipse.jface.preference.FieldEditor; //導入方法依賴的package包/類
@Override
public boolean performOk() {
	for (FieldEditor editor : editors)
		editor.store();
	return super.performOk();
}
 
開發者ID:GreenDelta,項目名稱:olca-app,代碼行數:7,代碼來源:IoPreferencePage.java


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