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

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


    public DBExecutionPointHighlighter(final Project project) {
        this.project = project;
    }

    public void show(final @NotNull XSourcePosition position, final boolean useSelection) {
        new ConditionalLaterInvocator() {
            public void execute() {
                doShow(position, useSelection);
            }
        }.start();
    }
View Full Code Here


            }
        }.start();
    }

    public void hide() {
        new ConditionalLaterInvocator() {
            public void execute() {
                doHide();
            }
        }.start();
    }
View Full Code Here

            updateDDLFiles(contentFile.getContentType());
        }
    }

    public void updateDDLFiles(final DBContentType sourceContentType) {
        new ConditionalLaterInvocator() {
            public void execute() {
                ObjectToDDLContentSynchronizer synchronizer = new ObjectToDDLContentSynchronizer(sourceContentType, DatabaseEditableObjectFile.this);
                ApplicationManager.getApplication().runWriteAction(synchronizer);
            }
        }.start();
View Full Code Here

        Shortcut[] shortcuts = KeyUtil.getShortcuts(getKeyShortcutName());
        return KeyUtil.match(shortcuts, keyEvent);
    }

    public void showPopup() {
        new ConditionalLaterInvocator(){
            public void execute() {
                if (!isShowingPopup()) {
                    popup = createPopup();
                    if (popup != null) {
                        Disposer.register(TextFieldPopupProviderForm.this, popup);
View Full Code Here

        }.start();
    }

    protected void hidePopup() {
        if (isShowingPopup()) {
            new ConditionalLaterInvocator() {
                @Override
                public void execute() {
                    popup.cancel();
                    popup = null;
                }
View Full Code Here

            list.scrollRectToVisible(rectangle);
        }
    }

    private void updateList() {
        new ConditionalLaterInvocator() {
            public void execute() {
                if (listModel.isFiltrable()) {
                    int index = list.getSelectedIndex();
                    listModel.notifyContentChanged();
                    if (index > listModel.getSize() - 1) {
View Full Code Here

    public ResultSetTable getResultTable() {
        return resultTable;
    }

    public void updateVisibleComponents() {
        new ConditionalLaterInvocator() {
            public void execute() {
                ResultSetDataModel dataModel = executionResult.getTableModel();
                statusLabel.setText(executionResult.getExecutionInput().getConnectionHandler().getPresentableText() + ": " +
                        dataModel.getSize() + " records" + (dataModel.isResultSetExhausted() ? "" : " (Partial)"));
            }
View Full Code Here

TOP

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

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.