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

Examples of com.dci.intellij.dbn.editor.data.options.DataEditorPopupSettings


        getEditorComponent().setEditable(editable);
    }


    private boolean showAutoPopup() {
        DataEditorPopupSettings settings = this.settings.getPopupSettings();
        long dataLength = getCell().getColumnInfo().getDataType().getLength();
        if (!isEditable()) return true;
        if (settings.isActive() && (settings.getDataLengthThreshold() < dataLength || dataLength == 0)) {
            if (settings.isActiveIfEmpty() || getTextField().getText().length() > 0) {
                return true;
            }
        }
        return false;
    }
View Full Code Here


            settings.setDelay(ConfigurationEditorUtil.validateIntegerInputValue(delayTextField, "Delay", 10, 2000, null));
        }
    }

    public void resetChanges() {
        DataEditorPopupSettings settings = getConfiguration();
        activeCheckBox.setSelected(settings.isActive());
        activeIfEmptyCheckBox.setSelected(settings.isActiveIfEmpty());
        lengthThresholdTextField.setText(Integer.toString(settings.getDataLengthThreshold()));
        delayTextField.setText(Integer.toString(settings.getDelay()));
    }
View Full Code Here

    public JPanel getComponent() {
        return mainPanel;
    }

    public void applyChanges() throws ConfigurationException {
        DataEditorPopupSettings settings = getConfiguration();
        settings.setActive(activeCheckBox.isSelected());
        settings.setActiveIfEmpty(activeIfEmptyCheckBox.isSelected());
        if (settings.isActive()) {
            settings.setDataLengthThreshold(ConfigurationEditorUtil.validateIntegerInputValue(lengthThresholdTextField, "Length threshold", 0, 999999999, null));
            settings.setDelay(ConfigurationEditorUtil.validateIntegerInputValue(delayTextField, "Delay", 10, 2000, null));
        }
    }
View Full Code Here

TOP

Related Classes of com.dci.intellij.dbn.editor.data.options.DataEditorPopupSettings

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.