use of com.intellij.openapi.diff.impl.incrementalMerge.ui.MergePanel2 in project intellij-community by JetBrains.
the class MergeList method fromDataContext.
@Nullable
public static MergeList fromDataContext(DataContext dataContext) {
MergeList mergeList = DATA_KEY.getData(dataContext);
if (mergeList != null)
return mergeList;
MergePanel2 mergePanel = MergePanel2.fromDataContext(dataContext);
return mergePanel == null ? null : mergePanel.getMergeList();
}
use of com.intellij.openapi.diff.impl.incrementalMerge.ui.MergePanel2 in project intellij-community by JetBrains.
the class MergeTool method showDialog.
private static void showDialog(MergeRequestImpl data) {
if (LOG.isDebugEnabled()) {
LOG.debug("MergeTool - dialog");
}
DialogBuilder builder = new DialogBuilder(data.getProject());
builder.setDimensionServiceKey(data.getGroupKey());
builder.setTitle(data.getWindowTitle());
Disposable parent = Disposer.newDisposable();
builder.addDisposable(parent);
MergePanel2 mergePanel = createMergeComponent(data, builder, parent);
builder.setCenterPanel(mergePanel.getComponent());
builder.setPreferredFocusComponent(mergePanel.getPreferredFocusedComponent());
builder.setHelpId(data.getHelpId());
int result = builder.show();
MergeRequestImpl lastData = mergePanel.getMergeRequest();
if (lastData != null) {
lastData.setResult(result);
}
}
use of com.intellij.openapi.diff.impl.incrementalMerge.ui.MergePanel2 in project intellij-community by JetBrains.
the class MergeTool method createMergeComponent.
private static MergePanel2 createMergeComponent(DiffRequest data, DialogBuilder builder, @NotNull Disposable parent) {
MergePanel2 mergePanel = new MergePanel2(builder, parent);
mergePanel.setDiffRequest(data);
return mergePanel;
}
Aggregations