Examples of shouldSave()


Examples of org.apache.cayenne.modeler.dialog.FileDeletedDialog.shouldSave()

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

Examples of org.apache.cayenne.modeler.dialog.FileDeletedDialog.shouldSave()

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

Examples of org.apache.cayenne.modeler.dialog.UnsavedChangesDialog.shouldSave()

            if (dialog.shouldCancel()) {
                // discard changes and DO NOT close
                return false;
            }
            else if (dialog.shouldSave()) {
                // save changes and close
                ActionEvent e = new ActionEvent(
                        this,
                        ActionEvent.ACTION_PERFORMED,
                        "SaveAll");
View Full Code Here

Examples of org.apache.cayenne.modeler.dialog.UnsavedChangesDialog.shouldSave()

            if (dialog.shouldCancel()) {
                // discard changes and DO NOT close
                Application.getInstance().setQuittingApplication(false);
                return false;
            }
            else if (dialog.shouldSave()) {
                // save changes and close
                ActionEvent e = new ActionEvent(
                        this,
                        ActionEvent.ACTION_PERFORMED,
                        "SaveAll");
View Full Code Here

Examples of org.apache.cayenne.modeler.dialog.UnsavedChangesDialog.shouldSave()

            if (dialog.shouldCancel()) {
                // discard changes and DO NOT close
                return false;
            }
            else if (dialog.shouldSave()) {
                // save changes and close
                ActionEvent e = new ActionEvent(
                        this,
                        ActionEvent.ACTION_PERFORMED,
                        "SaveAll");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.