Exemple #1
0
 public override void DoDefaultAction()
 {
     //get all build definitions if not leaf.
     if (NodePriority == (int)TeamExplorerNodePriority.Leaf || NodePriority == AllBuildDefinitionsNodePriority)
     {
         FindAssociated.AssociatedNode(this, separator).DoDefaultAction();
     }
 }
Exemple #2
0
        public void ViewBuilds()
        {
            //get all build definitions if not leaf.
            BaseHierarchyNode node = NodePriority != (int)TeamExplorerNodePriority.Leaf
                                         ? FindAssociated.AssociatedNode("All Build Definitions", this, separator)
                                         : FindAssociated.AssociatedNode(this, separator);

            node.ParentHierarchy.CallMethod("ViewBuilds", node);
        }
Exemple #3
0
        public void QueueNewBuild()
        {
            //get all build definitions if not leaf.
            BaseHierarchyNode node = NodePriority != (int)TeamExplorerNodePriority.Leaf
                                         ? FindAssociated.AssociatedNode("All Build Definitions", this, separator)
                                         : FindAssociated.AssociatedNode(this, separator);

            if (!(NodePriority == (int)TeamExplorerNodePriority.Leaf && IsDisabled))
            {
                node.ParentHierarchy.CallMethod("QueueBuild", node);
            }
        }
Exemple #4
0
        public void QueueDefaultSubFolderBuilds()
        {
            // if (NodePriority == (int)TeamExplorerNodePriority.Leaf)
            //     return;  // just ignore, we should never be here
            IBuildServer buildServer = GetBuildServer();

            foreach (IBuildDefinition buildDef in
                     FindAssociated.AssociatedNodes(CanonicalName, this, separator).Select(
                         item => buildServer.GetBuildDefinition(item.ProjectName, item.Name)))
            {
                if (buildDef.Enabled)
                {
                    buildServer.QueueBuild(buildDef);
                }
            }
            BaseHierarchyNode node = FindAssociated.AssociatedNode("All Build Definitions", this, separator);

            node.ParentHierarchy.CallMethod("ViewBuilds", node);
        }
Exemple #5
0
        public void ViewAllBuilds()
        {
            var node = FindAssociated.AssociatedNode("All Build Definitions", this, defaultSep);

            node.ParentHierarchy.CallMethod("ViewBuilds", node);
        }
Exemple #6
0
 public override void DoDefaultAction()
 {
     FindAssociated.AssociatedNode("All Build Definitions", this, defaultSep).DoDefaultAction();  // uses default separator, doesnt matter
 }
Exemple #7
0
        public void ViewAllBuilds()
        {
            BaseHierarchyNode node = FindAssociated.AssociatedNode("All Build Definitions", this, separator);

            node.ParentHierarchy.CallMethod("ViewBuilds", node);
        }
Exemple #8
0
        public void GotoTeamExplorerBuildNode()
        {
            BaseHierarchyNode node = FindAssociated.AssociatedNode(this, separator);

            node.Select();
        }
Exemple #9
0
        public void OpenEditBuildDefintion()
        {
            BaseHierarchyNode node = FindAssociated.AssociatedNode(this, separator);

            node.ParentHierarchy.CallMethod("OpenBuildDefinition", node);
        }