use of org.eclipse.jface.preference.FieldEditor in project AutoRefactor by JnRouvignac.
the class WorkspacePreferencePage method initialize.
/** Initialize. */
protected void initialize() {
if (fields != null) {
for (final FieldEditor field : fields) {
field.setPage(this);
field.setPreferenceStore(getPreferenceStore());
field.load();
}
}
}
use of org.eclipse.jface.preference.FieldEditor in project AutoRefactor by JnRouvignac.
the class WorkspacePreferencePage method checkState.
/** Check the state. */
protected void checkState() {
boolean valid = true;
invalidFieldEditor = null;
if (fields != null) {
for (final FieldEditor field : fields) {
valid = field.isValid();
if (!valid) {
invalidFieldEditor = field;
break;
}
}
}
setValid(valid);
}
use of org.eclipse.jface.preference.FieldEditor in project tesb-studio-se by Talend.
the class FieldLayoutPreferencePage method initialize.
/**
* 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();
}
}
}
use of org.eclipse.jface.preference.FieldEditor in project tesb-studio-se by Talend.
the class FieldLayoutPreferencePage method performOk.
/**
* 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;
}
use of org.eclipse.jface.preference.FieldEditor in project tesb-studio-se by Talend.
the class FieldLayoutPreferencePage method performDefaults.
/**
* 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();
}
Aggregations