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:
@@ -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)){
|
||||
|
||||
Reference in New Issue
Block a user