示例#1
0
 /// <summary>
 /// Override of base-class abstract function creates an appropriately configured view.  For checkins this is
 /// always the current or "tip" view.
 /// </summary>
 /// <param name="raw">the unconfigured <code>View</code></param>
 /// <returns>the snapshot <code>View</code> appropriately configured.</returns>
 protected internal override InterOpStarTeam.StView createSnapshotView(InterOpStarTeam.StView raw)
 {
     InterOpStarTeam.StView snapshot;
     InterOpStarTeam.StViewConfigurationStaticsClass starTeamViewConfiguration = new InterOpStarTeam.StViewConfigurationStaticsClass();
     InterOpStarTeam.StViewFactory starTeamViewFactory = new InterOpStarTeam.StViewFactory();
     snapshot = starTeamViewFactory.Create(raw, starTeamViewConfiguration.createTip());
     if (_label != string.Empty)
     {
         _stLabel = this.getLabelID(snapshot);
     }
     return(snapshot);
 }
示例#2
0
        /// <summary>
        /// Override of base-class abstract function creates an appropriately configured view for checkoutlists. 
        /// The current view or a view of the label specified <see cref="TreeBasedTask.Label" />.
        /// </summary>
        /// <param name="raw">the unconfigured <c>View</c></param>
        /// <returns>the snapshot <c>View</c> appropriately configured.</returns>
        protected override internal InterOpStarTeam.StView createSnapshotView(InterOpStarTeam.StView raw) {
            InterOpStarTeam.StViewConfigurationStaticsClass starTeamViewConfiguration = new InterOpStarTeam.StViewConfigurationStaticsClass();
            InterOpStarTeam.StViewFactory starTeamViewFactory = new InterOpStarTeam.StViewFactory();
            InterOpStarTeam.IStLabel stLabel = getLabelID(raw);

            // if a label has been supplied, use it to configure the view
            // otherwise use current view
            if (stLabel != null) {
                return starTeamViewFactory.Create(raw, starTeamViewConfiguration.createFromLabel(stLabel.ID));
            }
            else {
                return starTeamViewFactory.Create(raw, starTeamViewConfiguration.createTip());
            }
        }
示例#3
0
 /// <summary>
 /// Override of base-class abstract function creates an appropriately configured view.
 /// For labels this a view configured as of this.lastBuild.
 /// </summary>
 /// <param name="raw">the unconfigured <code>View</code></param>
 /// <returns>the snapshot <code>View</code> appropriately configured.</returns>
 protected internal override InterOpStarTeam.StView createSnapshotView(InterOpStarTeam.StView raw)
 {
     InterOpStarTeam.StView        starTeamView;
     InterOpStarTeam.StViewFactory starTeamViewFactory = new InterOpStarTeam.StViewFactory();
     InterOpStarTeam.StViewConfigurationStaticsClass starTeamViewConfiguration = new InterOpStarTeam.StViewConfigurationStaticsClass();
     if (_isAsOfDateSet && !_isRevision)
     {
         starTeamView = starTeamViewFactory.Create(raw, starTeamViewConfiguration.createFromTime(_labelAsOfDate));
     }
     else
     {
         starTeamView = starTeamViewFactory.Create(raw, starTeamViewConfiguration.createTip());
     }
     return(starTeamView);
 }
示例#4
0
        /// <summary>
        /// Override of base-class abstract function creates an appropriately configured view for checkoutlists.
        /// The current view or a view of the label specified <see cref="TreeBasedTask.Label" />.
        /// </summary>
        /// <param name="raw">the unconfigured <c>View</c></param>
        /// <returns>the snapshot <c>View</c> appropriately configured.</returns>
        protected override internal InterOpStarTeam.StView createSnapshotView(InterOpStarTeam.StView raw)
        {
            InterOpStarTeam.StViewConfigurationStaticsClass starTeamViewConfiguration = new InterOpStarTeam.StViewConfigurationStaticsClass();
            InterOpStarTeam.StViewFactory starTeamViewFactory = new InterOpStarTeam.StViewFactory();
            InterOpStarTeam.IStLabel      stLabel             = getLabelID(raw);

            // if a label has been supplied, use it to configure the view
            // otherwise use current view
            if (stLabel != null)
            {
                return(starTeamViewFactory.Create(raw, starTeamViewConfiguration.createFromLabel(stLabel.ID)));
            }
            else
            {
                return(starTeamViewFactory.Create(raw, starTeamViewConfiguration.createTip()));
            }
        }
示例#5
0
 /// <summary>
 /// Override of base-class abstract function creates an appropriately configured view.  For checkins this is
 /// always the current or "tip" view.
 /// </summary>
 /// <param name="raw">the unconfigured <code>View</code></param>
 /// <returns>the snapshot <code>View</code> appropriately configured.</returns>
 protected internal override InterOpStarTeam.StView createSnapshotView(InterOpStarTeam.StView raw) {
     InterOpStarTeam.StView snapshot;
     InterOpStarTeam.StViewConfigurationStaticsClass starTeamViewConfiguration = new InterOpStarTeam.StViewConfigurationStaticsClass();
     InterOpStarTeam.StViewFactory starTeamViewFactory = new InterOpStarTeam.StViewFactory();
     snapshot = starTeamViewFactory.Create(raw, starTeamViewConfiguration.createTip());
     if(_label != string.Empty) {
         _stLabel = this.getLabelID(snapshot);
     }
     return snapshot;
 }
示例#6
0
 /// <summary> 
 /// Override of base-class abstract function creates an appropriately configured view.  
 /// For labels this a view configured as of this.lastBuild.
 /// </summary>
 /// <param name="raw">the unconfigured <code>View</code></param>
 /// <returns>the snapshot <code>View</code> appropriately configured.</returns>
 protected internal override InterOpStarTeam.StView createSnapshotView(InterOpStarTeam.StView raw) {
     InterOpStarTeam.StView starTeamView;
     InterOpStarTeam.StViewFactory starTeamViewFactory = new InterOpStarTeam.StViewFactory();
     InterOpStarTeam.StViewConfigurationStaticsClass starTeamViewConfiguration = new InterOpStarTeam.StViewConfigurationStaticsClass();
     if(_isAsOfDateSet && !_isRevision) {
         starTeamView = starTeamViewFactory.Create(raw, starTeamViewConfiguration.createFromTime(_labelAsOfDate));
     }
     else {
         starTeamView = starTeamViewFactory.Create(raw, starTeamViewConfiguration.createTip());
     }
     return starTeamView;
 }