Example #1
0
        protected override void Update(CommandArrayInfo info)
        {
            SolutionItem item = IdeApp.ProjectOperations.CurrentSelectedBuildTarget as SolutionItem;

            if (item != null)
            {
                ExecutionModeCommandService.GenerateExecutionModeCommands(item, info);
            }
        }
Example #2
0
        protected override void Update(CommandArrayInfo info)
        {
            Solution sol = IdeApp.ProjectOperations.CurrentSelectedSolution;

            if (sol != null && sol.StartupItem != null)
            {
                ExecutionModeCommandService.GenerateExecutionModeCommands(sol.StartupItem, info);
            }
        }
Example #3
0
        protected void OnUpdateRunTest(CommandArrayInfo info)
        {
            UnitTest test = GetSelectedTest();

            if (test != null && IdeApp.ProjectOperations.CurrentSelectedProject != null)
            {
                ExecutionModeCommandService.GenerateExecutionModeCommands(
                    IdeApp.ProjectOperations.CurrentSelectedProject,
                    test.CanRun,
                    info);
            }
        }
Example #4
0
        protected void OnUpdateRunTest(CommandArrayInfo info)
        {
            UnitTest test = GetSelectedTest();

            if (test != null)
            {
                SolutionEntityItem item = test.OwnerObject as SolutionEntityItem;
                ExecutionModeCommandService.GenerateExecutionModeCommands(
                    item,
                    test.CanRun,
                    info);
            }
        }
Example #5
0
        protected override void Update(CommandArrayInfo info)
        {
            SolutionEntityItem item = IdeApp.ProjectOperations.CurrentSelectedBuildTarget as SolutionEntityItem;

            if (item != null)
            {
                ExecutionModeCommandService.GenerateExecutionModeCommands(
                    item,
                    delegate(IExecutionHandler h) {
                    return(IdeApp.ProjectOperations.CanExecute(item, h));
                },
                    info);
            }
        }
Example #6
0
        protected void OnUpdateRunTest(CommandArrayInfo info)
        {
            UnitTest test = GetSelectedTest();

            if (test != null)
            {
                SolutionItem item = test.OwnerObject as SolutionItem;
                ExecutionModeCommandService.GenerateExecutionModeCommands(
                    item,
                    test.CanRun,
                    info);

                foreach (var ci in info)
                {
                    ci.Enabled = runningTestOperation == null;
                }
            }
        }