mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-84746 Show error message in AWT.
This commit is contained in:
@@ -18,6 +18,7 @@ package git4idea.ui;
|
|||||||
import com.intellij.notification.Notification;
|
import com.intellij.notification.Notification;
|
||||||
import com.intellij.notification.NotificationListener;
|
import com.intellij.notification.NotificationListener;
|
||||||
import com.intellij.notification.NotificationType;
|
import com.intellij.notification.NotificationType;
|
||||||
|
import com.intellij.openapi.application.ApplicationManager;
|
||||||
import com.intellij.openapi.components.ServiceManager;
|
import com.intellij.openapi.components.ServiceManager;
|
||||||
import com.intellij.openapi.diagnostic.Logger;
|
import com.intellij.openapi.diagnostic.Logger;
|
||||||
import com.intellij.openapi.progress.ProgressIndicator;
|
import com.intellij.openapi.progress.ProgressIndicator;
|
||||||
@@ -173,13 +174,18 @@ public class GitUnstashDialog extends DialogWrapper {
|
|||||||
ProgressManager.getInstance().run(new Task.Modal(myProject, "Removing stash " + stash.getStash(), false) {
|
ProgressManager.getInstance().run(new Task.Modal(myProject, "Removing stash " + stash.getStash(), false) {
|
||||||
@Override
|
@Override
|
||||||
public void run(@NotNull ProgressIndicator indicator) {
|
public void run(@NotNull ProgressIndicator indicator) {
|
||||||
GitSimpleHandler h = dropHandler(stash.getStash());
|
final GitSimpleHandler h = dropHandler(stash.getStash());
|
||||||
try {
|
try {
|
||||||
h.run();
|
h.run();
|
||||||
h.unsilence();
|
h.unsilence();
|
||||||
}
|
}
|
||||||
catch (VcsException ex) {
|
catch (final VcsException ex) {
|
||||||
GitUIUtil.showOperationError(myProject, ex, h.printableCommandLine());
|
ApplicationManager.getApplication().invokeLater(new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
GitUIUtil.showOperationError(myProject, ex, h.printableCommandLine());
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user