use of org.jetbrains.idea.svn.dialogs.SelectCreateExternalTargetDialog in project intellij-community by JetBrains.
the class CreateExternalAction method actionPerformed.
@Override
public void actionPerformed(@NotNull AnActionEvent e) {
Project project = e.getRequiredData(CommonDataKeys.PROJECT);
VirtualFile file = notNull(getIfSingle(e.getData(VcsDataKeys.VIRTUAL_FILE_STREAM)));
SelectCreateExternalTargetDialog dialog = new SelectCreateExternalTargetDialog(project, file);
if (dialog.showAndGet()) {
String url = dialog.getSelectedURL();
boolean checkout = dialog.isCheckout();
String target = dialog.getLocalTarget().trim();
new Task.Backgroundable(project, "Creating External") {
@Override
public void run(@NotNull ProgressIndicator indicator) {
doInBackground(project, file, url, checkout, target);
}
}.queue();
}
}
Aggregations