-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
35 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
package com.reason.build.console; | ||
|
||
import com.intellij.execution.ui.ConsoleView; | ||
import com.intellij.icons.AllIcons; | ||
import com.intellij.openapi.actionSystem.AnActionEvent; | ||
import com.intellij.openapi.project.Project; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public class MakeAction extends CompilerAction { | ||
|
||
MakeAction(@NotNull ConsoleView console, @NotNull Project project) { | ||
super("Make", "Make", AllIcons.Actions.Compile, console, project); | ||
public MakeAction() { | ||
super("Make", "Make", AllIcons.Actions.Compile); | ||
} | ||
|
||
@Override | ||
public void actionPerformed(AnActionEvent e) { | ||
doAction(CliType.make); | ||
Project project = e.getProject(); | ||
if (project != null) { | ||
doAction(project, CliType.make); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
package com.reason.build.console; | ||
|
||
import com.intellij.execution.ui.ConsoleView; | ||
import com.intellij.icons.AllIcons; | ||
import com.intellij.openapi.actionSystem.AnActionEvent; | ||
import com.intellij.openapi.project.Project; | ||
|
||
public class MakeWorldAction extends CompilerAction { | ||
|
||
MakeWorldAction(ConsoleView console, Project project) { | ||
super("Clean and make world", "Clean and make world", AllIcons.General.Web, console, project); | ||
MakeWorldAction() { | ||
super("Clean and make world", "Clean and make world", AllIcons.General.Web); | ||
} | ||
|
||
@Override | ||
public void actionPerformed(AnActionEvent e) { | ||
doAction(CliType.cleanMake); | ||
Project project = e.getProject(); | ||
if (project != null) { | ||
doAction(project, CliType.cleanMake); | ||
} | ||
} | ||
} |