Skip to content

Commit

Permalink
Code cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
gbevin committed Jul 20, 2024
1 parent 156026f commit 32029d1
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/rife/bld/idea/console/BldConsoleViewPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
12 changes: 6 additions & 6 deletions src/main/java/rife/bld/idea/project/BldProjectWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 32029d1

Please sign in to comment.