public MultiPageTaxonEditor() {
super();
undoContext = new UndoContext();
+
}
/** {@inheritDoc} */
input = (TaxonEditorInput) getEditorInput();
conversation = input.getConversationHolder();
conversation.registerForDataStoreChanges(this);
-
+ cdmEntitySession.registerForDataStoreChanges(this);
try {
addPage(Page.NAME.getIndex(), new TaxonNameEditor(this),
getEditorInput());
}
// commit the conversation and start a new transaction immediately
+
+ input.update();
conversation.commit(true);
monitor.worked(1);
editorPage.setDisabled();
}
}
+ cdmEntitySession.unregisterForDataStoreChanges(this);
conversation.unregisterForDataStoreChanges(this);
conversation.close();
setDirty(false);
}
this.input = (TaxonEditorInput) input;
+ cdmEntitySession = this.input.getCdmEntitySession();
// try {
// // Listen for name changes,
*/
@Override
public ICdmEntitySession getCdmEntitySession() {
- // TODO Auto-generated method stub
- return null;
+ return cdmEntitySession;
}
}