localize DumbAwareActionButton

GitOrigin-RevId: aac626e32e07fd4e4c2ee29ed134d0387cc64a85
This commit is contained in:
Dmitry.Krasilschikov
2020-01-28 14:54:06 +02:00
committed by intellij-monorepo-bot
parent efb87c8d5d
commit 03409a03f9
4 changed files with 5 additions and 5 deletions

View File

@@ -105,7 +105,7 @@ public class JavadocEditor extends ModuleElementsEditor {
TableUtil.selectRows(myTable, new int[]{tableModel.getRowCount() - 1});
}
}
}).addExtraAction(new DumbAwareActionButton(ProjectBundle.message("module.javadoc.add.url.button"), IconUtil.getAddLinkIcon()) {
}).addExtraAction(new DumbAwareActionButton(() -> ProjectBundle.message("module.javadoc.add.url.button"), IconUtil.getAddLinkIcon()) {
@Override
public void actionPerformed(@NotNull AnActionEvent e) {
VirtualFile[] files = new VirtualFile[]{Util.showSpecifyJavadocUrlDialog(myTable)};

View File

@@ -54,7 +54,7 @@ public class JavadocOrderRootTypeUIFactory implements OrderRootTypeUIFactory {
@Override
protected void addToolbarButtons(ToolbarDecorator toolbarDecorator) {
AnActionButton specifyUrlButton = new DumbAwareActionButton(ProjectBundle.message("sdk.paths.specify.url.button"), IconUtil.getAddLinkIcon()) {
AnActionButton specifyUrlButton = new DumbAwareActionButton(() -> ProjectBundle.message("sdk.paths.specify.url.button"), IconUtil.getAddLinkIcon()) {
@Override
public void actionPerformed(@NotNull AnActionEvent e) {
onSpecifyUrlButtonClicked();

View File

@@ -99,7 +99,7 @@ public abstract class ImportLayoutPanel extends JPanel {
add(myCbLayoutStaticImportsSeparately, BorderLayout.NORTH);
JPanel importLayoutPanel = ToolbarDecorator.createDecorator(myImportLayoutTable = createTableForPackageEntries(myImportLayoutList, this))
.addExtraAction(new DumbAwareActionButton(ApplicationBundle.message("button.add.package"), IconUtil.getAddPackageIcon()) {
.addExtraAction(new DumbAwareActionButton(() -> ApplicationBundle.message("button.add.package"), IconUtil.getAddPackageIcon()) {
@Override
public void actionPerformed(@NotNull AnActionEvent e) {
addPackageToImportLayouts();
@@ -110,7 +110,7 @@ public abstract class ImportLayoutPanel extends JPanel {
return CommonShortcuts.getNewForDialogs();
}
})
.addExtraAction(new DumbAwareActionButton(ApplicationBundle.message("button.add.blank"), IconUtil.getAddBlankLineIcon()) {
.addExtraAction(new DumbAwareActionButton(() -> ApplicationBundle.message("button.add.blank"), IconUtil.getAddBlankLineIcon()) {
@Override
public void actionPerformed(@NotNull AnActionEvent e) {
addBlankLine();

View File

@@ -121,7 +121,7 @@ public class CvsConfigurationsListEditor extends DialogWrapper implements DataPr
private JComponent createListPanel() {
final AnActionButton duplicateButton =
new DumbAwareActionButton(CvsBundle.message("action.name.copy"), PlatformIcons.COPY_ICON) {
new DumbAwareActionButton(() -> CvsBundle.message("action.name.copy"), PlatformIcons.COPY_ICON) {
@Override
public void updateButton(@NotNull AnActionEvent e) {