use of org.jetbrains.plugins.github.ui.GithubSelectForkDialog in project intellij-community by JetBrains.
the class GithubCreatePullRequestWorker method showTargetDialog.
@Nullable
public ForkInfo showTargetDialog() {
if (myAvailableForks == null) {
try {
myAvailableForks = GithubUtil.computeValueInModal(myProject, myCurrentBranch, indicator -> getAvailableForks(indicator));
} catch (ProcessCanceledException ignore) {
}
}
Convertor<String, ForkInfo> getForkPath = user -> GithubUtil.computeValueInModal(myProject, "Access to GitHub", indicator -> findRepositoryByUser(indicator, user));
GithubSelectForkDialog dialog = new GithubSelectForkDialog(myProject, myAvailableForks, getForkPath);
DialogManager.show(dialog);
if (!dialog.isOK()) {
return null;
}
return dialog.getPath();
}
Aggregations