我有一个从FieldEditorPreferencePage扩展到它的PreferencePage我添加了两个TableFieldEditor(从FieldEditor扩展),如下所示
@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);
}
我需要两个TableFieldEditors相互通信,我该怎么做?
我不想为此目的使用EventBus,是否有更好的方法,类似于HMVC?