public void initialize() {
if (_dialogFields == null) {
_dialogFields = new ArrayList();
for (IPropertyPageDescriptor pd : getAttributePDs()) {
DialogField field;
field = createDialogField(pd);
if (field == null) {
field = pd.getDialogFieldEditor();
}
field.putAttachedData(KEY_ATTR, pd);//descriptors[i]);
IDialogFieldApplyListener applyListener = getDialogFieldApplyListener(pd);
// getURI(), getTagName(), pd.getAttributeName());//descriptors[i]);
if (applyListener == null) {
applyListener = getDefaultApplyListener();
}
field.setDialogFieldApplyListener(applyListener);
IDialogFieldChangeListener changeListener = getDialogFieldChangeListener(pd);
// getURI(), getTagName(), pd.getAttributeName());//descriptors[i]);
if (changeListener == null) {
changeListener = getDefaultChangeListener();
}
field.setDialogFieldChangeListener(changeListener);
_dialogFields.add(field);
}
}
}