How to communicate between FieldEditors in RCP

39 Views Asked by At

I have a PreferencePage that extends from FieldEditorPreferencePage and to it I'm adding two TableFieldEditors (which extends from FieldEditor) as follows

@Override
protected void createFieldEditors() {
    TableFieldEditor activeProfileTable = new ActiveProfileTableFieldEditor(PreferenceConstants.GRADING_PROFILE, gradeProfileService, getFieldEditorParent());
    TableFieldEditor draftProfileTable = new DraftProfileTableFieldEditor(PreferenceConstants.GRADING_PROFILE, gradeProfileService, getFieldEditorParent());
    addField(activeProfileTable);
    addField(draftProfileTable);
}

I need the two TableFieldEditors to communicate with each other, how should I do it?

I don't want to use the EventBus for this purpose, is there a better way, something along the lines of HMVC?

0

There are 0 best solutions below