mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Annotations added in handleError method for actions
This commit is contained in:
@@ -63,11 +63,11 @@ abstract class HgAbstractGlobalAction extends AnAction {
|
||||
|
||||
protected abstract void execute(Project project, Collection<VirtualFile> repositories, @Nullable VirtualFile selectedRepo);
|
||||
|
||||
public static void handleException(Project project, Exception e) {
|
||||
public static void handleException(@Nullable Project project, @NotNull Exception e) {
|
||||
handleException(project, "Error", e);
|
||||
}
|
||||
|
||||
public static void handleException(Project project, @NotNull String title, Exception e) {
|
||||
public static void handleException(@Nullable Project project, @NotNull String title, @NotNull Exception e) {
|
||||
LOG.info(e);
|
||||
new HgCommandResultNotifier(project).notifyError(null, title, e.getMessage());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user