From 32029d18c42c47b98654e246db4fc9bf893738f5 Mon Sep 17 00:00:00 2001 From: Geert Bevin Date: Sat, 20 Jul 2024 16:57:28 -0400 Subject: [PATCH] Code cleanups --- ...leClearAction.java => BldConsoleActionClear.java} | 4 ++-- ...soleStopAction.java => BldConsoleActionStop.java} | 4 ++-- .../rife/bld/idea/console/BldConsoleViewPanel.java | 4 ++-- ...heAction.java => BldProjectActionClearCache.java} | 4 ++-- ...MainAction.java => BldProjectActionEditMain.java} | 4 ++-- ...tion.java => BldProjectActionEditProperties.java} | 4 ++-- ...flineAction.java => BldProjectActionOffline.java} | 4 ++-- ...freshAction.java => BldProjectActionRefresh.java} | 4 ++-- ...rojectRunAction.java => BldProjectActionRun.java} | 4 ++-- .../java/rife/bld/idea/project/BldProjectWindow.java | 12 ++++++------ 10 files changed, 24 insertions(+), 24 deletions(-) rename src/main/java/rife/bld/idea/console/{BldConsoleClearAction.java => BldConsoleActionClear.java} (90%) rename src/main/java/rife/bld/idea/console/{BldConsoleStopAction.java => BldConsoleActionStop.java} (94%) rename src/main/java/rife/bld/idea/project/{BldProjectClearCacheAction.java => BldProjectActionClearCache.java} (93%) rename src/main/java/rife/bld/idea/project/{BldProjectEditMainAction.java => BldProjectActionEditMain.java} (93%) rename src/main/java/rife/bld/idea/project/{BldProjectEditPropertiesAction.java => BldProjectActionEditProperties.java} (92%) rename src/main/java/rife/bld/idea/project/{BldProjectOfflineAction.java => BldProjectActionOffline.java} (93%) rename src/main/java/rife/bld/idea/project/{BldProjectRefreshAction.java => BldProjectActionRefresh.java} (94%) rename src/main/java/rife/bld/idea/project/{BldProjectRunAction.java => BldProjectActionRun.java} (91%) diff --git a/src/main/java/rife/bld/idea/console/BldConsoleClearAction.java b/src/main/java/rife/bld/idea/console/BldConsoleActionClear.java similarity index 90% rename from src/main/java/rife/bld/idea/console/BldConsoleClearAction.java rename to src/main/java/rife/bld/idea/console/BldConsoleActionClear.java index ec67c39..73b6c3c 100644 --- a/src/main/java/rife/bld/idea/console/BldConsoleClearAction.java +++ b/src/main/java/rife/bld/idea/console/BldConsoleActionClear.java @@ -11,8 +11,8 @@ import com.intellij.openapi.project.DumbAwareAction; import org.jetbrains.annotations.NotNull; -class BldConsoleClearAction extends DumbAwareAction { - public BldConsoleClearAction() { +class BldConsoleActionClear extends DumbAwareAction { + public BldConsoleActionClear() { super(IdeBundle.message("terminal.action.ClearBuffer.text"), null, AllIcons.Actions.GC); } diff --git a/src/main/java/rife/bld/idea/console/BldConsoleStopAction.java b/src/main/java/rife/bld/idea/console/BldConsoleActionStop.java similarity index 94% rename from src/main/java/rife/bld/idea/console/BldConsoleStopAction.java rename to src/main/java/rife/bld/idea/console/BldConsoleActionStop.java index 6d51037..e1ac6de 100644 --- a/src/main/java/rife/bld/idea/console/BldConsoleStopAction.java +++ b/src/main/java/rife/bld/idea/console/BldConsoleActionStop.java @@ -14,8 +14,8 @@ import rife.bld.idea.execution.BldExecution; import rife.bld.idea.utils.BldBundle; -class BldConsoleStopAction extends DumbAwareAction { - public BldConsoleStopAction() { +class BldConsoleActionStop extends DumbAwareAction { + public BldConsoleActionStop() { super(IdeBundle.message("action.stop"), null, AllIcons.Actions.Suspend); } diff --git a/src/main/java/rife/bld/idea/console/BldConsoleViewPanel.java b/src/main/java/rife/bld/idea/console/BldConsoleViewPanel.java index b1ea781..ff40c3d 100644 --- a/src/main/java/rife/bld/idea/console/BldConsoleViewPanel.java +++ b/src/main/java/rife/bld/idea/console/BldConsoleViewPanel.java @@ -86,8 +86,8 @@ public void setRowHeight(int i) { private JPanel createToolbarPanel() { var group = new DefaultActionGroup(); - group.add(new BldConsoleStopAction()); - group.add(new BldConsoleClearAction()); + group.add(new BldConsoleActionStop()); + group.add(new BldConsoleActionClear()); var toolbar_panel = new JPanel(new BorderLayout()); var action_manager = ActionManager.getInstance(); diff --git a/src/main/java/rife/bld/idea/project/BldProjectClearCacheAction.java b/src/main/java/rife/bld/idea/project/BldProjectActionClearCache.java similarity index 93% rename from src/main/java/rife/bld/idea/project/BldProjectClearCacheAction.java rename to src/main/java/rife/bld/idea/project/BldProjectActionClearCache.java index e0c9bfd..f1b4b5a 100644 --- a/src/main/java/rife/bld/idea/project/BldProjectClearCacheAction.java +++ b/src/main/java/rife/bld/idea/project/BldProjectActionClearCache.java @@ -17,10 +17,10 @@ import java.io.IOException; -final class BldProjectClearCacheAction extends AnAction implements DumbAware { +final class BldProjectActionClearCache extends AnAction implements DumbAware { private final Project project_; - public BldProjectClearCacheAction(Project project) { + public BldProjectActionClearCache(Project project) { super(BldBundle.messagePointer("bld.action.clearCache.name"), BldBundle.messagePointer("bld.action.clearCache.description"), AllIcons.Actions.GC); diff --git a/src/main/java/rife/bld/idea/project/BldProjectEditMainAction.java b/src/main/java/rife/bld/idea/project/BldProjectActionEditMain.java similarity index 93% rename from src/main/java/rife/bld/idea/project/BldProjectEditMainAction.java rename to src/main/java/rife/bld/idea/project/BldProjectActionEditMain.java index 4f0f427..979a436 100644 --- a/src/main/java/rife/bld/idea/project/BldProjectEditMainAction.java +++ b/src/main/java/rife/bld/idea/project/BldProjectActionEditMain.java @@ -17,10 +17,10 @@ import rife.bld.idea.execution.BldExecution; import rife.bld.idea.utils.BldBundle; -final class BldProjectEditMainAction extends AnAction implements DumbAware { +final class BldProjectActionEditMain extends AnAction implements DumbAware { private final Project project_; - public BldProjectEditMainAction(Project project) { + public BldProjectActionEditMain(Project project) { super(BldBundle.messagePointer("bld.action.edit.name"), BldBundle.messagePointer("bld.action.edit.description"), AllIcons.Actions.Edit); diff --git a/src/main/java/rife/bld/idea/project/BldProjectEditPropertiesAction.java b/src/main/java/rife/bld/idea/project/BldProjectActionEditProperties.java similarity index 92% rename from src/main/java/rife/bld/idea/project/BldProjectEditPropertiesAction.java rename to src/main/java/rife/bld/idea/project/BldProjectActionEditProperties.java index 7de2872..513b453 100644 --- a/src/main/java/rife/bld/idea/project/BldProjectEditPropertiesAction.java +++ b/src/main/java/rife/bld/idea/project/BldProjectActionEditProperties.java @@ -15,10 +15,10 @@ import rife.bld.idea.execution.BldExecution; import rife.bld.idea.utils.BldBundle; -final class BldProjectEditPropertiesAction extends AnAction implements DumbAware { +final class BldProjectActionEditProperties extends AnAction implements DumbAware { private final Project project_; - public BldProjectEditPropertiesAction(Project project) { + public BldProjectActionEditProperties(Project project) { super(BldBundle.messagePointer("bld.action.properties.name"), BldBundle.messagePointer("bld.action.properties.description"), AllIcons.Actions.EditScheme); diff --git a/src/main/java/rife/bld/idea/project/BldProjectOfflineAction.java b/src/main/java/rife/bld/idea/project/BldProjectActionOffline.java similarity index 93% rename from src/main/java/rife/bld/idea/project/BldProjectOfflineAction.java rename to src/main/java/rife/bld/idea/project/BldProjectActionOffline.java index 32cbeed..b6beeaf 100644 --- a/src/main/java/rife/bld/idea/project/BldProjectOfflineAction.java +++ b/src/main/java/rife/bld/idea/project/BldProjectActionOffline.java @@ -12,10 +12,10 @@ import rife.bld.idea.execution.BldExecution; import rife.bld.idea.utils.BldBundle; -final class BldProjectOfflineAction extends ToggleAction implements DumbAware { +final class BldProjectActionOffline extends ToggleAction implements DumbAware { private final Project project_; - public BldProjectOfflineAction(Project project) { + public BldProjectActionOffline(Project project) { super(BldBundle.messagePointer("bld.action.offline.name"), BldBundle.messagePointer("bld.action.offline.description"), AllIcons.Actions.OfflineMode); project_ = project; diff --git a/src/main/java/rife/bld/idea/project/BldProjectRefreshAction.java b/src/main/java/rife/bld/idea/project/BldProjectActionRefresh.java similarity index 94% rename from src/main/java/rife/bld/idea/project/BldProjectRefreshAction.java rename to src/main/java/rife/bld/idea/project/BldProjectActionRefresh.java index 764a30e..9e7c071 100644 --- a/src/main/java/rife/bld/idea/project/BldProjectRefreshAction.java +++ b/src/main/java/rife/bld/idea/project/BldProjectActionRefresh.java @@ -19,10 +19,10 @@ import rife.bld.idea.execution.BldExecution; import rife.bld.idea.utils.BldBundle; -final class BldProjectRefreshAction extends AnAction implements DumbAware { +final class BldProjectActionRefresh extends AnAction implements DumbAware { private final Project project_; - public BldProjectRefreshAction(Project project) { + public BldProjectActionRefresh(Project project) { super(BldBundle.messagePointer("bld.action.refresh.name"), BldBundle.messagePointer("bld.action.refresh.description"), AllIcons.Actions.Refresh); project_ = project; diff --git a/src/main/java/rife/bld/idea/project/BldProjectRunAction.java b/src/main/java/rife/bld/idea/project/BldProjectActionRun.java similarity index 91% rename from src/main/java/rife/bld/idea/project/BldProjectRunAction.java rename to src/main/java/rife/bld/idea/project/BldProjectActionRun.java index fd8a730..c792a72 100644 --- a/src/main/java/rife/bld/idea/project/BldProjectRunAction.java +++ b/src/main/java/rife/bld/idea/project/BldProjectActionRun.java @@ -12,10 +12,10 @@ import org.jetbrains.annotations.NotNull; import rife.bld.idea.utils.BldBundle; -final class BldProjectRunAction extends AnAction implements DumbAware { +final class BldProjectActionRun extends AnAction implements DumbAware { private final BldProjectWindow projectWindow_; - public BldProjectRunAction(BldProjectWindow projectWindow) { + public BldProjectActionRun(BldProjectWindow projectWindow) { super(BldBundle.messagePointer("bld.action.run.name"), BldBundle.messagePointer("bld.action.run.description"), AllIcons.Actions.Execute); diff --git a/src/main/java/rife/bld/idea/project/BldProjectWindow.java b/src/main/java/rife/bld/idea/project/BldProjectWindow.java index 0981c6d..753980e 100644 --- a/src/main/java/rife/bld/idea/project/BldProjectWindow.java +++ b/src/main/java/rife/bld/idea/project/BldProjectWindow.java @@ -127,15 +127,15 @@ public void dispose() { private JPanel createToolbarPanel() { final var group = new DefaultActionGroup(); - group.add(new BldProjectRefreshAction(project_)); - group.add(new BldProjectRunAction(this)); + group.add(new BldProjectActionRefresh(project_)); + group.add(new BldProjectActionRun(this)); group.addSeparator(); - group.add(new BldProjectEditMainAction(project_)); - group.add(new BldProjectEditPropertiesAction(project_)); + group.add(new BldProjectActionEditMain(project_)); + group.add(new BldProjectActionEditProperties(project_)); group.addSeparator(); - group.add(new BldProjectClearCacheAction(project_)); + group.add(new BldProjectActionClearCache(project_)); group.addSeparator(); - group.add(new BldProjectOfflineAction(project_)); + group.add(new BldProjectActionOffline(project_)); final var action_toolbar = ActionManager.getInstance().createActionToolbar(BldConstants.BLD_EXPLORER_TOOLBAR, group, true); action_toolbar.setTargetComponent(this);