Package com.dci.intellij.dbn.debugger

Examples of com.dci.intellij.dbn.debugger.DatabaseDebuggerManager


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

    public void actionPerformed(AnActionEvent e) {
        DatabaseDebuggerManager executionManager = DatabaseDebuggerManager.getInstance(method.getProject());
        executionManager.createDebugConfiguration(method);
    }
View Full Code Here


            }
        }
    }

    public void updateSourceToDatabase(final Editor editor, final SourceCodeFile virtualFile) {
        DatabaseDebuggerManager debuggerManager = DatabaseDebuggerManager.getInstance(virtualFile.getProject());
        final DBSchemaObject object = virtualFile.getObject();
        if (object != null) {
            if (!debuggerManager.checkForbiddenOperation(virtualFile.getActiveConnection())) {
                object.getStatus().set(DBObjectStatus.SAVING, false);
                return;
            }

            final Project project = virtualFile.getProject();
View Full Code Here

            final Callback callback) {
        final DBProgramRunConfiguration runProfile = (DBProgramRunConfiguration) environment.getRunProfile();
        final ConnectionHandler connectionHandler = runProfile.getMethod().getConnectionHandler();
        Project project = connectionHandler.getProject();

        DatabaseDebuggerManager debuggerManager = DatabaseDebuggerManager.getInstance(project);
        final List<String> missingPrivileges = debuggerManager.getMissingDebugPrivileges(connectionHandler);
        if (missingPrivileges.size() > 0) {
            new SimpleLaterInvocator() {
                public void execute() {
                    StringBuilder buffer = new StringBuilder();
                    buffer.append("The current user (").append(connectionHandler.getUserName()).append(") does not have sufficient privileges to perform debug operations on this database.\n");
View Full Code Here

            final Project project = connectionHandler.getProject();


            new BackgroundTask(project, "Initializing debug environment", false, true) {
                public void execute(@NotNull ProgressIndicator progressIndicator) {
                    DatabaseDebuggerManager debuggerManager = DatabaseDebuggerManager.getInstance(project);
                    initProgressIndicator(progressIndicator, true, "Loading dependencies of " + runProfile.getMethod().getQualifiedNameWithType());
                    if (!project.isDisposed() && !progressIndicator.isCanceled()) {

                        DBMethod method = executionInput.getMethod();
                        List<DBSchemaObject> dependencies = debuggerManager.loadCompileDependencies(method, progressIndicator);
                        if (!progressIndicator.isCanceled()) {
                            if (dependencies.size() > 0) {
                                performCompile(
                                        executionInput,
                                        executor,
View Full Code Here

TOP

Related Classes of com.dci.intellij.dbn.debugger.DatabaseDebuggerManager

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.