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:
Alex Henning
2014-08-14 11:37:02 -04:00
parent f7e1753e03
commit c68ee3001e
3 changed files with 58 additions and 2 deletions

View File

@@ -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) {