mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
localize DumbAwareActionButton
GitOrigin-RevId: aac626e32e07fd4e4c2ee29ed134d0387cc64a85
This commit is contained in:
committed by
intellij-monorepo-bot
parent
efb87c8d5d
commit
03409a03f9
@@ -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)};
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user