Package com.dci.intellij.dbn.data.record.navigation

Examples of com.dci.intellij.dbn.data.record.navigation.RecordNavigationTarget


        }
    }

    public void navigateToRecord(DatasetFilterInput filterInput, InputEvent inputEvent) {
        DataEditorSettings settings = DataEditorSettings.getInstance(getProject());
        RecordNavigationTarget navigationTarget = settings.getRecordNavigationSettings().getNavigationTarget();
        if (navigationTarget == RecordNavigationTarget.EDITOR) {
            openDataEditor(filterInput);
        } else if (navigationTarget == RecordNavigationTarget.VIEWER) {
            openRecordViewer(filterInput);
        } else if (navigationTarget == RecordNavigationTarget.ASK) {
View Full Code Here


    }

    public void applyChanges() throws ConfigurationException {
        DataEditorRecordNavigationSettings configuration = getConfiguration();

        RecordNavigationTarget navigationTarget =
                viewerRadioButton.isSelected() ? RecordNavigationTarget.VIEWER :
                editorRadioButton.isSelected() ? RecordNavigationTarget.EDITOR :
                askRadioButton.isSelected() ? RecordNavigationTarget.ASK :
                RecordNavigationTarget.VIEWER;
        configuration.setNavigationTarget(navigationTarget);
View Full Code Here

        configuration.setNavigationTarget(navigationTarget);
    }

    public void resetChanges() {
        DataEditorRecordNavigationSettings configuration = getConfiguration();
        RecordNavigationTarget navigationTarget = configuration.getNavigationTarget();
        if (navigationTarget == RecordNavigationTarget.VIEWER) viewerRadioButton.setSelected(true); else
        if (navigationTarget == RecordNavigationTarget.EDITOR) editorRadioButton.setSelected(true); else
        if (navigationTarget == RecordNavigationTarget.ASK) askRadioButton.setSelected(true);
    }
View Full Code Here

TOP

Related Classes of com.dci.intellij.dbn.data.record.navigation.RecordNavigationTarget

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.