mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Merge "Added message to notify when simulation is unsupported."
This commit is contained in:
@@ -2,6 +2,8 @@ package edu.wpi.first.wpilib.plugins.java.launching;
|
||||
|
||||
import org.eclipse.core.resources.IProject;
|
||||
|
||||
import edu.wpi.first.wpilib.plugins.core.launching.SimulationNotification;
|
||||
|
||||
public class SimulateLaunchShortcut extends JavaLaunchShortcut {
|
||||
|
||||
|
||||
@@ -11,7 +13,11 @@ public class SimulateLaunchShortcut extends JavaLaunchShortcut {
|
||||
* @param mode The mode it will be run in (ILaunchManager.RUN_MODE or ILaunchManager.DEBUG_MODE)
|
||||
*/
|
||||
public void runConfig(IProject activeProj, String mode){
|
||||
runConfigHelper(activeProj, mode, "simulate", "debug-simulate");
|
||||
if (SimulationNotification.supportsSimulation()) {
|
||||
runConfigHelper(activeProj, mode, "simulate", "debug-simulate");
|
||||
} else {
|
||||
SimulationNotification.showUnsupported();
|
||||
}
|
||||
}
|
||||
|
||||
protected String getHostname(IProject proj) {
|
||||
|
||||
Reference in New Issue
Block a user