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

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


    }

    public void actionPerformed(final AnActionEvent e) {
        final Project project = ActionUtil.getProject(e);
        if (project != null) {
            new BackgroundTask(project, "Loading database source code", false, true) {
                @Override
                protected void execute(@NotNull ProgressIndicator progressIndicator) throws InterruptedException {
                    SourceCodeFile virtualFile = getSourcecodeFile(e);
                    Editor editor = getEditor(e);
                    if (virtualFile != null && editor != null) {
View Full Code Here


    public void actionPerformed(AnActionEvent e) {
        final StatementExecutionCursorResult executionResult = getExecutionResult(e);
        if (executionResult != null) {
            boolean continueExecution = executionResult.getExecutionProcessor().promptVariablesDialog();
            if (continueExecution) {
                new BackgroundTask(executionResult.getProject(), "Executing statement", false, true) {
                    protected void execute(@NotNull ProgressIndicator progressIndicator) {
                        initProgressIndicator(progressIndicator, true);
                        StatementExecutionCursorProcessor executionProcessor = executionResult.getExecutionProcessor();
                        executionProcessor.execute(progressIndicator);
                    }
View Full Code Here

    }

    public void actionPerformed(AnActionEvent event) {
        Project project = ActionUtil.getProject(event);
        if (project != null) {
            new BackgroundTask(project, "Reloading " + objectList.getObjectType().getListName(), false) {
                @Override
                public void execute(@NotNull ProgressIndicator progressIndicator) {
                    initProgressIndicator(progressIndicator, false);
                    objectList.reload();
                }
View Full Code Here

    public StatementExecutionCursorProcessor getExecutionProcessor() {
        return (StatementExecutionCursorProcessor) super.getExecutionProcessor();
    }

    public void reload() {
        new BackgroundTask(getProject(), "Reloading data", true) {
            public void execute(@NotNull ProgressIndicator progressIndicator) {
                initProgressIndicator(progressIndicator, true, "Reloading results for " + getExecutionProcessor().getStatementName());

                resultPanel.highlightLoading(true);
                long startTimeMillis = System.currentTimeMillis();
View Full Code Here

    public StatementExecutionResultForm getResultPanel() {
        return resultPanel;
    }

    public void fetchNextRecords() {
        new BackgroundTask(getProject(), "Loading data", true) {
            public void execute(@NotNull ProgressIndicator progressIndicator) {
                initProgressIndicator(progressIndicator, true, "Loading next records for " + getExecutionProcessor().getStatementName());
                resultPanel.highlightLoading(true);
                try {
                    if (hasResult() && !dataModel.isResultSetExhausted()) {
View Full Code Here

    }

    public void actionPerformed(final AnActionEvent e) {
        Project project = ActionUtil.getProject(e);
        if (project != null) {
            new BackgroundTask(project, "Loading database source code", false, true) {

                @Override
                protected void execute(@NotNull ProgressIndicator progressIndicator) throws InterruptedException {
                    final Editor editor = getEditor(e);
                    final SourceCodeFile sourcecodeFile = getSourcecodeFile(e);
View Full Code Here

        }
        return null;
    }

    void updateTree() {
        BackgroundTask backgroundTask = new BackgroundTask(project, "Loading executable components", false) {
            @Override
            public void execute(@NotNull ProgressIndicator progressIndicator) {
                initProgressIndicator(progressIndicator, true);
                final ObjectTreeModel model = new ObjectTreeModel(settings.getSchema(), settings.getVisibleObjectTypes(), null);
                new SimpleLaterInvocator() {
                    public void execute() {
                        methodsTree.setModel(model);
                        methodsTree.repaint();
                    }
                }.start();

            }
        };
        backgroundTask.start();
    }
View Full Code Here

TOP

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

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.