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

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


        super.initLargeValuePopup(viewer);
    }

    @Override
    protected boolean isLargeValuePopupActive() {
        DataEditorGeneralSettings generalSettings = datasetEditor.getSettings().getGeneralSettings();
        return generalSettings.getLargeValuePreviewActive().value();
    }
View Full Code Here


            String textValue = editorComponent.getText();
           
           
            boolean trim = true;
            if (clazz == String.class) {
                DataEditorGeneralSettings generalSettings = settings.getGeneralSettings();
                boolean isEmpty = StringUtil.isEmptyOrSpaces(textValue);
                trim = (isEmpty && generalSettings.getConvertEmptyStringsToNull().value()) ||
                       (!isEmpty && generalSettings.getTrimWhitespaces().value());
            }
           
            if (trim) textValue = textValue.trim();
           
            if (textValue.length() > 0) {
View Full Code Here

    public void applyChanges() throws ConfigurationException {
        ConfigurationEditorUtil.validateIntegerInputValue(fetchBlockSizeTextField, "Fetch block size", 1, 10000, null);
        ConfigurationEditorUtil.validateIntegerInputValue(fetchTimeoutTextField, "Fetch timeout", 0, 300, "\nUse value 0 for no timeout");

        DataEditorGeneralSettings settings = getConfiguration();
        settings.getFetchBlockSize().applyChanges(fetchBlockSizeTextField);
        settings.getFetchTimeout().applyChanges(fetchTimeoutTextField);
        settings.getTrimWhitespaces().applyChanges(trimWhitespacesCheckBox);
        settings.getConvertEmptyStringsToNull().applyChanges(convertEmptyToNullCheckBox);
        settings.getSelectContentOnCellEdit().applyChanges(selectContentOnEditCheckBox);
        settings.getLargeValuePreviewActive().applyChanges(largeValuePreviewActiveCheckBox);
    }
View Full Code Here

        settings.getSelectContentOnCellEdit().applyChanges(selectContentOnEditCheckBox);
        settings.getLargeValuePreviewActive().applyChanges(largeValuePreviewActiveCheckBox);
    }

    public void resetChanges() {
        DataEditorGeneralSettings settings = getConfiguration();
        settings.getFetchBlockSize().resetChanges(fetchBlockSizeTextField);
        settings.getFetchTimeout().resetChanges(fetchTimeoutTextField);
        settings.getTrimWhitespaces().resetChanges(trimWhitespacesCheckBox);
        settings.getConvertEmptyStringsToNull().resetChanges(convertEmptyToNullCheckBox);
        settings.getSelectContentOnCellEdit().resetChanges(selectContentOnEditCheckBox);
        settings.getLargeValuePreviewActive().resetChanges(largeValuePreviewActiveCheckBox);    }
View Full Code Here

TOP

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

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.