[ui] moves "dump threads" action messages to a platform bundle

GitOrigin-RevId: cd95b596fbc335e44bc739df195f04edfc3550d2
This commit is contained in:
Roman Shevchenko
2019-08-22 01:50:10 +03:00
committed by intellij-monorepo-bot
parent b9042910f0
commit e4e2e3bb99
3 changed files with 8 additions and 8 deletions
@@ -1,8 +1,8 @@
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.ide.actions;
import com.intellij.CommonBundle;
import com.intellij.diagnostic.PerformanceWatcher;
import com.intellij.ide.IdeBundle;
import com.intellij.notification.Notification;
import com.intellij.notification.NotificationDisplayType;
import com.intellij.notification.NotificationGroup;
@@ -33,11 +33,11 @@ public class DumpThreadsAction extends AnAction implements DumbAware {
private Notification createNotification(@Nullable File file) {
if (file != null) {
String url = FileUtil.getUrl(file);
String message = CommonBundle.message("thread.dump.is.taken", url);
String message = IdeBundle.message("thread.dump.is.taken", url);
return GROUP.createNotification("", message, NotificationType.INFORMATION, RevealFileAction.FILE_SELECTING_LISTENER);
}
else {
return GROUP.createNotification(CommonBundle.message("failed.to.take.thread.dump"), NotificationType.INFORMATION);
return GROUP.createNotification(IdeBundle.message("failed.to.take.thread.dump"), NotificationType.INFORMATION);
}
}
}
}
@@ -117,9 +117,6 @@ format.file.size.bytes={0}b
format.file.size.kbytes={0}Kb
format.file.size.mbytes={0}Mb
thread.dump.is.taken=Thread dump is <a href="{0}">taken</a>.
failed.to.take.thread.dump=Failed to take a thread dump.
error.reading.color.scheme.from.file.error.message=Error reading color scheme from {0}
button.background=&Background
button.load.file=Load File
@@ -1415,4 +1415,7 @@ cannot.redo.title=Cannot Redo
cannot.redo.message=Cannot redo
undo.conflicting.change.confirmation=Other files affected by this action have been already changed.
cannot.undo.error.other.affected.files.changed.message=Following files affected by this action have been already changed:
cannot.undo.error.contains.nonundoable.changes.message=Following files have changes that cannot be undone:
cannot.undo.error.contains.nonundoable.changes.message=Following files have changes that cannot be undone:
thread.dump.is.taken=Thread dump is <a href="{0}">taken</a>.
failed.to.take.thread.dump=Failed to take a thread dump.