use of org.apache.cayenne.modeler.ProjectController in project cayenne by apache.
the class MergerOptions method notifyProjectModified.
private void notifyProjectModified(boolean modelChanged) {
if (!modelChanged) {
return;
}
// mark the model as unsaved
Project project = getApplication().getProject();
project.setModified(true);
ProjectController projectController = getProjectController();
projectController.setDirty(true);
projectController.fireDataMapEvent(new DataMapEvent(Application.getFrame(), dataMap, MapEvent.REMOVE));
projectController.fireDataMapEvent(new DataMapEvent(Application.getFrame(), dataMap, MapEvent.ADD));
}
Aggregations