public void performAction(ActionEvent e) {
synchObjEntity();
}
protected void synchObjEntity() {
ProjectController mediator = getProjectController();
ObjEntity entity = mediator.getCurrentObjEntity();
if (entity != null && entity.getDbEntity() != null) {
EntityMergeSupport merger = new EntitySyncController(Application
.getInstance()
.getFrameController(), entity).createMerger();
if (merger == null) {
return;
}
if (merger.synchronizeWithDbEntity(entity)) {
mediator
.fireObjEntityEvent(new EntityEvent(this, entity, MapEvent.CHANGE));
mediator.fireObjEntityDisplayEvent(new EntityDisplayEvent(
this,
entity,
entity.getDataMap(),
mediator.getCurrentDataDomain()));
}
}
}