Search in sources :

Example 1 with DiffDialogHints

use of com.intellij.diff.DiffDialogHints in project intellij-community by JetBrains.

the class MigrateDiffTool method show.

@Override
public void show(DiffRequest request) {
    DiffRequestChain newChain = MigrateToNewDiffUtil.convertRequestChain(request);
    WindowWrapper.Mode mode = FrameDiffTool.shouldOpenDialog(request.getHints()) ? WindowWrapper.Mode.MODAL : WindowWrapper.Mode.FRAME;
    DiffManager.getInstance().showDiff(request.getProject(), newChain, new DiffDialogHints(mode));
}
Also used : WindowWrapper(com.intellij.openapi.ui.WindowWrapper) DiffDialogHints(com.intellij.diff.DiffDialogHints) DiffRequestChain(com.intellij.diff.chains.DiffRequestChain)

Aggregations

DiffDialogHints (com.intellij.diff.DiffDialogHints)1 DiffRequestChain (com.intellij.diff.chains.DiffRequestChain)1 WindowWrapper (com.intellij.openapi.ui.WindowWrapper)1