本文整理匯總了Java中org.eclipse.jface.preference.FieldEditor.loadDefault方法的典型用法代碼示例。如果您正苦於以下問題:Java FieldEditor.loadDefault方法的具體用法?Java FieldEditor.loadDefault怎麽用?Java FieldEditor.loadDefault使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.eclipse.jface.preference.FieldEditor
的用法示例。
在下文中一共展示了FieldEditor.loadDefault方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: performDefaults
import org.eclipse.jface.preference.FieldEditor; //導入方法依賴的package包/類
/**
* The field editor preference page implementation of a <code>PreferencePage</code>
* method loads all the field editors with their default values.
*/
protected void performDefaults()
{
if (fields != null)
{
Iterator e = fields.iterator();
while (e.hasNext())
{
FieldEditor pe = (FieldEditor) e.next();
pe.loadDefault();
}
}
// Force a recalculation of my error state.
checkState();
super.performDefaults();
}
示例2: 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);
}
}
示例3: performDefaults
import org.eclipse.jface.preference.FieldEditor; //導入方法依賴的package包/類
@Override
protected void performDefaults()
{
for( FieldEditor fieldEditor : fieldEditors )
fieldEditor.loadDefault();
super.performDefaults();
}
示例4: setValue
import org.eclipse.jface.preference.FieldEditor; //導入方法依賴的package包/類
@Override
void setValue(T value, E tabElements) {
FieldEditor fieldEditor = getFieldEditor(tabElements);
fieldType.setStoreDefaultValue(fieldEditor.getPreferenceStore(),
fieldEditor.getPreferenceName(), value);
fieldEditor.loadDefault();
}
示例5: performDefaults
import org.eclipse.jface.preference.FieldEditor; //導入方法依賴的package包/類
@Override
protected void performDefaults() {
for (FieldEditor field : fields) {
field.loadDefault();
}
super.performDefaults();
}
開發者ID:Cooperate-Project,項目名稱:CooperateModelingEnvironment,代碼行數:8,代碼來源:CDOServerConnectionPreference.java
示例6: updateChildStatus
import org.eclipse.jface.preference.FieldEditor; //導入方法依賴的package包/類
protected void updateChildStatus(final FieldEditorWrapper childFieldEditor, final boolean parentEnabled) {
if (childFieldEditor != null) { // null if on another page!
final FieldEditor fieldEditor = childFieldEditor.getFieldEditor();
fieldEditor.setEnabled(parentEnabled, childFieldEditor.getParent());
if (!parentEnabled && !fieldEditor.isValid()) {
fieldEditor.loadDefault(); // Fix invalid value
checkState(); // Enable OK & Apply buttons
}
}
}
示例7: performDefaults
import org.eclipse.jface.preference.FieldEditor; //導入方法依賴的package包/類
/**
* The field editor preference page implementation of a <code>PreferencePage</code> method loads all the field
* editors with their default values.
*/
@Override
protected void performDefaults() {
if (m_fields != null) {
Iterator<FieldEditor> I = m_fields.iterator();
while (I.hasNext()) {
FieldEditor editor = I.next();
editor.loadDefault();
}
}
// Force a recalculation of my error state.
checkState();
super.performDefaults();
}
示例8: performDefaults
import org.eclipse.jface.preference.FieldEditor; //導入方法依賴的package包/類
@Override
protected void performDefaults() {
for (FieldEditor fieldEditor : fieldEditors) {
fieldEditor.loadDefault();
}
}