Package com.dci.intellij.dbn.object

Examples of com.dci.intellij.dbn.object.DBProgram


        super("Debug...", program);
        getTemplatePresentation().setIcon(Icons.METHOD_EXECUTION_DEBUG);
    }

    public List<DBObject> getObjectList() {
        DBProgram program = (DBProgram) sourceObject;
        List objects = new ArrayList();
        objects.addAll(program.getProcedures());
        objects.addAll(program.getFunctions());
        return objects;
    }
View Full Code Here


    public String getTitle() {
        return "Select method to debug";
    }

    public String getEmptyListMessage() {
        DBProgram program = (DBProgram) sourceObject;
        return "The " + program.getQualifiedNameWithType() + " has no methods.";
    }
View Full Code Here

        super("Run...", program);
        getTemplatePresentation().setIcon(Icons.METHOD_EXECUTION_RUN);
    }

    public List<DBObject> getObjectList() {
        DBProgram program = (DBProgram) sourceObject;
        List objects = new ArrayList();
        objects.addAll(program.getProcedures());
        objects.addAll(program.getFunctions());
        return objects;
    }
View Full Code Here

    public String getTitle() {
        return "Select method to execute";
    }

    public String getEmptyListMessage() {
        DBProgram program = (DBProgram) sourceObject;
        return "The " + program.getQualifiedNameWithType() + " has no methods to execute.";
    }
View Full Code Here

        }
        return (DBFunction) getObjectFallbackOnSynonym(functions, name);
    }

    public DBProgram getProgram(String name) {
        DBProgram program = getPackage(name);
        if (program == null) program = getType(name);
        return program;
    }
View Full Code Here

    public CompileDebugDependenciesDialog(DBProgramRunConfiguration runConfiguration, List<DBSchemaObject> compileList) {
        super(runConfiguration.getProject(), "Compile Object Dependencies", true);
        this.runConfiguration = runConfiguration;
        DBMethod method = runConfiguration.getMethod();
        DBProgram program = method.getProgram();
        DBSchemaObject selectedObject = program == null ? method : program;
        this.dependenciesForm = new CompileDebugDependenciesForm(compileList, selectedObject);
        init();
    }
View Full Code Here

        DBMethod method;
        Node programNode = getProgramNode();
        Node methodNode = getMethodNode();
        DBObjectType methodObjectType = methodNode.getType();
        if (programNode != null) {
            DBProgram program = schema.getProgram(programNode.getName());
            if (program == null || program.getObjectType() != programNode.getType()) return null;

            method = program.getMethod(methodNode.getName(), overload);
        } else {
            method = schema.getMethod(methodNode.getName(), methodObjectType.getName(), overload);
        }

        if (method == null) return null;
View Full Code Here

        DBMethod method;
        Node programNode = getProgramNode();
        Node methodNode = getMethodNode();
        DBObjectType methodObjectType = methodNode.getType();
        if (programNode != null) {
            DBProgram program = schema.getProgram(programNode.getName());
            if (program == null || program.getObjectType() != programNode.getType()) return null;

            method = program.getMethod(methodNode.getName(), overload);
        } else {
            method = schema.getMethod(methodNode.getName(), methodObjectType.getName(), overload);
        }

        return method != null && method.getObjectType() == methodObjectType ? (T) method : null;
View Full Code Here

TOP

Related Classes of com.dci.intellij.dbn.object.DBProgram

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.