Examples of shouldDelete()


Examples of org.apache.cayenne.modeler.dialog.ConfirmRemoveDialog.shouldDelete()

                                .getCurrentQuery()));
                removeQuery(mediator.getCurrentDataMap(), mediator.getCurrentQuery());
            }
        }
        else if (mediator.getCurrentProcedure() != null) {
            if (dialog
                    .shouldDelete("procedure", mediator.getCurrentProcedure().getName())) {

                application.getUndoManager().addEdit(
                        new RemoveUndoableEdit(mediator.getCurrentDataMap(), mediator
                                .getCurrentProcedure()));
View Full Code Here

Examples of org.apache.cayenne.modeler.dialog.ConfirmRemoveDialog.shouldDelete()

                        .getCurrentProcedure());

            }
        }
        else if (mediator.getCurrentEmbeddable() != null) {
            if (dialog.shouldDelete("embeddable", mediator
                    .getCurrentEmbeddable()
                    .getClassName())) {

                application.getUndoManager().addEdit(
                        new RemoveUndoableEdit(mediator.getCurrentDataMap(), mediator
View Full Code Here

Examples of org.apache.cayenne.modeler.dialog.ConfirmRemoveDialog.shouldDelete()

                removeEmbeddable(mediator.getCurrentDataMap(), mediator
                        .getCurrentEmbeddable());
            }
        }
        else if (mediator.getCurrentDataMap() != null) {
            if (dialog.shouldDelete("data map", mediator.getCurrentDataMap().getName())) {

                // In context of Data node just remove from Data Node
                if (mediator.getCurrentDataNode() != null) {
                    application.getUndoManager().addEdit(
                            new RemoveUndoableEdit(application, mediator
View Full Code Here

Examples of org.apache.cayenne.modeler.dialog.ConfirmRemoveDialog.shouldDelete()

                }
            }
        }
        else if (mediator.getCurrentDataNode() != null) {
            if (dialog.shouldDelete("data node", mediator.getCurrentDataNode().getName())) {
                application
                        .getUndoManager()
                        .addEdit(
                                new RemoveUndoableEdit(application, mediator
                                        .getCurrentDataNode()));
View Full Code Here

Examples of org.apache.cayenne.modeler.dialog.ConfirmRemoveDialog.shouldDelete()

                removeDataNode(mediator.getCurrentDataNode());
            }
        }

        else if (mediator.getCurrentPaths() != null) { // multiple deletion
            if (dialog.shouldDelete("selected objects")) {
                Object[] paths = mediator.getCurrentPaths();

                CompoundEdit compoundEdit = new RemoveCompoundUndoableEdit();

                for (Object path : paths) {
View Full Code Here

Examples of org.apache.cayenne.modeler.dialog.ConfirmRemoveDialog.shouldDelete()

        ConfirmRemoveDialog dialog = getConfirmDeleteDialog(allowAsking);

        if ((getProjectController().getCurrentObjEntity() != null) &&
            (getProjectController().getCurrentListenerClass() != null)) {

            if (dialog.shouldDelete("entity listener", getProjectController()
                    .getCurrentListenerClass())) {
               
                ObjEntity objEnt = getProjectController().getCurrentObjEntity();
                String listenerClass = getProjectController().getCurrentListenerClass();
               
View Full Code Here

Examples of org.apache.cayenne.modeler.dialog.ConfirmRemoveDialog.shouldDelete()

        ConfirmRemoveDialog dialog = getConfirmDeleteDialog(allowAsking);

        ProcedureParameter[] params = getProjectController()
                .getCurrentProcedureParameters();
        if (params.length > 0) {
            if ((params.length == 1 && dialog.shouldDelete(
                    "procedure parameter",
                    params[0].getName()))
                    || (params.length > 1 && dialog
                            .shouldDelete("selected procedure parameters"))) {
                removeProcedureParameters();
View Full Code Here

Examples of org.apache.cayenne.modeler.dialog.ConfirmRemoveDialog.shouldDelete()

                .getCurrentProcedureParameters();
        if (params.length > 0) {
            if ((params.length == 1 && dialog.shouldDelete(
                    "procedure parameter",
                    params[0].getName()))
                    || (params.length > 1 && dialog
                            .shouldDelete("selected procedure parameters"))) {
                removeProcedureParameters();
            }
        }
    }
View Full Code Here

Examples of org.apache.cayenne.modeler.dialog.ConfirmRemoveDialog.shouldDelete()

     */
    public void performAction(ActionEvent e, boolean allowAsking) {
        ConfirmRemoveDialog dialog = getConfirmDeleteDialog(allowAsking);

        if (getProjectController().getCurrentListenerClass() != null) {
            if (dialog.shouldDelete("entity listener", getProjectController()
                    .getCurrentListenerClass())) {
               
                String listenerClass = getProjectController().getCurrentListenerClass();
                removeEntityListener(getProjectController().getCurrentDataMap(), listenerClass);
            }
View Full Code Here

Examples of org.apache.cayenne.modeler.dialog.ConfirmRemoveDialog.shouldDelete()

    ProjectController mediator = getProjectController();

    ObjRelationship[] rels = getProjectController()
        .getCurrentObjRelationships();
    if (rels != null && rels.length > 0) {
      if ((rels.length == 1 && dialog.shouldDelete("ObjRelationship",
          rels[0].getName()))
          || (rels.length > 1 && dialog
              .shouldDelete("selected ObjRelationships"))) {
        ObjEntity entity = mediator.getCurrentObjEntity();
        removeObjRelationships(entity, rels);
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.