Skip to content

Commit 6696eec

Browse files
committed
Merge branch 'master' into feat/exceptionWitnessResponderButton
2 parents 17cd713 + 64dcee7 commit 6696eec

File tree

19 files changed

+7
-1060
lines changed

19 files changed

+7
-1060
lines changed

build.gradle

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,6 @@ project(":ui") {
191191
compile project(path: ':core', configuration: 'shadow')
192192
ideProvider project(path: ':core', configuration: 'compile')
193193
compile group: 'org.controlsfx', name: 'controlsfx', version: '8.40.10'
194-
compile group: 'org.apache.ant', name: 'ant-jsch', version: '1.8.1'
195-
compile group: 'com.jcabi', name: 'jcabi-ssh', version: '1.5'
196-
compile group: 'org.jdeferred', name: 'jdeferred-core', version: '1.2.4'
197194
testCompile files(project(':core').sourceSets.test.output.classesDir)
198195
testCompile files(project(':core').sourceSets.test.output.resourcesDir)
199196
testCompile group: 'org.testfx', name: 'testfx-core', version: '4.0.+'

core/src/main/java/edu/wpi/grip/core/Main.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ public class Main {
2626
@Inject
2727
private Logger logger;
2828

29-
public static void main(String[] args) throws IOException, InterruptedException {
29+
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
30+
public static void main(String[] args) throws Exception {
3031
final Injector injector = Guice.createInjector(new GRIPCoreModule());
3132
injector.getInstance(Main.class).start(args);
3233
}
3334

34-
@SuppressWarnings("PMD.SystemPrintln")
3535
public void start(String[] args) throws IOException, InterruptedException {
3636
if (args.length != 1) {
3737
System.err.println("Usage: GRIP.jar project.grip");
@@ -69,9 +69,6 @@ public void start(String[] args) throws IOException, InterruptedException {
6969
// Open a project from a .grip file specified on the command line
7070
project.open(new File(projectPath));
7171

72-
73-
// This is done in order to indicate to the user using the deployment UI that this is running
74-
System.out.println("SUCCESS! The project is running in headless mode!");
7572
// There's nothing more to do in the main thread since we're in headless mode - sleep forever
7673
for (; ; ) {
7774
Thread.sleep(Integer.MAX_VALUE);

ui/src/main/java/edu/wpi/grip/ui/DeployerController.java

Lines changed: 0 additions & 130 deletions
This file was deleted.

ui/src/main/java/edu/wpi/grip/ui/GRIPUIModule.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
import edu.wpi.grip.ui.annotations.ParametrizedController;
1212
import edu.wpi.grip.ui.components.ExceptionWitnessResponderButton;
1313
import edu.wpi.grip.ui.components.StartStoppableButton;
14-
import edu.wpi.grip.ui.deployment.FRCAdvancedDeploymentOptionsController;
15-
import edu.wpi.grip.ui.deployment.FRCDeploymentOptionsController;
1614
import edu.wpi.grip.ui.pipeline.OutputSocketController;
1715
import edu.wpi.grip.ui.pipeline.SocketHandleView;
1816
import edu.wpi.grip.ui.pipeline.StepController;
@@ -72,9 +70,6 @@ public <I> void hear(final TypeLiteral<I> typeLiteral, TypeEncounter<I> typeEnco
7270
install(new FactoryModuleBuilder().build(OperationController.Factory.class));
7371
install(new FactoryModuleBuilder().build(SocketHandleView.Factory.class));
7472
install(new FactoryModuleBuilder().build(OutputSocketController.Factory.class));
75-
install(new FactoryModuleBuilder().build(DeployerController.Factory.class));
76-
install(new FactoryModuleBuilder().build(FRCDeploymentOptionsController.Factory.class));
77-
install(new FactoryModuleBuilder().build(FRCAdvancedDeploymentOptionsController.Factory.class));
7873
// End arbitrary controllers
7974

8075
// InputSocketController Factories

ui/src/main/java/edu/wpi/grip/ui/MainWindowController.java

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import javafx.application.Platform;
88
import javafx.fxml.FXML;
99
import javafx.scene.Parent;
10-
import javafx.scene.control.Alert;
1110
import javafx.scene.control.ButtonType;
1211
import javafx.scene.control.Dialog;
1312
import javafx.scene.control.SplitPane;
@@ -40,8 +39,6 @@ public class MainWindowController {
4039
private Palette palette;
4140
@Inject
4241
private Project project;
43-
@Inject
44-
private DeployerController.Factory deployerControllerFactoy;
4542

4643
public void initialize() {
4744
pipelineView.prefHeightProperty().bind(bottomPane.heightProperty());
@@ -167,21 +164,5 @@ public void quit() {
167164
Platform.exit();
168165
}
169166
}
170-
171-
@FXML
172-
public void deployFRC() {
173-
if (project.getFile().isPresent()) {
174-
final DeployerController deployerController = deployerControllerFactoy.create();
175-
final Dialog<ButtonType> dialog = new Dialog();
176-
dialog.setDialogPane(deployerController.getRoot());
177-
dialog.setResizable(true);
178-
dialog.showAndWait();
179-
} else {
180-
final Alert alert = new Alert(Alert.AlertType.INFORMATION,
181-
"You must have saved your project before it can be deployed to a remote device.");
182-
alert.showAndWait();
183-
}
184-
185-
}
186167
}
187168

ui/src/main/java/edu/wpi/grip/ui/deployment/DeploymentOptionsController.java

Lines changed: 0 additions & 132 deletions
This file was deleted.

ui/src/main/java/edu/wpi/grip/ui/deployment/DeploymentOptionsControllersFactory.java

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)