Package com.dci.intellij.dbn.common.thread

Examples of com.dci.intellij.dbn.common.thread.SimpleLaterInvocator


    public BrowserTreeNode getTargetSelection() {
        return targetSelection;
    }

    private void selectPath(final TreePath treePath) {
        new SimpleLaterInvocator() {
            public void execute() {
                TreeUtil.selectPath(DatabaseBrowserTree.this, treePath, true);
            }
        }.start();
    }
View Full Code Here


                } else if (deliberate) {
                    new BackgroundTask(getProject(), "Loading Object Reference", false, false) {
                        protected void execute(@NotNull ProgressIndicator progressIndicator) throws InterruptedException {
                            final DBObject navigationObject = object.getDefaultNavigationObject();
                            if (navigationObject != null) {
                                new SimpleLaterInvocator(){
                                    public void execute() {
                                        navigationObject.navigate(true);
                                    }
                                }.start();
                            }
View Full Code Here

    public void afterAction(ConnectionHandler connectionHandler, TransactionAction action, boolean succeeded) {
        refreshForm();
    }

    private void refreshForm() {
        new SimpleLaterInvocator() {
            @Override
            public void execute() {
                if (!isDisposed()) {
                    updateListModel();
                }
View Full Code Here

    }

    private class ScrollTask extends TimerTask {
        public void run() {
            if (scrollPane != null && scrollDistance != 0) {
                new SimpleLaterInvocator() {
                    @Override
                    public void execute() {
                        JViewport viewport = scrollPane.getViewport();
                        Point viewPosition = viewport.getViewPosition();
                        viewport.setViewPosition(new Point((int) (viewPosition.x + scrollDistance), viewPosition.y));
View Full Code Here

        }
        return toolWindow;
    }

    public void showExecutionConsole(final CompilerResult compilerResult) {
        new SimpleLaterInvocator() {
            public void execute() {
                getExecutionConsoleForm().show(compilerResult);
                showExecutionConsole();
            }
        }.start();
View Full Code Here

            }
        }.start();
    }

    public void showExecutionConsole(final List<CompilerResult> compilerResults) {
        new SimpleLaterInvocator() {
            public void execute() {
                getExecutionConsoleForm().show(compilerResults);
                showExecutionConsole();
            }
        }.start();
View Full Code Here

            }
        }.start();
    }

    public void showExecutionConsole(final StatementExecutionResult executionResult) {
        new SimpleLaterInvocator() {
            public void execute() {
                getExecutionConsoleForm().show(executionResult);
                showExecutionConsole();
                StatementExecutionSettings statementExecutionSettings = ExecutionEngineSettings.getInstance(getProject()).getStatementExecutionSettings();
                if (!statementExecutionSettings.isFocusResult()) {
View Full Code Here

            }
        }.start();
    }

    public void showExecutionConsole(final MethodExecutionResult executionResult) {
        new SimpleLaterInvocator() {
            public void execute() {
                getExecutionConsoleForm().show(executionResult);
                showExecutionConsole();
            }
        }.start();
View Full Code Here

                final int idleMinutes = connectionHandler.getIdleMinutes();
                final int idleMinutesToDisconnect = connectionHandler.getSettings().getDetailSettings().getIdleTimeToDisconnect();
                if (idleMinutes > idleMinutesToDisconnect) {
                    if (connectionHandler.hasUncommittedChanges()) {
                        connectionHandler.getConnectionStatus().setResolvingIdleStatus(true);
                        new SimpleLaterInvocator() {
                            public void execute() {
                                IdleConnectionDialog idleConnectionDialog = new IdleConnectionDialog(connectionHandler);
                                idleConnectionDialog.show();
                            }
                        }.start();
View Full Code Here

        return super.getToolTipText(event);
    }

    public void fireEditingCancel() {
        if (isEditing()) {
            new SimpleLaterInvocator() {
                public void execute() {
                    cancelEditing();
                }
            }.start();
        }
View Full Code Here

TOP

Related Classes of com.dci.intellij.dbn.common.thread.SimpleLaterInvocator

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.