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

@@ -18,6 +18,7 @@ import org.eclipse.ui.IFileEditorInput;
import org.eclipse.ui.PlatformUI;
import edu.wpi.first.wpilib.plugins.core.launching.AntLauncher;
import edu.wpi.first.wpilib.plugins.core.launching.SimulationNotification;
import edu.wpi.first.wpilib.plugins.cpp.WPILibCPPPlugin;
/**
@@ -79,7 +80,12 @@ public class SimulateLaunchShortcut implements ILaunchShortcut {
* @param activeProj The project that the script will be run on/from
* @param mode The mode it will be run in (ILaunchManager.RUN_MODE or ILaunchManager.DEBUG_MODE)
*/
public void runConfig(IProject activeProj, String mode){
public void runConfig(IProject activeProj, String mode) {
if (!SimulationNotification.supportsSimulation()) {
SimulationNotification.showUnsupported();
return;
}
String targets = "simulate";
if(mode.equals(ILaunchManager.RUN_MODE)){