mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Added message to notify when simulation is unsupported.
Also links to screensteps instructions to set it up. Change-Id: I61bca3ad773d5e08b3a4f8fa6bc0fd2cd1c04c59
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