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

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

            if (sol != null && sol.StartupItem != null)
            {
                ExecutionModeCommandService.GenerateExecutionModeCommands(sol.StartupItem, info);
            }
        }
Beispiel #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);
            }
        }
Beispiel #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);
            }
        }
Beispiel #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);
            }
        }
Beispiel #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;
                }
            }
        }