home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Westmount Technology 1994
- #
- # File: @(#)cboperfilt.tcl 1.7
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)cboperfilt.tcl 1.7 04 Apr 1996 Copyright 1994 Westmount Technology
-
- # Start user added include file section
- # End user added include file section
-
- require "cbfilter.tcl"
-
- Class CBOperFilter : {CBFilter} {
- constructor
- method destructor
- }
-
- constructor CBOperFilter {class this name propKnowledgeDB} {
- set this [CBFilter::constructor $class $this $name $propKnowledgeDB]
- # Start constructor user section
-
- PropLocation new .propLocation \
- -phaseType [[[[ClientContext::global] currentPhase] phase] type] \
- -diagramType $CAD_TYPE \
- -componentType $CDM_METHOD
-
- # Component (NameType label) properties
- .propLocation labelType $LT_NAME_TYPE
- .propLocation containerKind Component
- .propLocation containerType $CDM_METHOD
- set propHolder {$feature getMatrixComponent}
- $this addFilterElements [$propKnowledgeDB \
- definitions .propLocation] $propHolder
-
- # Name item properties
- .propLocation containerKind Item
- .propLocation containerType $IT_PROCESS
- set propHolder {set wrk [$feature getNameWorkItem]; \
- if {[$wrk isNil]} {set propObject $wrk} \
- else {set propObject [$wrk properties]}}
- $this addFilterElements [$propKnowledgeDB \
- definitions .propLocation] $propHolder
-
- # Type item properties
- .propLocation containerKind Item
- .propLocation containerType $IT_CLASS
- set propHolder {set wrk [$feature getTypeWorkItem]; \
- if {[$wrk isNil]} {set propObject $wrk} \
- else {set propObject [$wrk properties]}}
- $this addFilterElements [$propKnowledgeDB \
- definitions .propLocation] $propHolder
-
- # Implicit properties
- $this addImplicitPropFilterElement $COMP_CLASS_ATTR "Is Class Feature" \
- "CheckButton" "-state 0"
- #$this addImplicitPropFilterElement $COMP_HAS_PARAMLIST \
- # "Has Parameter List" "CheckButton" "-state 0"
- $this addImplicitPropFilterElement $COMP_ABSTRACT "Is Abstract" \
- "CheckButton" "-state 0"
-
- .propLocation delete
-
- $this loadFromString [m4_var get M4_operation_filter]
- $this keepChanges
-
- # End constructor user section
- return $this
- }
-
- method CBOperFilter::destructor {this} {
- # Start destructor user section
- # End destructor user section
- $this CBFilter::destructor
- }
-
- # Do not delete this line -- regeneration end marker
-
-