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

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

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