如何在RCP中的FieldEditors之间进行通信

时间:2015-05-06 13:06:41

标签: model-view-controller eclipse-rcp hmvc fieldeditor

我有一个从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?

0 个答案:

没有答案