Package com.intellij.openapi.diff.impl.external

Examples of com.intellij.openapi.diff.impl.external.DiffManagerImpl


        return KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusedWindow() instanceof JDialog;
    }

    private boolean checkNoDifferenceAndNotify(DiffPanel diffPanel, DiffRequest data, final Window window, final boolean showMessage) {
        if (!diffPanel.hasDifferences() && !data.getHints().contains(HINT_ALLOW_NO_DIFFERENCES)) {
            DiffManagerImpl manager = (DiffManagerImpl) DiffManager.getInstance();
            if (!Comparing.equal(manager.getComparisonPolicy(), ComparisonPolicy.DEFAULT)) {
                ComparisonPolicy oldPolicy = manager.getComparisonPolicy();
                manager.setComparisonPolicy(ComparisonPolicy.DEFAULT);
                Disposable parentDisposable = Disposer.newDisposable();
                DiffPanel maybeDiffPanel = createDiffPanel(data, window, parentDisposable, this);
                manager.setComparisonPolicy(oldPolicy);

                boolean hasDiffs = maybeDiffPanel.hasDifferences();
                Disposer.dispose(parentDisposable);

                if (hasDiffs) return false;
View Full Code Here

TOP

Related Classes of com.intellij.openapi.diff.impl.external.DiffManagerImpl

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.