unscramble i18n

GitOrigin-RevId: 3734c14fc94de9f058580706aa6b78554af1d9b1
This commit is contained in:
Sergey Ignatov
2019-12-31 13:55:17 +03:00
committed by intellij-monorepo-bot
parent f289103537
commit 752e4f7901
2 changed files with 5 additions and 10 deletions

View File

@@ -29,14 +29,8 @@ import org.jetbrains.annotations.NotNull;
* @author Konstantin Bulenkov
*/
public final class UnscrambleAction extends AnAction implements DumbAware {
static {
ApplicationManager.getApplication().getMessageBus().connect().subscribe(ApplicationActivationListener.TOPIC,
new UnscrambleListener());
}
public UnscrambleAction() {
super("Analyze _Stack Trace or Thread Dump...", "Open console with the navigatable stack trace or a thread dump", null);
ApplicationManager.getApplication().getMessageBus().connect().subscribe(ApplicationActivationListener.TOPIC, new UnscrambleListener());
}
@Override
@@ -45,7 +39,8 @@ public final class UnscrambleAction extends AnAction implements DumbAware {
String message = e.getData(IdeErrorsDialog.CURRENT_TRACE_KEY);
if (message != null) {
AnalyzeStacktraceUtil.addConsole(project, null, "<Stacktrace>", message);
} else {
}
else {
new UnscrambleDialog(project).show();
}
}