use of com.intellij.diff.chains.DiffRequestChain in project intellij-community by JetBrains.
the class DiffManagerImpl method showDiffBuiltin.
@Override
public void showDiffBuiltin(@Nullable Project project, @NotNull DiffRequest request, @NotNull DiffDialogHints hints) {
DiffRequestChain requestChain = new SimpleDiffRequestChain(request);
showDiffBuiltin(project, requestChain, hints);
}
use of com.intellij.diff.chains.DiffRequestChain in project intellij-community by JetBrains.
the class ShowDiffAction method showDiffForChange.
private static void showDiffForChange(@Nullable Project project, @NotNull List<ChangeDiffRequestProducer> presentables, int index, @NotNull ShowDiffContext context) {
if (presentables.isEmpty())
return;
if (index < 0 || index >= presentables.size())
index = 0;
DiffRequestChain chain = new ChangeDiffRequestChain(presentables);
chain.setIndex(index);
for (Map.Entry<Key, Object> entry : context.getChainContext().entrySet()) {
chain.putUserData(entry.getKey(), entry.getValue());
}
chain.putUserData(DiffUserDataKeys.CONTEXT_ACTIONS, context.getActions());
DiffManager.getInstance().showDiff(project, chain, context.getDialogHints());
}
use of com.intellij.diff.chains.DiffRequestChain 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));
}
use of com.intellij.diff.chains.DiffRequestChain in project intellij-community by JetBrains.
the class DiffManagerImpl method showDiff.
@Override
public void showDiff(@Nullable Project project, @NotNull DiffRequest request, @NotNull DiffDialogHints hints) {
DiffRequestChain requestChain = new SimpleDiffRequestChain(request);
showDiff(project, requestChain, hints);
}
Aggregations