Package org.apache.cayenne.modeler.dialog

Examples of org.apache.cayenne.modeler.dialog.FileDeletedDialog


    @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();
View Full Code Here


    }

    @Override
    protected void doOnRemove(FileInfo fileInfo) {
        if (mediator.getProject() != null) {
            FileDeletedDialog dialog = new FileDeletedDialog(Application.getFrame());
            dialog.show();

            if (dialog.shouldSave()) {
                Application
                        .getInstance()
                        .getActionManager()
                        .getAction(SaveAction.class)
                        .performAction(null);
            }
            else if (dialog.shouldClose()) {
                CayenneModelerController controller = Application
                        .getInstance()
                        .getFrameController();

                controller.projectClosedAction();
View Full Code Here

TOP

Related Classes of org.apache.cayenne.modeler.dialog.FileDeletedDialog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.