当前位置: 首页>>代码示例>>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;未经允许,请勿转载。