return true;
}
public void actionPerformed(final AnActionEvent pEvent) {
final Project project = getProject(pEvent);
final PomRepoManager mgr = PomRepoManager.getInstance(project);
final String repoUrl = mgr.selectDestinationRepo(DLG_TITLE, DLG_LABEL);
if (repoUrl == null)
return;
//
//prepare list of path elements to download
//
final RepoPathElement[] pathElements = getSelectedItems();
final Runnable downloader = new Runnable() {
public void run() {
for (RepoPathElement element : pathElements) {
try {
//TODO: show returned VirtualFile(s) in Results pane
mgr.download(repoUrl, element);
}
catch (ArtifactNotFoundException e) {
//TODO: accumulate errors and display once
UIUtils.showError(project, e);
}