public override SolutionItemConfiguration CreateConfiguration(string configName) { PythonConfiguration config = new PythonConfiguration(); config.Name = configName; return(config); }
public override void CopyFrom(ItemConfiguration config) { PythonConfiguration pyConfig = config as PythonConfiguration; if (pyConfig == null) { throw new ArgumentException("not a PythonConfiguration"); } base.CopyFrom(config); this.m_Module = pyConfig.Module; this.m_Runtime = (IPythonRuntime)pyConfig.Runtime.Clone(); this.m_Optimize = pyConfig.Optimize; this.m_PythonOptions = pyConfig.PythonOptions; }
public PythonExecutionCommand(PythonConfiguration config) { Configuration = config; }
public abstract string[] GetArguments (PythonConfiguration config);
public PythonExecutionCommand (PythonConfiguration config) { Configuration = config; }
public override SolutionItemConfiguration CreateConfiguration (string configName) { PythonConfiguration config = new PythonConfiguration (); config.Name = configName; return config; }
protected override bool OnGetCanExecute(MonoDevelop.Projects.ExecutionContext context, ConfigurationSelector solutionConfiguration) { PythonConfiguration config = (PythonConfiguration)GetConfiguration(solutionConfiguration); return(config.Runtime != null && context.ExecutionHandler.CanExecute(new PythonExecutionCommand(config))); }