home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cayenne Software Inc. 1997
- #
- # File: @(#)ccchangeco.tcl /main/hindenburg/2
- # Author: <generated>
- # Description: VCM integration file
- #---------------------------------------------------------------------------
- # SccsId = @(#)ccchangeco.tcl /main/hindenburg/2 18 Mar 1997 Copyright 1997 Cayenne Software Inc.
-
- # Start user added include file section
- # End user added include file section
-
- require_module_file "cccommentd.tcl" clearcase-vcm
-
- # Dialog for changing the comment of a file.
-
- Class CCChangeCommentDialog : {CCCommentDialog} {
- constructor
- method destructor
- method popUp
- }
-
- constructor CCChangeCommentDialog {class this name} {
- set this [CCCommentDialog::constructor $class $this $name]
- # Start constructor user section
- $this createInterface
- # End constructor user section
- return $this
- }
-
- method CCChangeCommentDialog::destructor {this} {
- # Start destructor user section
- # End destructor user section
- $this CCCommentDialog::destructor
- }
-
-
- # Prepare interface and pop up.
- #
- method CCChangeCommentDialog::popUp {this} {
- $this selectedFiles [.main selectedObjSet]
- $this title "Change comment"
-
- $this.col.label text "Comments for [$this selectionDescription]:\n"
- $this setComment
-
- # action; also update info if action succeeds
- $this vsMethod {
- set comment [$this.col.comments text]
- set result [$file setComment $comment]
- if $result {
- $file setInfo Comments $comment
- }
- set result
- }
-
- $this needsUpdate 0
- $this TemplateDialog::popUp
- }
-
- # Do not delete this line -- regeneration end marker
-
-