示例#1
0
        public override SolutionItemConfiguration CreateConfiguration(string configName)
        {
            PythonConfiguration config = new PythonConfiguration();

            config.Name = configName;
            return(config);
        }
示例#2
0
        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;
		}
示例#6
0
		public override SolutionItemConfiguration CreateConfiguration (string configName)
		{
			PythonConfiguration config = new PythonConfiguration ();
			config.Name = configName;
			return config;
		}
示例#7
0
        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)));
        }