Package com.dci.intellij.dbn.data.editor.ui

Examples of com.dci.intellij.dbn.data.editor.ui.TextFieldPopupProviderForm


    public void prepareEditor(final DatasetEditorModelCell cell) {
        getEditorComponent().setUserValueHolder(cell);
        super.prepareEditor(cell);

        // show automatic popup
        final TextFieldPopupProviderForm app = getEditorComponent().getAutoPopupProvider();
        if (app != null && showAutoPopup()) {
            Thread popupThread = new Thread() {
                   public void run() {
                       try {
                           sleep(settings.getPopupSettings().getDelay());
                       } catch (InterruptedException e) {
                           e.printStackTrace();
                       }

                       if (!cell.isDisposed() && cell.isEditing()) {
                           app.showPopup();
                       }
                   }
               };
               popupThread.start();
        }
View Full Code Here


    /********************************************************
     *                      KeyListener                     *
     ********************************************************/
    public void keyPressed(KeyEvent keyEvent) {
        if (!keyEvent.isConsumed()) {
            TextFieldPopupProviderForm popupProviderForm = getEditorComponent().getActivePopupProvider();
            if (popupProviderForm != null) {
                popupProviderForm.handleKeyPressedEvent(keyEvent);

            } else {
                popupProviderForm = getEditorComponent().getPopupProvider(keyEvent);
                if (popupProviderForm != null) {
                    getEditorComponent().disposeActivePopup();
                    popupProviderForm.showPopup();
                } else {
                    super.keyPressed(keyEvent);
                }
            }
        }
View Full Code Here

            }
        }
    }

    public void keyReleased(KeyEvent keyEvent) {
        TextFieldPopupProviderForm popupProviderForm = getEditorComponent().getActivePopupProvider();
        if (popupProviderForm != null) {
            popupProviderForm.handleKeyReleasedEvent(keyEvent);

        }
    }
View Full Code Here

TOP

Related Classes of com.dci.intellij.dbn.data.editor.ui.TextFieldPopupProviderForm

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.