Package com.dci.intellij.dbn.execution.method

Examples of com.dci.intellij.dbn.execution.method.MethodExecutionManager


    }

    @Override
    public void actionPerformed(AnActionEvent e) {
        Project project = executionResult.getProject();
        MethodExecutionManager executionManager = MethodExecutionManager.getInstance(project);
        MethodExecutionInput executionInput = executionResult.getExecutionInput();
        if (executionManager.promptExecutionDialog(executionInput, false)) {
            executionManager.execute(executionInput);
        }
    }
View Full Code Here


        super(NamingUtil.enhanceUnderscoresForDisplay(method.getName()), "", method.getIcon());
        this.method = method;
    }

    public void actionPerformed(AnActionEvent e) {
        MethodExecutionManager executionManager = MethodExecutionManager.getInstance(method.getProject());
        if (executionManager.promptExecutionDialog(method, false)) {
            executionManager.execute(method);
        }
    }
View Full Code Here

        super(executionResult, "Execute again", Icons.METHOD_EXECUTION_RERUN);
    }

    @Override
    public void actionPerformed(AnActionEvent e) {
        MethodExecutionManager executionManager = MethodExecutionManager.getInstance(executionResult.getProject());
        executionManager.execute(executionResult.getExecutionInput());
    }
View Full Code Here

        }
    }

    private void saveChanges() {
        mainComponent.updateMethodExecutionInputs();
        MethodExecutionManager methodExecutionManager = MethodExecutionManager.getInstance(getProject());
        methodExecutionManager.setExecutionInputs(mainComponent.getExecutionInputs());
    }
View Full Code Here

        public void actionPerformed(ActionEvent e) {
            saveChanges();
            MethodExecutionInput executionInput = mainComponent.getTree().getSelectedExecutionInput();
            if (executionInput != null) {
                MethodExecutionManager executionManager = MethodExecutionManager.getInstance(getProject());
                close(OK_EXIT_CODE);
                executionManager.execute(executionInput);
            }
        }
View Full Code Here

    private void executeMethod() {
        new DebugOperationThread("execute method") {
            public void executeOperation() throws SQLException {
                XDebugSession session = getSession();
                MethodExecutionManager executionManager = MethodExecutionManager.getInstance(session.getProject());
                if (getStatus().PROCESS_IS_TERMINATING) return;

                boolean success = executionManager.debugExecute(executionInput, targetConnection);

                if (!success) {
                    // if the method execution threw exception, the debugger-off statement is not reached,
                    // hence the session will hag as debuggable. To avoid this, disable debugging has
                    // to explicitly be called here
View Full Code Here

                            public void execute() {
                                final MethodExecutionBrowserDialog browserDialog = new MethodExecutionBrowserDialog(project, settings, objectTreeModel);
                                browserDialog.show();
                                if (browserDialog.getExitCode() == DialogWrapper.OK_EXIT_CODE) {
                                    DBMethod method = browserDialog.getSelectedMethod();
                                    MethodExecutionManager methodExecutionManager = MethodExecutionManager.getInstance(project);
                                    MethodExecutionInput methodExecutionInput = methodExecutionManager.getExecutionInput(method);
                                    if (methodExecutionInput != null) {
                                        configuration.setExecutionInput(methodExecutionInput);
                                    }
                                }
                            }
View Full Code Here

        @Override
        public void actionPerformed(AnActionEvent e) {
            Project project = ActionUtil.getProject(e);
            if (project != null) {
                MethodExecutionManager methodExecutionManager = MethodExecutionManager.getInstance(project);
                MethodExecutionInput currentInput = configuration.getExecutionInput();
                MethodExecutionInput methodExecutionInput = methodExecutionManager.selectHistoryMethodExecutionInput(currentInput);
                if (methodExecutionInput != null) {
                    configuration.setExecutionInput(methodExecutionInput);
                }
            }
        }
View Full Code Here

    @Override
    public void readExternal(Element element) throws InvalidDataException {
        super.readExternal(element);
        compileDependencies = SettingsUtil.getBoolean(element, "compile-dependencies", true);
        MethodExecutionManager executionManager = MethodExecutionManager.getInstance(getProject());
        Element methodIdentifierElement = element.getChild("method-identifier");
        if (methodIdentifierElement != null) {
            DBMethodRef methodRef = new DBMethodRef();
            methodRef.readConfiguration(methodIdentifierElement);

            executionInput = executionManager.getExecutionInput(methodRef);
        }

        Element methodIdentifierHistoryElement = element.getChild("method-identifier-history");
        if (methodIdentifierHistoryElement != null) {
            for (Object o : methodIdentifierHistoryElement.getChildren()) {
                methodIdentifierElement = (Element) o;
                DBMethodRef methodRef = new DBMethodRef();
                methodRef.readConfiguration(methodIdentifierElement);

                MethodExecutionInput executionInput = executionManager.getExecutionInput(methodRef);
                methodSelectionHistory.add(executionInput);
            }
        }
    }
View Full Code Here

    }

    public DBProgramRunConfiguration createConfiguration(DBMethod method) {
        String name = DatabaseDebuggerManager.createConfigurationName(method);
        DBProgramRunConfiguration runConfiguration = new DBProgramRunConfiguration(method.getProject(), this, name);
        MethodExecutionManager executionManager = MethodExecutionManager.getInstance(method.getProject());
        MethodExecutionInput executionInput = executionManager.getExecutionInput(method);
        runConfiguration.setExecutionInput(executionInput);
        return runConfiguration;
    }
View Full Code Here

TOP

Related Classes of com.dci.intellij.dbn.execution.method.MethodExecutionManager

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.