@Override
protected void doOnRemove(FileInfo fileInfo) {
if (mediator.getProject() != null
/*&& fileInfo.getFile().equals(mediator.getProject().getMainFile()) */ ) {
FileDeletedDialog dialog = new FileDeletedDialog(Application.getFrame());
dialog.show();
if (dialog.shouldSave()) {
Application
.getInstance()
.getAction(SaveAction.getActionName())
.performAction(null);
}
else if (dialog.shouldClose()) {
CayenneModelerController controller = Application
.getInstance()
.getFrameController();
controller.projectClosedAction();