Package com.dci.intellij.dbn.browser.options

Examples of com.dci.intellij.dbn.browser.options.DatabaseBrowserGeneralSettings


    public JComponent getComponent() {
        return mainPanel;
    }

    public void applyChanges() throws ConfigurationException {
        DatabaseBrowserGeneralSettings configuration = getConfiguration();
        boolean repaintTree = configuration.isModified();
       
        BrowserDisplayMode displayMode =
                simpleRadioButton.isSelected() ? BrowserDisplayMode.SIMPLE :
                tabbedRadioButton.isSelected() ? BrowserDisplayMode.TABBED :
                BrowserDisplayMode.SIMPLE;
        configuration.setDisplayMode(displayMode);

        ConfigurationEditorUtil.validateIntegerInputValue(navigationHistorySizeTextField, "Navigation history size", 0, 1000, "");
        configuration.getNavigationHistorySize().applyChanges(navigationHistorySizeTextField);
        configuration.getShowObjectDetails().applyChanges(showObjectDetailsCheckBox);
       
        if (repaintTree) {
            Project project = configuration.getProject();
            ObjectDisplaySettingsListener listener = EventManager.notify(project, ObjectDisplaySettingsListener.TOPIC);
            listener.displayDetailsChanged();
        }
       
    }
View Full Code Here


        }
       
    }

    public void resetChanges() {
        DatabaseBrowserGeneralSettings configuration = getConfiguration();
        BrowserDisplayMode displayMode = configuration.getDisplayMode();
        if (displayMode == BrowserDisplayMode.SIMPLE) simpleRadioButton.setSelected(true); else
        if (displayMode == BrowserDisplayMode.TABBED) tabbedRadioButton.setSelected(true);

        configuration.getNavigationHistorySize().resetChanges(navigationHistorySizeTextField);
        configuration.getShowObjectDetails().resetChanges(showObjectDetailsCheckBox);
    }
View Full Code Here

TOP

Related Classes of com.dci.intellij.dbn.browser.options.DatabaseBrowserGeneralSettings

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.