ResourceSelectionBrowser.st
author Claus Gittinger <cg@exept.de>
Thu, 22 Oct 2009 21:51:10 +0200
changeset 2663 f5ce02d58661
parent 2441 a0c5da242681
child 2760 11963b80d72c
permissions -rw-r--r--
added: #aboutIcon #aboutImage
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
425
cf47d420764a initial checkin
tz
parents:
diff changeset
     1
"
771
905c3b4ba565 revised
tz
parents: 769
diff changeset
     2
 COPYRIGHT (c) 1997-1998 by eXept Software AG
425
cf47d420764a initial checkin
tz
parents:
diff changeset
     3
              All Rights Reserved
cf47d420764a initial checkin
tz
parents:
diff changeset
     4
cf47d420764a initial checkin
tz
parents:
diff changeset
     5
 This software is furnished under a license and may be used
cf47d420764a initial checkin
tz
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
cf47d420764a initial checkin
tz
parents:
diff changeset
     7
 inclusion of the above copyright notice. This software may not
cf47d420764a initial checkin
tz
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
cf47d420764a initial checkin
tz
parents:
diff changeset
     9
 other person. No title to or ownership of the software is
cf47d420764a initial checkin
tz
parents:
diff changeset
    10
 hereby transferred.
cf47d420764a initial checkin
tz
parents:
diff changeset
    11
"
1384
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
    12
"{ Package: 'stx:libtool2' }"
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
    13
425
cf47d420764a initial checkin
tz
parents:
diff changeset
    14
SelectionBrowser subclass:#ResourceSelectionBrowser
477
857d4289a2bd improved class name completion routine
tz
parents: 472
diff changeset
    15
	instanceVariableNames:'resourceMethod resourceClass resourceSuperclass resourceTypes
906
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
    16
		allClasses classSelectionBlock'
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
    17
	classVariableNames:'ClassPresentation'
425
cf47d420764a initial checkin
tz
parents:
diff changeset
    18
	poolDictionaries:''
619
36c9d07f7dc3 class category changed
tz
parents: 616
diff changeset
    19
	category:'Interface-Dialogs'
425
cf47d420764a initial checkin
tz
parents:
diff changeset
    20
!
cf47d420764a initial checkin
tz
parents:
diff changeset
    21
771
905c3b4ba565 revised
tz
parents: 769
diff changeset
    22
Object subclass:#ResourceMethod
523
eec155f1b037 resource methods are now put own rows
tz
parents: 517
diff changeset
    23
	instanceVariableNames:'method icon resourceType selector'
eec155f1b037 resource methods are now put own rows
tz
parents: 517
diff changeset
    24
	classVariableNames:''
eec155f1b037 resource methods are now put own rows
tz
parents: 517
diff changeset
    25
	poolDictionaries:''
eec155f1b037 resource methods are now put own rows
tz
parents: 517
diff changeset
    26
	privateIn:ResourceSelectionBrowser
eec155f1b037 resource methods are now put own rows
tz
parents: 517
diff changeset
    27
!
eec155f1b037 resource methods are now put own rows
tz
parents: 517
diff changeset
    28
425
cf47d420764a initial checkin
tz
parents:
diff changeset
    29
!ResourceSelectionBrowser class methodsFor:'documentation'!
cf47d420764a initial checkin
tz
parents:
diff changeset
    30
cf47d420764a initial checkin
tz
parents:
diff changeset
    31
copyright
cf47d420764a initial checkin
tz
parents:
diff changeset
    32
"
771
905c3b4ba565 revised
tz
parents: 769
diff changeset
    33
 COPYRIGHT (c) 1997-1998 by eXept Software AG
425
cf47d420764a initial checkin
tz
parents:
diff changeset
    34
              All Rights Reserved
cf47d420764a initial checkin
tz
parents:
diff changeset
    35
cf47d420764a initial checkin
tz
parents:
diff changeset
    36
 This software is furnished under a license and may be used
cf47d420764a initial checkin
tz
parents:
diff changeset
    37
 only in accordance with the terms of that license and with the
cf47d420764a initial checkin
tz
parents:
diff changeset
    38
 inclusion of the above copyright notice. This software may not
cf47d420764a initial checkin
tz
parents:
diff changeset
    39
 be provided or otherwise made available to, or used by, any
cf47d420764a initial checkin
tz
parents:
diff changeset
    40
 other person. No title to or ownership of the software is
cf47d420764a initial checkin
tz
parents:
diff changeset
    41
 hereby transferred.
cf47d420764a initial checkin
tz
parents:
diff changeset
    42
"
cf47d420764a initial checkin
tz
parents:
diff changeset
    43
cf47d420764a initial checkin
tz
parents:
diff changeset
    44
!
cf47d420764a initial checkin
tz
parents:
diff changeset
    45
cf47d420764a initial checkin
tz
parents:
diff changeset
    46
documentation
cf47d420764a initial checkin
tz
parents:
diff changeset
    47
"
746
8b3532f50ea9 comment
tz
parents: 733
diff changeset
    48
    The ResourceSelectionBrowser allows you to browse in class hierarchies
771
905c3b4ba565 revised
tz
parents: 769
diff changeset
    49
    and to select resource methods for loading or to saving resource 
905c3b4ba565 revised
tz
parents: 769
diff changeset
    50
    specifications (#canvas, #menu, etc.).
905c3b4ba565 revised
tz
parents: 769
diff changeset
    51
905c3b4ba565 revised
tz
parents: 769
diff changeset
    52
    [instance variables:]
907
393a5860fc7d class presentation in categories added (2)
tz
parents: 906
diff changeset
    53
        resourceMethod          <Symbol>        selector of the resource spec
393a5860fc7d class presentation in categories added (2)
tz
parents: 906
diff changeset
    54
        resourceClass           <Symbol>        class of the resource spec
393a5860fc7d class presentation in categories added (2)
tz
parents: 906
diff changeset
    55
        resourceSuperclass      <Symbol>        root class of the tree list
393a5860fc7d class presentation in categories added (2)
tz
parents: 906
diff changeset
    56
        resourceTypes           <Array>         allowed resource types
393a5860fc7d class presentation in categories added (2)
tz
parents: 906
diff changeset
    57
        allClasses              <Array>         list of the subclasses of resourceSuperclass
393a5860fc7d class presentation in categories added (2)
tz
parents: 906
diff changeset
    58
        classSelectionBlock     <Block>         by evaluating this block the class selection is done
746
8b3532f50ea9 comment
tz
parents: 733
diff changeset
    59
504
1ff52096d1d3 copyright changed
tz
parents: 481
diff changeset
    60
    [start with:]
907
393a5860fc7d class presentation in categories added (2)
tz
parents: 906
diff changeset
    61
        ResourceSelectionBrowser open
504
1ff52096d1d3 copyright changed
tz
parents: 481
diff changeset
    62
1ff52096d1d3 copyright changed
tz
parents: 481
diff changeset
    63
    [author:]
907
393a5860fc7d class presentation in categories added (2)
tz
parents: 906
diff changeset
    64
        Thomas Zwick, eXept Software AG
425
cf47d420764a initial checkin
tz
parents:
diff changeset
    65
"
cf47d420764a initial checkin
tz
parents:
diff changeset
    66
! !
cf47d420764a initial checkin
tz
parents:
diff changeset
    67
cf47d420764a initial checkin
tz
parents:
diff changeset
    68
!ResourceSelectionBrowser class methodsFor:'instance creation'!
cf47d420764a initial checkin
tz
parents:
diff changeset
    69
1978
c4334704dc58 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1920
diff changeset
    70
request:aTitle onSuperclass:aSuperclass andClass:aClassOrClassName andSelector:aSelector withResourceTypes:resourceTypes
c4334704dc58 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1920
diff changeset
    71
    "opens a ResourceSelectionBrowser; return a Message-object or nil."
c4334704dc58 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1920
diff changeset
    72
c4334704dc58 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1920
diff changeset
    73
    ^ (self new
c4334704dc58 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1920
diff changeset
    74
        title: aTitle)
c4334704dc58 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1920
diff changeset
    75
            openOnSuperclass:aSuperclass
c4334704dc58 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1920
diff changeset
    76
            andClass:aClassOrClassName
c4334704dc58 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1920
diff changeset
    77
            andSelector:aSelector
c4334704dc58 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1920
diff changeset
    78
            withResourceTypes:resourceTypes
c4334704dc58 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1920
diff changeset
    79
649
1896945cf5d4 some cleans
tz
parents: 648
diff changeset
    80
    "
1978
c4334704dc58 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1920
diff changeset
    81
     ResourceSelectionBrowser
906
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
    82
        request: 'Select a Resource Selector'
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
    83
        onSuperclass: #ApplicationModel 
1978
c4334704dc58 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1920
diff changeset
    84
        andClassNamed: #MenuEditor 
906
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
    85
        andSelector: #menuItemImage 
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
    86
        withResourceTypes: #(image) 
425
cf47d420764a initial checkin
tz
parents:
diff changeset
    87
    "
cf47d420764a initial checkin
tz
parents:
diff changeset
    88
! !
cf47d420764a initial checkin
tz
parents:
diff changeset
    89
1725
2de97eb77984 category
Claus Gittinger <cg@exept.de>
parents: 1720
diff changeset
    90
!ResourceSelectionBrowser class methodsFor:'callbacks-default'!
648
d0724edba450 some changes for the lib builder and for its new subclass
tz
parents: 641
diff changeset
    91
906
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
    92
treeViewClassHierarchyChildren
771
905c3b4ba565 revised
tz
parents: 769
diff changeset
    93
    "returns the children for the contents (class) of aTreeItem as a block"
648
d0724edba450 some changes for the lib builder and for its new subclass
tz
parents: 641
diff changeset
    94
1034
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
    95
    "/ cg: tz's algorithm was very-very slow, 
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
    96
    "/ (it enumerated classes hundreds of times,
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
    97
    "/  leading to a square runtime behavior
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
    98
    "/  - i.e. very slow scrolling )
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
    99
    "/ Speed up things by caching facts while enumerating
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   100
    "/ classes once only.
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   101
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   102
    |subclassesAndPrivateClassesPerClass|
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   103
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   104
    subclassesAndPrivateClassesPerClass := IdentityDictionary new.
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   105
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   106
    Smalltalk allClassesDo:[:cls |
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   107
        |owner superclass info|
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   108
1732
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   109
"/        (owner := cls owningClass) notNil ifTrue:[
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   110
"/            info := subclassesAndPrivateClassesPerClass at:owner ifAbsent:nil.
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   111
"/            info isNil ifTrue:[
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   112
"/                subclassesAndPrivateClassesPerClass at:owner put:(info := Array with:IdentitySet new 
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   113
"/                                                                                with:IdentitySet new).
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   114
"/            ].
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   115
"/            (info at:2) add:cls
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   116
"/        ] ifFalse:[
1034
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   117
            superclass := cls superclass.
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   118
            superclass notNil ifTrue:[
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   119
                info := subclassesAndPrivateClassesPerClass at:superclass ifAbsent:nil.
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   120
                info isNil ifTrue:[
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   121
                    subclassesAndPrivateClassesPerClass at:superclass put:(info := Array with:IdentitySet new 
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   122
                                                                                         with:IdentitySet new).
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   123
                ].
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   124
                (info at:1) add:cls
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   125
            ]
1732
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   126
"/        ]
1034
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   127
    ].
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   128
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   129
    ^ [:aTreeItem|
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   130
        |classes itemClass info|
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   131
906
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   132
        classes := OrderedCollection new. 
1034
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   133
        itemClass := aTreeItem contents.
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   134
        info := subclassesAndPrivateClassesPerClass at:itemClass ifAbsent:nil.
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   135
        info notNil ifTrue:[
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   136
            classes addAll:((info at:1) asSortedCollection: [:cls1 :cls2| cls1 name < cls2 name]).
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   137
            classes addAll:((info at:2) asSortedCollection: [:cls1 :cls2| cls1 name < cls2 name]).
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   138
        ].
906
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   139
        classes
718
c2e814032029 show private classes only for their owning classes
tz
parents: 693
diff changeset
   140
     ]
648
d0724edba450 some changes for the lib builder and for its new subclass
tz
parents: 641
diff changeset
   141
!
d0724edba450 some changes for the lib builder and for its new subclass
tz
parents: 641
diff changeset
   142
906
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   143
treeViewClassHierarchyContents
771
905c3b4ba565 revised
tz
parents: 769
diff changeset
   144
    "returns the default contents of the root of the class tree list"
648
d0724edba450 some changes for the lib builder and for its new subclass
tz
parents: 641
diff changeset
   145
802
460dc3bb9cf9 dont send 'Smalltalk at:nil'
Claus Gittinger <cg@exept.de>
parents: 789
diff changeset
   146
    ^ Object
648
d0724edba450 some changes for the lib builder and for its new subclass
tz
parents: 641
diff changeset
   147
d0724edba450 some changes for the lib builder and for its new subclass
tz
parents: 641
diff changeset
   148
!
d0724edba450 some changes for the lib builder and for its new subclass
tz
parents: 641
diff changeset
   149
906
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   150
treeViewClassHierarchyIcon
771
905c3b4ba565 revised
tz
parents: 769
diff changeset
   151
    "returns the icon for aTreeItem as a block"
648
d0724edba450 some changes for the lib builder and for its new subclass
tz
parents: 641
diff changeset
   152
718
c2e814032029 show private classes only for their owning classes
tz
parents: 693
diff changeset
   153
    ^[:aTreeItem|
906
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   154
        |icon|
1034
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   155
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   156
        aTreeItem contents isClass ifTrue:[
906
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   157
            icon := self iconClass.
1034
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   158
            aTreeItem contents isPrivate ifTrue:[
906
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   159
               icon := self iconPrivateClass
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   160
            ].
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   161
            icon
1034
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   162
        ] ifFalse:[
906
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   163
            self iconCategory
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   164
        ]
771
905c3b4ba565 revised
tz
parents: 769
diff changeset
   165
    ]
648
d0724edba450 some changes for the lib builder and for its new subclass
tz
parents: 641
diff changeset
   166
d0724edba450 some changes for the lib builder and for its new subclass
tz
parents: 641
diff changeset
   167
!
d0724edba450 some changes for the lib builder and for its new subclass
tz
parents: 641
diff changeset
   168
906
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   169
treeViewClassHierarchyLabel
771
905c3b4ba565 revised
tz
parents: 769
diff changeset
   170
    "returns the label for aTreeItem as a block"
648
d0724edba450 some changes for the lib builder and for its new subclass
tz
parents: 641
diff changeset
   171
718
c2e814032029 show private classes only for their owning classes
tz
parents: 693
diff changeset
   172
    ^[:aTreeItem|
1034
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   173
        |label superCls itemContents|
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   174
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   175
        itemContents := aTreeItem contents.
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   176
        label := itemContents name.
1732
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   177
"/        (itemContents isPrivate 
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   178
"/        and:[aTreeItem parent contents ~~ (superCls := itemContents superclass)])
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   179
"/            ifTrue: [label := label, ' (', superCls name, ')'].
906
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   180
        label
718
c2e814032029 show private classes only for their owning classes
tz
parents: 693
diff changeset
   181
     ]
648
d0724edba450 some changes for the lib builder and for its new subclass
tz
parents: 641
diff changeset
   182
! !
d0724edba450 some changes for the lib builder and for its new subclass
tz
parents: 641
diff changeset
   183
730
238d796c5da0 own #iconOn: method implememted
tz
parents: 727
diff changeset
   184
!ResourceSelectionBrowser class methodsFor:'image specs'!
238d796c5da0 own #iconOn: method implememted
tz
parents: 727
diff changeset
   185
906
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   186
iconCategory
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   187
    "This resource specification was automatically generated
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   188
     by the ImageEditor of ST/X."
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   189
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   190
    "Do not manually edit this!! If it is corrupted,
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   191
     the ImageEditor may not be able to read the specification."
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   192
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   193
    "
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   194
     self iconCategory inspect
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   195
     ImageEditor openOnClass:self andSelector:#iconCategory
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   196
    "
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   197
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   198
    <resource: #image>
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   199
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   200
    ^Icon
2441
a0c5da242681 image resource method fixes (key must be name of method)
Claus Gittinger <cg@exept.de>
parents: 2309
diff changeset
   201
        constantNamed:#'ResourceSelectionBrowser class iconCategory'
1493
844c2ed1208d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1412
diff changeset
   202
        ifAbsentPut:[(Depth4Image new) width: 18; height: 16; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'3L0@@@@@@L3L3L@@@@@@@@3L3@@3L3L3L0CL3@LQDQDQD#CL3@LRH"H"H3CL3@LRH"H"H3CL3@LRH"H"H3CL3@LRH"H"H3CL3@LRH"H"H3CL3@LRH"H"H3CL3@LRH"H"H3CL3@LRH"H"H3CL3@L#L3L3L3CL3@@3L3L3L0CL3L@@@@@@@@3L3L0@@@@@@L3L') ; colorMapFromArray:#[0 0 0 255 255 255 170 170 170 127 127 127 255 0 0 0 255 0 0 0 255 0 255 255 255 255 0 255 0 255 127 0 0 0 127 0 0 0 127 0 127 127 127 127 0 127 0 127]; mask:((Depth1Image new) width: 18; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'<@O@8@G@3?3@7?;@7?;@7?;@7?;@7?;@7?;@7?;@7?;@7?;@7?;@3?3@8@G@<@O@') ; yourself); yourself]
844c2ed1208d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1412
diff changeset
   203
!
906
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   204
730
238d796c5da0 own #iconOn: method implememted
tz
parents: 727
diff changeset
   205
iconClass
746
8b3532f50ea9 comment
tz
parents: 733
diff changeset
   206
    "This resource specification was automatically generated
8b3532f50ea9 comment
tz
parents: 733
diff changeset
   207
     by the ImageEditor of ST/X."
8b3532f50ea9 comment
tz
parents: 733
diff changeset
   208
8b3532f50ea9 comment
tz
parents: 733
diff changeset
   209
    "Do not manually edit this!! If it is corrupted,
8b3532f50ea9 comment
tz
parents: 733
diff changeset
   210
     the ImageEditor may not be able to read the specification."
8b3532f50ea9 comment
tz
parents: 733
diff changeset
   211
730
238d796c5da0 own #iconOn: method implememted
tz
parents: 727
diff changeset
   212
    "
1404
f088630ac860 images compactified
Claus Gittinger <cg@exept.de>
parents: 1384
diff changeset
   213
     self iconClass inspect
746
8b3532f50ea9 comment
tz
parents: 733
diff changeset
   214
     ImageEditor openOnClass:self andSelector:#iconClass
730
238d796c5da0 own #iconOn: method implememted
tz
parents: 727
diff changeset
   215
    "
238d796c5da0 own #iconOn: method implememted
tz
parents: 727
diff changeset
   216
238d796c5da0 own #iconOn: method implememted
tz
parents: 727
diff changeset
   217
    <resource: #image>
238d796c5da0 own #iconOn: method implememted
tz
parents: 727
diff changeset
   218
238d796c5da0 own #iconOn: method implememted
tz
parents: 727
diff changeset
   219
    ^Icon
2441
a0c5da242681 image resource method fixes (key must be name of method)
Claus Gittinger <cg@exept.de>
parents: 2309
diff changeset
   220
        constantNamed:#'ResourceSelectionBrowser class iconClass'
1493
844c2ed1208d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1412
diff changeset
   221
        ifAbsentPut:[(Depth2Image new) width: 18; height: 16; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@*****ABUUUUT@IUUUUP@%UUUU@BUUUUT@IUUUUP@%UUUU@BUUUUT@IUUUUP@%UUUU@BUUUUT@IUUUUP@%UUUU@A@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 170 170 170 255 255 255]; mask:((Depth1Image new) width: 18; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'_?>@???@???@???@???@???@???@???@???@???@???@???@???@???@???@_?>@') ; yourself); yourself]
844c2ed1208d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1412
diff changeset
   222
!
730
238d796c5da0 own #iconOn: method implememted
tz
parents: 727
diff changeset
   223
238d796c5da0 own #iconOn: method implememted
tz
parents: 727
diff changeset
   224
iconPrivateClass
746
8b3532f50ea9 comment
tz
parents: 733
diff changeset
   225
    "This resource specification was automatically generated
8b3532f50ea9 comment
tz
parents: 733
diff changeset
   226
     by the ImageEditor of ST/X."
8b3532f50ea9 comment
tz
parents: 733
diff changeset
   227
8b3532f50ea9 comment
tz
parents: 733
diff changeset
   228
    "Do not manually edit this!! If it is corrupted,
8b3532f50ea9 comment
tz
parents: 733
diff changeset
   229
     the ImageEditor may not be able to read the specification."
8b3532f50ea9 comment
tz
parents: 733
diff changeset
   230
730
238d796c5da0 own #iconOn: method implememted
tz
parents: 727
diff changeset
   231
    "
746
8b3532f50ea9 comment
tz
parents: 733
diff changeset
   232
     ImageEditor openOnClass:self andSelector:#iconPrivateClass
730
238d796c5da0 own #iconOn: method implememted
tz
parents: 727
diff changeset
   233
    "
238d796c5da0 own #iconOn: method implememted
tz
parents: 727
diff changeset
   234
238d796c5da0 own #iconOn: method implememted
tz
parents: 727
diff changeset
   235
    <resource: #image>
238d796c5da0 own #iconOn: method implememted
tz
parents: 727
diff changeset
   236
238d796c5da0 own #iconOn: method implememted
tz
parents: 727
diff changeset
   237
    ^Icon
2441
a0c5da242681 image resource method fixes (key must be name of method)
Claus Gittinger <cg@exept.de>
parents: 2309
diff changeset
   238
        constantNamed:#'ResourceSelectionBrowser class iconPrivateClass'
a0c5da242681 image resource method fixes (key must be name of method)
Claus Gittinger <cg@exept.de>
parents: 2309
diff changeset
   239
        ifAbsentPut:[(Depth2Image new) width: 18; height: 16; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@PUUUUU A****(@F*??* @Z+??*@A*/*>(OF*>+: @Z+??*@A*/?:(DF*>** @Z+:**@A*/**(@F*>** @Z****C2@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255 170 170 170 255 0 0]; mask:((Depth1Image new) width: 18; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'_?>@???@???@???@???@???@???@???@???@???@???@???@???@???@???@_?>@') ; yourself); yourself]
1493
844c2ed1208d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1412
diff changeset
   240
! !
730
238d796c5da0 own #iconOn: method implememted
tz
parents: 727
diff changeset
   241
425
cf47d420764a initial checkin
tz
parents:
diff changeset
   242
!ResourceSelectionBrowser class methodsFor:'interface specs'!
cf47d420764a initial checkin
tz
parents:
diff changeset
   243
cf47d420764a initial checkin
tz
parents:
diff changeset
   244
windowSpec
746
8b3532f50ea9 comment
tz
parents: 733
diff changeset
   245
    "This resource specification was automatically generated
8b3532f50ea9 comment
tz
parents: 733
diff changeset
   246
     by the UIPainter of ST/X."
425
cf47d420764a initial checkin
tz
parents:
diff changeset
   247
746
8b3532f50ea9 comment
tz
parents: 733
diff changeset
   248
    "Do not manually edit this!! If it is corrupted,
8b3532f50ea9 comment
tz
parents: 733
diff changeset
   249
     the UIPainter may not be able to read the specification."
425
cf47d420764a initial checkin
tz
parents:
diff changeset
   250
cf47d420764a initial checkin
tz
parents:
diff changeset
   251
    "
cf47d420764a initial checkin
tz
parents:
diff changeset
   252
     UIPainter new openOnClass:ResourceSelectionBrowser andSelector:#windowSpec
cf47d420764a initial checkin
tz
parents:
diff changeset
   253
     ResourceSelectionBrowser new openInterface:#windowSpec
746
8b3532f50ea9 comment
tz
parents: 733
diff changeset
   254
     ResourceSelectionBrowser open
425
cf47d420764a initial checkin
tz
parents:
diff changeset
   255
    "
cf47d420764a initial checkin
tz
parents:
diff changeset
   256
cf47d420764a initial checkin
tz
parents:
diff changeset
   257
    <resource: #canvas>
cf47d420764a initial checkin
tz
parents:
diff changeset
   258
1384
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   259
    ^ 
1751
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   260
     #(FullSpec
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   261
        name: windowSpec
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   262
        window: 
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   263
       (WindowSpec
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   264
          label: 'Resource Selection Browser'
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   265
          name: 'Resource Selection Browser'
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   266
          min: (Point 400 300)
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   267
          max: (Point 1152 864)
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   268
          bounds: (Rectangle 12 22 612 372)
1384
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   269
        )
1751
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   270
        component: 
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   271
       (SpecCollection
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   272
          collection: (
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   273
           (VariableHorizontalPanelSpec
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   274
              name: 'VariableHorizontalPanel'
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   275
              layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 -36 1.0)
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   276
              component: 
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   277
             (SpecCollection
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   278
                collection: (
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   279
                 (ViewSpec
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   280
                    name: 'Box1'
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   281
                    component: 
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   282
                   (SpecCollection
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   283
                      collection: (
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   284
                       (HorizontalPanelViewSpec
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   285
                          name: 'HorizontalPanel2'
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   286
                          layout: (LayoutFrame 0 0 2 0 297 0 23 0)
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   287
                          horizontalLayout: leftSpace
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   288
                          verticalLayout: fit
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   289
                          horizontalSpace: 3
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   290
                          verticalSpace: 3
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   291
                          component: 
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   292
                         (SpecCollection
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   293
                            collection: (
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   294
                             (RadioButtonSpec
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   295
                                label: 'Categories'
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   296
                                name: 'ClassCategoriesRadioButton'
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   297
                                translateLabel: true
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   298
                                model: selectionOfClassPresentation
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   299
                                isTriggerOnDown: true
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   300
                                lampColor: (Color 0.0 0.0 0.0)
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   301
                                select: #'Class Categories'
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   302
                                extent: (Point 124 21)
773
tz
parents: 771
diff changeset
   303
                              )
1751
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   304
                             (RadioButtonSpec
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   305
                                label: 'Hierarchy'
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   306
                                name: 'ClassHierarchyRadioButton'
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   307
                                translateLabel: true
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   308
                                model: selectionOfClassPresentation
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   309
                                isTriggerOnDown: true
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   310
                                lampColor: (Color 0.0 0.0 0.0)
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   311
                                select: #'Class Hierarchy'
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   312
                                extent: (Point 145 21)
773
tz
parents: 771
diff changeset
   313
                              )
1384
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   314
                             )
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   315
                           
773
tz
parents: 771
diff changeset
   316
                          )
tz
parents: 771
diff changeset
   317
                        )
1751
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   318
                       (SelectionInTreeViewSpec
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   319
                          name: 'listOfClassHierarchyView'
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   320
                          layout: (LayoutFrame 0 0.0 23 0.0 0 1.0 -24 1.0)
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   321
                          tabable: true
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   322
                          model: selectionOfClassHierarchy
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   323
                          hasHorizontalScrollBar: true
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   324
                          hasVerticalScrollBar: true
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   325
                          miniScrollerHorizontal: true
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   326
                          showDirectoryIndicatorForRoot: false
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   327
                          showDirectoryIndicator: true
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   328
                          valueChangeSelector: classSelected
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   329
                          hierarchicalList: rootOfClassHierarchy
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   330
                          validateDoubleClickSelector: validateDoubleClick:
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   331
                          contentsSelector: treeViewClassHierarchyContents
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   332
                          labelSelector: treeViewClassHierarchyLabel
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   333
                          childrenSelector: treeViewClassHierarchyChildren
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   334
                          iconSelector: treeViewClassHierarchyIcon
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   335
                          highlightMode: line
1384
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   336
                        )
1751
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   337
                       (SelectionInTreeViewSpec
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   338
                          name: 'listOfClassCategoriesView'
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   339
                          layout: (LayoutFrame 0 0.0 23 0.0 0 1.0 -24 1.0)
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   340
                          tabable: true
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   341
                          model: selectionOfClassCategories
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   342
                          hasHorizontalScrollBar: true
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   343
                          hasVerticalScrollBar: true
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   344
                          miniScrollerHorizontal: true
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   345
                          showRoot: false
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   346
                          showDirectoryIndicator: true
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   347
                          valueChangeSelector: classSelected
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   348
                          hierarchicalList: rootOfClassCategories
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   349
                          validateDoubleClickSelector: validateDoubleClick:
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   350
                          childrenSelector: treeViewClassCategoryChildren
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   351
                          iconSelector: treeViewClassCategoryIcon
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   352
                          highlightMode: line
1384
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   353
                        )
1751
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   354
                       (InputFieldSpec
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   355
                          name: 'classNameInputField'
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   356
                          layout: (LayoutFrame 2 0.0 -22 1 -1 1.0 0 1)
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   357
                          tabable: true
1986
5cb77205ce00 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1978
diff changeset
   358
                          model: classNameHolder
1751
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   359
                          acceptOnLeave: true
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   360
                          acceptOnLostFocus: true
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   361
                          acceptOnPointerLeave: true
1384
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   362
                        )
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   363
                       )
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   364
                     
773
tz
parents: 771
diff changeset
   365
                    )
1384
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   366
                  )
1751
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   367
                 (ViewSpec
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   368
                    name: 'Box2'
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   369
                    component: 
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   370
                   (SpecCollection
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   371
                      collection: (
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   372
                       (DataSetSpec
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   373
                          name: 'resourcesDataSetView'
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   374
                          layout: (LayoutFrame 2 0.0 2 0.0 -2 1.0 -24 1.0)
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   375
                          model: selectionOfResourceMethod
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   376
                          hasHorizontalScrollBar: true
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   377
                          hasVerticalScrollBar: true
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   378
                          miniScrollerHorizontal: true
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   379
                          rowClassName: 'ResourceSelectionBrowser::Row'
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   380
                          dataList: listOfResourceMethods
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   381
                          useIndex: false
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   382
                          has3Dsepartors: true
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   383
                          has3Dseparators: true
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   384
                          doubleClickSelector: resourceDoubleClicked
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   385
                          columnHolder: resourceMethodColumns
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   386
                          valueChangeSelector: resourceSelected
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   387
                          verticalSpacing: 1
1384
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   388
                        )
1751
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   389
                       (InputFieldSpec
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   390
                          name: 'selectorInputField'
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   391
                          layout: (LayoutFrame 2 0.0 -22 1 -2 1.0 0 1)
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   392
                          tabable: true
1986
5cb77205ce00 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1978
diff changeset
   393
                          model: resourceSelectorHolder
1751
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   394
                          acceptOnLeave: true
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   395
                          acceptOnLostFocus: true
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   396
                          acceptOnPointerLeave: true
906
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   397
                        )
1384
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   398
                       )
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   399
                     
906
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   400
                    )
1384
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   401
                  )
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   402
                 )
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   403
               
773
tz
parents: 771
diff changeset
   404
              )
1751
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   405
              handles: (Any 0.5 1.0)
1384
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   406
            )
1751
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   407
           (HorizontalPanelViewSpec
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   408
              name: 'ButtonPanel'
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   409
              layout: (LayoutFrame 2 0.0 -30 1 -2 1.0 -4 1.0)
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   410
              horizontalLayout: fit
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   411
              verticalLayout: fit
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   412
              reverseOrderIfOKAtLeft: true
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   413
              component: 
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   414
             (SpecCollection
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   415
                collection: (
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   416
                 (ActionButtonSpec
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   417
                    label: 'Help'
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   418
                    name: 'HelpButton'
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   419
                    activeHelpKey: dss
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   420
                    model: openHTMLDocument:
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   421
                    initiallyDisabled: true
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   422
                    enableChannel: helpEnabled
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   423
                    actionValue: 'tools/uipainter/ResourceSelectionBrowser.html'
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   424
                    extent: (Point 196 26)
1384
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   425
                  )
1751
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   426
                 (ActionButtonSpec
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   427
                    label: 'Cancel'
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   428
                    name: 'cancelButton'
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   429
                    activeHelpKey: commitCancel
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   430
                    tabable: true
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   431
                    model: cancel
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   432
                    extent: (Point 197 26)
1384
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   433
                  )
1751
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   434
                 (ActionButtonSpec
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   435
                    label: 'OK'
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   436
                    name: 'okButton'
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   437
                    activeHelpKey: commitOK
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   438
                    tabable: true
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   439
                    model: accept
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   440
                    isDefault: true
fd6ac12ed9e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   441
                    extent: (Point 197 26)
1384
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   442
                  )
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   443
                 )
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   444
               
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   445
              )
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   446
            )
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   447
           )
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   448
         
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   449
        )
425
cf47d420764a initial checkin
tz
parents:
diff changeset
   450
      )
cf47d420764a initial checkin
tz
parents:
diff changeset
   451
! !
cf47d420764a initial checkin
tz
parents:
diff changeset
   452
648
d0724edba450 some changes for the lib builder and for its new subclass
tz
parents: 641
diff changeset
   453
!ResourceSelectionBrowser class methodsFor:'list specs'!
d0724edba450 some changes for the lib builder and for its new subclass
tz
parents: 641
diff changeset
   454
822
be574ef48217 checkin from browser
tz
parents: 821
diff changeset
   455
tableColumnsForResourceMethodAttributes
821
950e6fbbc1f0 table columns formatted
tz
parents: 812
diff changeset
   456
    "This resource specification was automatically generated
950e6fbbc1f0 table columns formatted
tz
parents: 812
diff changeset
   457
     by the DataSetBuilder of ST/X."
950e6fbbc1f0 table columns formatted
tz
parents: 812
diff changeset
   458
950e6fbbc1f0 table columns formatted
tz
parents: 812
diff changeset
   459
    "Do not manually edit this!! If it is corrupted,
950e6fbbc1f0 table columns formatted
tz
parents: 812
diff changeset
   460
     the DataSetBuilder may not be able to read the specification."
950e6fbbc1f0 table columns formatted
tz
parents: 812
diff changeset
   461
950e6fbbc1f0 table columns formatted
tz
parents: 812
diff changeset
   462
    "
822
be574ef48217 checkin from browser
tz
parents: 821
diff changeset
   463
     DataSetBuilder new openOnClass:ResourceSelectionBrowser andSelector:#tableColumnsForResourceMethodAttributes
821
950e6fbbc1f0 table columns formatted
tz
parents: 812
diff changeset
   464
    "
950e6fbbc1f0 table columns formatted
tz
parents: 812
diff changeset
   465
950e6fbbc1f0 table columns formatted
tz
parents: 812
diff changeset
   466
    <resource: #tableColumns>
950e6fbbc1f0 table columns formatted
tz
parents: 812
diff changeset
   467
648
d0724edba450 some changes for the lib builder and for its new subclass
tz
parents: 641
diff changeset
   468
821
950e6fbbc1f0 table columns formatted
tz
parents: 812
diff changeset
   469
    ^ #(
950e6fbbc1f0 table columns formatted
tz
parents: 812
diff changeset
   470
        #(#DataSetColumnSpec
950e6fbbc1f0 table columns formatted
tz
parents: 812
diff changeset
   471
           #width: 20
950e6fbbc1f0 table columns formatted
tz
parents: 812
diff changeset
   472
           #height: 20
950e6fbbc1f0 table columns formatted
tz
parents: 812
diff changeset
   473
           #printSelector: #iconOn:
950e6fbbc1f0 table columns formatted
tz
parents: 812
diff changeset
   474
           #canSelect: false
950e6fbbc1f0 table columns formatted
tz
parents: 812
diff changeset
   475
       )
950e6fbbc1f0 table columns formatted
tz
parents: 812
diff changeset
   476
        #(#DataSetColumnSpec
950e6fbbc1f0 table columns formatted
tz
parents: 812
diff changeset
   477
           #label: ' Selector'
950e6fbbc1f0 table columns formatted
tz
parents: 812
diff changeset
   478
           #labelAlignment: #left
950e6fbbc1f0 table columns formatted
tz
parents: 812
diff changeset
   479
           #model: #selector
950e6fbbc1f0 table columns formatted
tz
parents: 812
diff changeset
   480
           #canSelect: false
950e6fbbc1f0 table columns formatted
tz
parents: 812
diff changeset
   481
       )
950e6fbbc1f0 table columns formatted
tz
parents: 812
diff changeset
   482
        #(#DataSetColumnSpec
950e6fbbc1f0 table columns formatted
tz
parents: 812
diff changeset
   483
           #label: ' Resource Type'
950e6fbbc1f0 table columns formatted
tz
parents: 812
diff changeset
   484
           #labelAlignment: #left
950e6fbbc1f0 table columns formatted
tz
parents: 812
diff changeset
   485
           #model: #resourceType
950e6fbbc1f0 table columns formatted
tz
parents: 812
diff changeset
   486
           #canSelect: false
950e6fbbc1f0 table columns formatted
tz
parents: 812
diff changeset
   487
       )
950e6fbbc1f0 table columns formatted
tz
parents: 812
diff changeset
   488
     )
648
d0724edba450 some changes for the lib builder and for its new subclass
tz
parents: 641
diff changeset
   489
! !
d0724edba450 some changes for the lib builder and for its new subclass
tz
parents: 641
diff changeset
   490
425
cf47d420764a initial checkin
tz
parents:
diff changeset
   491
!ResourceSelectionBrowser methodsFor:'aspects'!
cf47d420764a initial checkin
tz
parents:
diff changeset
   492
1986
5cb77205ce00 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1978
diff changeset
   493
classNameHolder
5cb77205ce00 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1978
diff changeset
   494
    "returns the value holder for the name of the class"
5cb77205ce00 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1978
diff changeset
   495
5cb77205ce00 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1978
diff changeset
   496
    |holder|
5cb77205ce00 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1978
diff changeset
   497
5cb77205ce00 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1978
diff changeset
   498
    (holder := builder bindingAt:#valueOfClassName) isNil ifTrue:[
5cb77205ce00 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1978
diff changeset
   499
        builder aspectAt:#valueOfClassName put:(holder :=  '' asValue).
5cb77205ce00 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1978
diff changeset
   500
        holder onChangeEvaluate:[self classSelectionUpdate:holder value].
5cb77205ce00 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1978
diff changeset
   501
    ].
5cb77205ce00 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1978
diff changeset
   502
    ^ holder
5cb77205ce00 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1978
diff changeset
   503
!
5cb77205ce00 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1978
diff changeset
   504
773
tz
parents: 771
diff changeset
   505
helpEnabled
tz
parents: 771
diff changeset
   506
    "returns whether there is a documentation file"
tz
parents: 771
diff changeset
   507
tz
parents: 771
diff changeset
   508
    ^true
tz
parents: 771
diff changeset
   509
!
tz
parents: 771
diff changeset
   510
771
905c3b4ba565 revised
tz
parents: 769
diff changeset
   511
listOfResourceMethods
905c3b4ba565 revised
tz
parents: 769
diff changeset
   512
    "returns the value holder for the list of the resource methods"
648
d0724edba450 some changes for the lib builder and for its new subclass
tz
parents: 641
diff changeset
   513
1184
c67bdfe67afd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1086
diff changeset
   514
    ^ builder listAspectFor:#listOfResourceMethods
648
d0724edba450 some changes for the lib builder and for its new subclass
tz
parents: 641
diff changeset
   515
!
d0724edba450 some changes for the lib builder and for its new subclass
tz
parents: 641
diff changeset
   516
771
905c3b4ba565 revised
tz
parents: 769
diff changeset
   517
resourceMethodColumns
905c3b4ba565 revised
tz
parents: 769
diff changeset
   518
    "returns the columns for the table of the resource methods as value holder"
425
cf47d420764a initial checkin
tz
parents:
diff changeset
   519
cf47d420764a initial checkin
tz
parents:
diff changeset
   520
    |holder|
771
905c3b4ba565 revised
tz
parents: 769
diff changeset
   521
    (holder := builder bindingAt:#resourceMethodColumns) isNil ifTrue:[
821
950e6fbbc1f0 table columns formatted
tz
parents: 812
diff changeset
   522
        builder aspectAt:#resourceMethodColumns put:(holder := List new).
822
be574ef48217 checkin from browser
tz
parents: 821
diff changeset
   523
        holder addAll: (self class tableColumnsForResourceMethodAttributes collect: [:i| i decodeAsLiteralArray]).
771
905c3b4ba565 revised
tz
parents: 769
diff changeset
   524
    ].
905c3b4ba565 revised
tz
parents: 769
diff changeset
   525
    ^ holder
905c3b4ba565 revised
tz
parents: 769
diff changeset
   526
!
905c3b4ba565 revised
tz
parents: 769
diff changeset
   527
1986
5cb77205ce00 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1978
diff changeset
   528
resourceSelectorHolder
5cb77205ce00 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1978
diff changeset
   529
    "returns the value holder for the name of the selector"
5cb77205ce00 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1978
diff changeset
   530
5cb77205ce00 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1978
diff changeset
   531
    |holder|
5cb77205ce00 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1978
diff changeset
   532
    (holder := builder bindingAt:#valueOfResourceSelector) isNil ifTrue:[
5cb77205ce00 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1978
diff changeset
   533
        builder aspectAt:#valueOfResourceSelector put:(holder :=  '' asValue).
5cb77205ce00 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1978
diff changeset
   534
    ].
5cb77205ce00 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1978
diff changeset
   535
    ^ holder
5cb77205ce00 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1978
diff changeset
   536
!
5cb77205ce00 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1978
diff changeset
   537
906
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   538
rootOfClassCategories
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   539
    "returns the value holder for the root of the class tree list"
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   540
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   541
    |holder|                                
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   542
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   543
    (holder := builder bindingAt:#rootOfClassCategories) isNil ifTrue:[
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   544
        ClassPresentation = #'Class Categories' ifTrue: [
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   545
        builder aspectAt:#rootOfClassCategories put: (holder := TreeItem name: 'Categories')].
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   546
    ].
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   547
    ^ holder
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   548
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   549
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   550
!
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   551
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   552
rootOfClassHierarchy
771
905c3b4ba565 revised
tz
parents: 769
diff changeset
   553
    "returns the value holder for the root of the class tree list"
905c3b4ba565 revised
tz
parents: 769
diff changeset
   554
905c3b4ba565 revised
tz
parents: 769
diff changeset
   555
    |holder|
906
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   556
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   557
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   558
    (holder := builder bindingAt:#rootOfClassHierarchy) isNil ifTrue:[
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   559
        ClassPresentation = #'Class Hierarchy' ifTrue: [
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   560
        builder aspectAt:#rootOfClassHierarchy put: (holder := TreeItem new)]
425
cf47d420764a initial checkin
tz
parents:
diff changeset
   561
    ].
cf47d420764a initial checkin
tz
parents:
diff changeset
   562
    ^ holder
cf47d420764a initial checkin
tz
parents:
diff changeset
   563
cf47d420764a initial checkin
tz
parents:
diff changeset
   564
cf47d420764a initial checkin
tz
parents:
diff changeset
   565
!
cf47d420764a initial checkin
tz
parents:
diff changeset
   566
906
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   567
selectionOfClassCategories
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   568
    "returns the value holder for the selected class of the class tree list"
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   569
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   570
    |holder|           
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   571
    (holder := builder bindingAt:#selectionOfClassCategories) isNil ifTrue:[
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   572
        builder aspectAt:#selectionOfClassCategories put:(holder :=  ValueHolder new). 
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   573
    ].
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   574
    ^ holder
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   575
!
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   576
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   577
selectionOfClassHierarchy
771
905c3b4ba565 revised
tz
parents: 769
diff changeset
   578
    "returns the value holder for the selected class of the class tree list"
425
cf47d420764a initial checkin
tz
parents:
diff changeset
   579
906
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   580
    |holder|           
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   581
    (holder := builder bindingAt:#selectionOfClassHierarchy) isNil ifTrue:[
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   582
        builder aspectAt:#selectionOfClassHierarchy put:(holder :=  ValueHolder new). 
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   583
    ].
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   584
    ^ holder
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   585
!
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   586
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   587
selectionOfClassPresentation
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   588
    "returns the value holder for the selected class presentation"
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   589
425
cf47d420764a initial checkin
tz
parents:
diff changeset
   590
    |holder|
1034
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   591
906
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   592
    (holder := builder bindingAt:#selectionOfClassPresentation) isNil ifTrue:[
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   593
        builder aspectAt:#selectionOfClassPresentation put:(holder :=  RadioButtonGroup with: (ClassPresentation := ClassPresentation ? #'Class Categories')).
1329
a38c2e29d1fb use onChangeEvaluate:
Claus Gittinger <cg@exept.de>
parents: 1184
diff changeset
   594
        holder onChangeEvaluate: 
1034
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   595
            [
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   596
                 |hv comp newRoot|
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   597
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   598
                 hv := holder value.
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   599
                 ClassPresentation := hv.
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   600
                 hv = #'Class Hierarchy' ifTrue:[
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   601
                      comp := builder componentAt: #listOfClassHierarchyView.
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   602
                      newRoot := self rootOfClassHierarchy.  
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   603
                 ] ifFalse: [
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   604
                      comp := builder componentAt: #listOfClassCategoriesView.
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   605
                      newRoot := self rootOfClassCategories. 
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   606
                 ].
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   607
                 comp root:newRoot.
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   608
                 comp raise. 
1986
5cb77205ce00 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1978
diff changeset
   609
                 classSelectionBlock value: self classNameHolder value
1034
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   610
            ]
425
cf47d420764a initial checkin
tz
parents:
diff changeset
   611
    ].
cf47d420764a initial checkin
tz
parents:
diff changeset
   612
    ^ holder
cf47d420764a initial checkin
tz
parents:
diff changeset
   613
!
cf47d420764a initial checkin
tz
parents:
diff changeset
   614
771
905c3b4ba565 revised
tz
parents: 769
diff changeset
   615
selectionOfResourceMethod
905c3b4ba565 revised
tz
parents: 769
diff changeset
   616
    "returns the value holder for the selected resource method of the resource method list"
425
cf47d420764a initial checkin
tz
parents:
diff changeset
   617
cf47d420764a initial checkin
tz
parents:
diff changeset
   618
    |holder|
771
905c3b4ba565 revised
tz
parents: 769
diff changeset
   619
    (holder := builder bindingAt:#selectionOfResourceMethod) isNil ifTrue:[
905c3b4ba565 revised
tz
parents: 769
diff changeset
   620
	builder aspectAt:#selectionOfResourceMethod put:(holder :=  '' asValue).
425
cf47d420764a initial checkin
tz
parents:
diff changeset
   621
    ].
cf47d420764a initial checkin
tz
parents:
diff changeset
   622
    ^ holder
cf47d420764a initial checkin
tz
parents:
diff changeset
   623
!
cf47d420764a initial checkin
tz
parents:
diff changeset
   624
467
ddb605aaf94a class retrieval support added
tz
parents: 463
diff changeset
   625
valueOfClassName
2309
777065a9ff59 Mark obsolete methods
Stefan Vogel <sv@exept.de>
parents: 2038
diff changeset
   626
    <resource: #obsolete>
771
905c3b4ba565 revised
tz
parents: 769
diff changeset
   627
    "returns the value holder for the name of the class"
467
ddb605aaf94a class retrieval support added
tz
parents: 463
diff changeset
   628
1986
5cb77205ce00 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1978
diff changeset
   629
    self obsoleteMethodWarning:'stupid name - use #classNameHolder'.
5cb77205ce00 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1978
diff changeset
   630
    ^ self classNameHolder
467
ddb605aaf94a class retrieval support added
tz
parents: 463
diff changeset
   631
!
ddb605aaf94a class retrieval support added
tz
parents: 463
diff changeset
   632
771
905c3b4ba565 revised
tz
parents: 769
diff changeset
   633
valueOfResourceSelector
2309
777065a9ff59 Mark obsolete methods
Stefan Vogel <sv@exept.de>
parents: 2038
diff changeset
   634
    <resource: #obsolete>
771
905c3b4ba565 revised
tz
parents: 769
diff changeset
   635
    "returns the value holder for the name of the selector"
425
cf47d420764a initial checkin
tz
parents:
diff changeset
   636
1986
5cb77205ce00 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1978
diff changeset
   637
    self obsoleteMethodWarning:'stupid name - use #resourceSelectorHolder'.
5cb77205ce00 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1978
diff changeset
   638
    ^ self resourceSelectorHolder
425
cf47d420764a initial checkin
tz
parents:
diff changeset
   639
! !
cf47d420764a initial checkin
tz
parents:
diff changeset
   640
1720
c600b2ece5a9 method category rename
Claus Gittinger <cg@exept.de>
parents: 1716
diff changeset
   641
!ResourceSelectionBrowser methodsFor:'callbacks-class list'!
632
930b778d5e28 uses now dynamic tree items
tz
parents: 623
diff changeset
   642
906
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   643
treeViewClassCategoryChildren
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   644
    "returns the children for the contents (class) of aTreeItem as a block"
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   645
1034
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   646
    "/ cg: tz's algorithm was very-very slow, 
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   647
    "/ (it enumerated classes hundreds of times,
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   648
    "/  leading to a square runtime behavior
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   649
    "/  - i.e. very slow scrolling )
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   650
    "/ Speed up things by caching facts while enumerating
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   651
    "/ classes once only.
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   652
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   653
    |allClasses topClass childrenPerCategory privateClasses|
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   654
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   655
    topClass := self treeViewClassHierarchyContents.
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   656
    allClasses := topClass withAllSubclasses.
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   657
    privateClasses := IdentitySet new.
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   658
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   659
    childrenPerCategory := Dictionary new.
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   660
    allClasses do:[:cls |
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   661
        |cat set|
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   662
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   663
        cls isPrivate ifFalse:[
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   664
            cat := cls category.
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   665
            set := childrenPerCategory at:cat ifAbsent:nil.
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   666
            set isNil ifTrue:[
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   667
                childrenPerCategory at:cat put:(set := IdentitySet new).
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   668
            ].
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   669
            set add:cls
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   670
        ] ifTrue:[
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   671
            privateClasses add:cls
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   672
        ]
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   673
    ].
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   674
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   675
    ^ [:aTreeItem|
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   676
        |cont children initialContents setOfCategories itemCategory setOfClasses|
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   677
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   678
        (cont := aTreeItem contents) isBehavior ifTrue:[
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   679
           children := privateClasses select:[:cls | cls owningClass == aTreeItem contents].
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   680
           children := children asSortedCollection: [:c1 :c2| c1 name <= c2 name].
1732
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   681
           "/ children := children collect: [:child| TreeItem name: child name , ' (', child superclass name, ')' contents: child]
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   682
           children := children collect: [:child| TreeItem name:(child name) contents: child]
1034
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   683
        ] ifFalse:[
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   684
            cont size == 0 ifTrue:[
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   685
                setOfCategories := childrenPerCategory keys.
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   686
                children := setOfCategories asSortedCollection.
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   687
                children := children collect: [:nm | TreeItem name:nm contents:#Category]
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   688
            ] ifFalse:[
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   689
                cont == #Category ifTrue:[
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   690
                    itemCategory := aTreeItem name.
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   691
                    setOfClasses := childrenPerCategory at:itemCategory ifAbsent:[Set new].
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   692
                    children := setOfClasses asOrderedCollection sort:[:c1 :c2 | c1 name <= c2 name].
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   693
                    children := children collect:[:child | TreeItem name:child name contents:child].
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   694
                ] ifFalse:[
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   695
                    "/ huh ?
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   696
                    children := OrderedCollection new.
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   697
                ]
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   698
            ].
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   699
        ].
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   700
        children
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   701
    ]
906
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   702
!
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   703
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   704
treeViewClassCategoryIcon
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   705
    "returns the icon for aTreeItem as a block"
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   706
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   707
    ^self class treeViewClassHierarchyIcon
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   708
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   709
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   710
!
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   711
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   712
treeViewClassHierarchyContents
771
905c3b4ba565 revised
tz
parents: 769
diff changeset
   713
    "returns the contents of the root of the class tree list"
632
930b778d5e28 uses now dynamic tree items
tz
parents: 623
diff changeset
   714
802
460dc3bb9cf9 dont send 'Smalltalk at:nil'
Claus Gittinger <cg@exept.de>
parents: 789
diff changeset
   715
    |cls|
632
930b778d5e28 uses now dynamic tree items
tz
parents: 623
diff changeset
   716
802
460dc3bb9cf9 dont send 'Smalltalk at:nil'
Claus Gittinger <cg@exept.de>
parents: 789
diff changeset
   717
    resourceSuperclass notNil ifTrue:[
1978
c4334704dc58 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1920
diff changeset
   718
        cls := Smalltalk classNamed: resourceSuperclass.
802
460dc3bb9cf9 dont send 'Smalltalk at:nil'
Claus Gittinger <cg@exept.de>
parents: 789
diff changeset
   719
    ].
1034
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   720
    cls notNil ifTrue:[^ cls].
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   721
    ^ self class treeViewClassHierarchyContents
771
905c3b4ba565 revised
tz
parents: 769
diff changeset
   722
!
905c3b4ba565 revised
tz
parents: 769
diff changeset
   723
905c3b4ba565 revised
tz
parents: 769
diff changeset
   724
validateDoubleClick: aTreeItem
905c3b4ba565 revised
tz
parents: 769
diff changeset
   725
    "returns whether a class may be selected"
905c3b4ba565 revised
tz
parents: 769
diff changeset
   726
1034
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   727
    |cont|
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   728
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   729
    ^ (cont := aTreeItem contents) ~= '' 
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   730
      and: [cont ~~ self treeViewClassHierarchyContents]       
771
905c3b4ba565 revised
tz
parents: 769
diff changeset
   731
905c3b4ba565 revised
tz
parents: 769
diff changeset
   732
905c3b4ba565 revised
tz
parents: 769
diff changeset
   733
632
930b778d5e28 uses now dynamic tree items
tz
parents: 623
diff changeset
   734
! !
930b778d5e28 uses now dynamic tree items
tz
parents: 623
diff changeset
   735
1720
c600b2ece5a9 method category rename
Claus Gittinger <cg@exept.de>
parents: 1716
diff changeset
   736
!ResourceSelectionBrowser methodsFor:'callbacks-user'!
425
cf47d420764a initial checkin
tz
parents:
diff changeset
   737
771
905c3b4ba565 revised
tz
parents: 769
diff changeset
   738
classSelected
905c3b4ba565 revised
tz
parents: 769
diff changeset
   739
    "after a class selection, read the allowed resource methods of the selected class"
730
238d796c5da0 own #iconOn: method implememted
tz
parents: 727
diff changeset
   740
1732
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   741
    |sel|
906
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   742
1919
7471cdbd3205 update fix
Claus Gittinger <cg@exept.de>
parents: 1835
diff changeset
   743
    ClassPresentation = #'Class Hierarchy'
1732
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   744
"/        ifTrue:  [sel := self selectionOfClassHierarchy value]
1919
7471cdbd3205 update fix
Claus Gittinger <cg@exept.de>
parents: 1835
diff changeset
   745
        ifFalse: [sel := self selectionOfClassCategories value].
7471cdbd3205 update fix
Claus Gittinger <cg@exept.de>
parents: 1835
diff changeset
   746
7471cdbd3205 update fix
Claus Gittinger <cg@exept.de>
parents: 1835
diff changeset
   747
    sel notNil ifTrue:[
1978
c4334704dc58 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1920
diff changeset
   748
        resourceClass := sel.
1919
7471cdbd3205 update fix
Claus Gittinger <cg@exept.de>
parents: 1835
diff changeset
   749
    ].
1732
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   750
    self updateResourceMethodList.
425
cf47d420764a initial checkin
tz
parents:
diff changeset
   751
!
cf47d420764a initial checkin
tz
parents:
diff changeset
   752
1384
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   753
classSelectionUpdate:clsPattern
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   754
    |foundClass classes|  
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   755
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   756
    clsPattern notNil ifTrue:[
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   757
        foundClass := Smalltalk at:(clsPattern printString asSymbol).
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   758
    ].
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   759
    (foundClass isClass not or:[foundClass name ~= clsPattern])
1732
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   760
    ifTrue: [
1384
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   761
        classes := allClasses select: [:cls| cls name size >= clsPattern size].
1732
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   762
        1 to: clsPattern size do: [:i|    
1384
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   763
             classes := classes select: [:cls| (cls name at: i) == (clsPattern at: i)].
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   764
        ].    
1835
c6b3c9ee5207 Streamline autoloading.
Stefan Vogel <sv@exept.de>
parents: 1751
diff changeset
   765
        foundClass := classes at: 1 ifAbsent:[]. 
1384
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   766
    ].          
1732
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   767
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   768
    foundClass notNil ifTrue: [           
1835
c6b3c9ee5207 Streamline autoloading.
Stefan Vogel <sv@exept.de>
parents: 1751
diff changeset
   769
        foundClass := foundClass autoload.
1978
c4334704dc58 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1920
diff changeset
   770
        resourceClass := foundClass.
1732
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   771
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   772
        ClassPresentation = #'Class Hierarchy' ifTrue: [
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   773
            |searchArgs nonSuperclasses hierItem|
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   774
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   775
            false "foundClass isPrivate"
1384
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   776
                ifFalse: [searchArgs := foundClass withAllSuperclasses reverse]
1978
c4334704dc58 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1920
diff changeset
   777
                ifTrue:  [searchArgs := foundClass owningClass withAllSuperclasses reverse. 
c4334704dc58 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1920
diff changeset
   778
                          searchArgs add: foundClass].                                  
1384
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   779
            (nonSuperclasses := self treeViewClassHierarchyContents allSuperclasses) notNil 
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   780
                ifTrue: [searchArgs := searchArgs reject: [:cls| nonSuperclasses includes: cls]].
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   781
1732
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   782
            hierItem := self rootOfClassHierarchy detectChild:[:child :arg| child contents == arg] arguments:searchArgs.
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   783
            hierItem notNil ifTrue:[
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   784
                self selectionOfClassHierarchy value:hierItem.
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   785
            ].
1835
c6b3c9ee5207 Streamline autoloading.
Stefan Vogel <sv@exept.de>
parents: 1751
diff changeset
   786
        ] ifFalse: [
1732
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   787
            |searchArgs hierItem|
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   788
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   789
            false "foundClass isPrivate"
1384
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   790
                ifTrue:  [searchArgs := Array with: 'Categories' with: foundClass category with: foundClass owningClass name with: foundClass name]
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   791
                ifFalse: [searchArgs := Array with: 'Categories' with: foundClass category with: foundClass name].
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   792
1732
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   793
            hierItem := self rootOfClassCategories detectChild:[:child :arg| (child name upTo: $ ) = arg] arguments:searchArgs.
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   794
            hierItem notNil ifTrue:[
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   795
                self selectionOfClassCategories value: hierItem.
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   796
            ].
1384
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   797
        ].
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   798
    ].
1986
5cb77205ce00 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1978
diff changeset
   799
    self classNameHolder value: clsPattern.
1919
7471cdbd3205 update fix
Claus Gittinger <cg@exept.de>
parents: 1835
diff changeset
   800
    self updateResourceMethodList.
1384
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   801
!
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   802
425
cf47d420764a initial checkin
tz
parents:
diff changeset
   803
resourceDoubleClicked
771
905c3b4ba565 revised
tz
parents: 769
diff changeset
   804
    "after a double click on resource method, accept it and close"
425
cf47d420764a initial checkin
tz
parents:
diff changeset
   805
cf47d420764a initial checkin
tz
parents:
diff changeset
   806
    accept value: true.
1034
3cb196044804 fixed stupid class-enumeration code.
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   807
    self closeRequest
425
cf47d420764a initial checkin
tz
parents:
diff changeset
   808
!
cf47d420764a initial checkin
tz
parents:
diff changeset
   809
cf47d420764a initial checkin
tz
parents:
diff changeset
   810
resourceSelected
771
905c3b4ba565 revised
tz
parents: 769
diff changeset
   811
    "after a click on a resource method, set its selector into the field"
425
cf47d420764a initial checkin
tz
parents:
diff changeset
   812
771
905c3b4ba565 revised
tz
parents: 769
diff changeset
   813
    self selectionOfResourceMethod value notNil
1986
5cb77205ce00 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1978
diff changeset
   814
        ifTrue: [self resourceSelectorHolder value: self selectionOfResourceMethod value selector]
1732
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   815
!
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   816
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   817
updateResourceMethodList
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   818
    "read the allowed resource methods of the selected class"
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   819
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   820
    |class className item|
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   821
1978
c4334704dc58 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1920
diff changeset
   822
    (class := resourceClass) isNil ifTrue:[
1732
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   823
        ClassPresentation = #'Class Hierarchy'
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   824
            ifTrue:  [item := self selectionOfClassHierarchy value ]
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   825
            ifFalse: [item := self selectionOfClassCategories value ].
1978
c4334704dc58 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1920
diff changeset
   826
1732
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   827
        item notNil ifTrue:[
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   828
            className := item name.
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   829
            class := Smalltalk at:className asSymbol
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   830
        ].
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   831
    ].
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   832
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   833
    class isNil ifTrue: [^self].
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   834
2038
dfa6f1e641a7 #updateResourceMethodeList
sr
parents: 2026
diff changeset
   835
    className := class name."/class theNonMetaclass name
1732
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   836
1920
9f246ba60c91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1919
diff changeset
   837
    self withWaitCursorDo:[
1732
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   838
        |newContents|           
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   839
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   840
        resourceTypes isNil ifTrue: [resourceTypes := Method resourceTypes].
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   841
1986
5cb77205ce00 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1978
diff changeset
   842
        self classNameHolder value: className.
1732
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   843
        self class lastSelection: className.
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   844
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   845
        newContents := class class methodDictionary asOrderedCollection 
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   846
                       select: [:m | m resources notNil 
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   847
                                     and: [resourceTypes includes: m resourceType]
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   848
                               ].
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   849
        newContents := newContents sort:[:m1 :m2 | m1 selector < m2 selector].
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   850
        newContents := newContents collect:[:m| (ResourceMethod new method:m)].
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   851
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   852
        self listOfResourceMethods contents:newContents
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   853
                .
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   854
    ]
425
cf47d420764a initial checkin
tz
parents:
diff changeset
   855
! !
cf47d420764a initial checkin
tz
parents:
diff changeset
   856
cf47d420764a initial checkin
tz
parents:
diff changeset
   857
!ResourceSelectionBrowser methodsFor:'instance creation'!
cf47d420764a initial checkin
tz
parents:
diff changeset
   858
1978
c4334704dc58 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1920
diff changeset
   859
openOnSuperclass: aSuperclassOrSymbol andClass:aClassOrClassName andSelector: aSelector withResourceTypes: aResourceTypes
c4334704dc58 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1920
diff changeset
   860
    "opens a ResourceSelectionBrowser; return a Message-object or nil"
425
cf47d420764a initial checkin
tz
parents:
diff changeset
   861
1978
c4334704dc58 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1920
diff changeset
   862
    |selectedClass enteredClassName className cls|
771
905c3b4ba565 revised
tz
parents: 769
diff changeset
   863
517
91ff807d8a23 set resource selection after opening
tz
parents: 504
diff changeset
   864
    resourceMethod := aSelector.
425
cf47d420764a initial checkin
tz
parents:
diff changeset
   865
    resourceTypes := aResourceTypes.
cf47d420764a initial checkin
tz
parents:
diff changeset
   866
    resourceSuperclass := aSuperclassOrSymbol isClass ifTrue: [aSuperclassOrSymbol name] ifFalse: [aSuperclassOrSymbol].
802
460dc3bb9cf9 dont send 'Smalltalk at:nil'
Claus Gittinger <cg@exept.de>
parents: 789
diff changeset
   867
    resourceClass := nil.
460dc3bb9cf9 dont send 'Smalltalk at:nil'
Claus Gittinger <cg@exept.de>
parents: 789
diff changeset
   868
1978
c4334704dc58 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1920
diff changeset
   869
    aClassOrClassName notNil ifTrue:[
c4334704dc58 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1920
diff changeset
   870
        aClassOrClassName isClass ifTrue: [
c4334704dc58 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1920
diff changeset
   871
            cls := aClassOrClassName. 
c4334704dc58 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1920
diff changeset
   872
            resourceClass := aClassOrClassName
c4334704dc58 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1920
diff changeset
   873
        ] ifFalse: [
c4334704dc58 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1920
diff changeset
   874
            cls := Smalltalk classNamed: aClassOrClassName.
c4334704dc58 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1920
diff changeset
   875
            cls notNil ifTrue:[
c4334704dc58 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1920
diff changeset
   876
                resourceClass := cls
802
460dc3bb9cf9 dont send 'Smalltalk at:nil'
Claus Gittinger <cg@exept.de>
parents: 789
diff changeset
   877
            ]
1978
c4334704dc58 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1920
diff changeset
   878
        ]
c4334704dc58 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1920
diff changeset
   879
    ].            
1986
5cb77205ce00 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1978
diff changeset
   880
    self resourceSelectorHolder value:(aSelector ? '').
463
947f89198464 return complete message even if not implemented
tz
parents: 436
diff changeset
   881
    self open.
947f89198464 return complete message even if not implemented
tz
parents: 436
diff changeset
   882
1978
c4334704dc58 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1920
diff changeset
   883
    (selectedClass := self selectionOfClassHierarchy value) isNil ifTrue:[
c4334704dc58 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1920
diff changeset
   884
        (selectedClass := self selectionOfClassCategories value) isNil ifTrue:[
1986
5cb77205ce00 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1978
diff changeset
   885
            (enteredClassName := self classNameHolder value) isNil ifTrue:[
1086
592f0177687e did not look at className in enterField
Claus Gittinger <cg@exept.de>
parents: 1034
diff changeset
   886
                accept value ifTrue:[
592f0177687e did not look at className in enterField
Claus Gittinger <cg@exept.de>
parents: 1034
diff changeset
   887
                    self warn:'No valid class selected/entered'.
592f0177687e did not look at className in enterField
Claus Gittinger <cg@exept.de>
parents: 1034
diff changeset
   888
                ].
592f0177687e did not look at className in enterField
Claus Gittinger <cg@exept.de>
parents: 1034
diff changeset
   889
                ^ nil
592f0177687e did not look at className in enterField
Claus Gittinger <cg@exept.de>
parents: 1034
diff changeset
   890
            ]
592f0177687e did not look at className in enterField
Claus Gittinger <cg@exept.de>
parents: 1034
diff changeset
   891
        ]
592f0177687e did not look at className in enterField
Claus Gittinger <cg@exept.de>
parents: 1034
diff changeset
   892
    ].
693
bb247cc428c3 also return resource selectors from private classes
tz
parents: 689
diff changeset
   893
1978
c4334704dc58 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1920
diff changeset
   894
    className := enteredClassName.    
c4334704dc58 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1920
diff changeset
   895
    className isNil ifTrue:[
c4334704dc58 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1920
diff changeset
   896
        className := selectedClass name
425
cf47d420764a initial checkin
tz
parents:
diff changeset
   897
    ].
1978
c4334704dc58 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1920
diff changeset
   898
    cls := Smalltalk classNamed:className.
c4334704dc58 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1920
diff changeset
   899
    (cls isClass and:[accept value]) ifTrue:[            
1986
5cb77205ce00 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1978
diff changeset
   900
        ^ Method::MethodWhoInfo class:cls selector:(self resourceSelectorHolder value)
1086
592f0177687e did not look at className in enterField
Claus Gittinger <cg@exept.de>
parents: 1034
diff changeset
   901
    ].
592f0177687e did not look at className in enterField
Claus Gittinger <cg@exept.de>
parents: 1034
diff changeset
   902
592f0177687e did not look at className in enterField
Claus Gittinger <cg@exept.de>
parents: 1034
diff changeset
   903
    accept value ifTrue:[
592f0177687e did not look at className in enterField
Claus Gittinger <cg@exept.de>
parents: 1034
diff changeset
   904
        self warn:'No valid class selected/entered'.
592f0177687e did not look at className in enterField
Claus Gittinger <cg@exept.de>
parents: 1034
diff changeset
   905
    ].
592f0177687e did not look at className in enterField
Claus Gittinger <cg@exept.de>
parents: 1034
diff changeset
   906
    ^ nil
802
460dc3bb9cf9 dont send 'Smalltalk at:nil'
Claus Gittinger <cg@exept.de>
parents: 789
diff changeset
   907
460dc3bb9cf9 dont send 'Smalltalk at:nil'
Claus Gittinger <cg@exept.de>
parents: 789
diff changeset
   908
    "Modified: / 22.4.1998 / 14:51:03 / cg"
425
cf47d420764a initial checkin
tz
parents:
diff changeset
   909
! !
cf47d420764a initial checkin
tz
parents:
diff changeset
   910
1716
5ae373f6fef0 method category rename
Claus Gittinger <cg@exept.de>
parents: 1605
diff changeset
   911
!ResourceSelectionBrowser methodsFor:'startup & release'!
425
cf47d420764a initial checkin
tz
parents:
diff changeset
   912
623
c8a99cea56f7 expand selected class node after opening
tz
parents: 619
diff changeset
   913
postBuildWith:aBuilder
771
905c3b4ba565 revised
tz
parents: 769
diff changeset
   914
    "after building and before opening,  
906
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   915
     create a class selection block, an entry completion block for the class name field"
623
c8a99cea56f7 expand selected class node after opening
tz
parents: 619
diff changeset
   916
771
905c3b4ba565 revised
tz
parents: 769
diff changeset
   917
    |classSelection classNameInputField|
906
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   918
     
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   919
    allClasses := self treeViewClassHierarchyContents withAllSubclasses reject: [:cls| cls isPrivate].
1978
c4334704dc58 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1920
diff changeset
   920
    classSelection := resourceClass isNil ifTrue:[nil] ifFalse:[resourceClass name]. 
802
460dc3bb9cf9 dont send 'Smalltalk at:nil'
Claus Gittinger <cg@exept.de>
parents: 789
diff changeset
   921
1978
c4334704dc58 code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 1920
diff changeset
   922
    (classSelection isNil or:[ (Smalltalk classNamed: classSelection) isNil]) 
689
ff099c344dd6 try to find out convenient class selection
tz
parents: 680
diff changeset
   923
        ifTrue: [classSelection :=  self class lastSelection].
1732
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   924
"/    (classSelection isNil or:[Smalltalk at: classSelection]) isNil 
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   925
"/        ifTrue: [classSelection :=  self treeViewContents].
802
460dc3bb9cf9 dont send 'Smalltalk at:nil'
Claus Gittinger <cg@exept.de>
parents: 789
diff changeset
   926
1384
ff417bf5f8d8 bug fix - update tree-selection when entering a className
Claus Gittinger <cg@exept.de>
parents: 1329
diff changeset
   927
    classSelectionBlock := [:clsPattern | self classSelectionUpdate:clsPattern].
1986
5cb77205ce00 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1978
diff changeset
   928
    self classNameHolder value:classSelection.  
771
905c3b4ba565 revised
tz
parents: 769
diff changeset
   929
1920
9f246ba60c91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1919
diff changeset
   930
    (classNameInputField := builder componentAt: #classNameInputField) 
9f246ba60c91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1919
diff changeset
   931
        entryCompletionBlock:
9f246ba60c91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1919
diff changeset
   932
            [:value|
9f246ba60c91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1919
diff changeset
   933
                |s what m|
9f246ba60c91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1919
diff changeset
   934
9f246ba60c91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1919
diff changeset
   935
                s := classNameInputField contents withoutSpaces.
9f246ba60c91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1919
diff changeset
   936
                what := Smalltalk classnameCompletion:s inEnvironment:Smalltalk.
9f246ba60c91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1919
diff changeset
   937
                classNameInputField contents:what first.
9f246ba60c91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1919
diff changeset
   938
                (what at:2) size ~~ 1 ifTrue:[
9f246ba60c91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1919
diff changeset
   939
                    classNameInputField device beep
9f246ba60c91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1919
diff changeset
   940
                ]
9f246ba60c91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1919
diff changeset
   941
"/                |what oldClassName|
9f246ba60c91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1919
diff changeset
   942
"/                oldClassName := classNameInputField contents.
9f246ba60c91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1919
diff changeset
   943
"/                what := Smalltalk classnameCompletion: value withoutSpaces.
9f246ba60c91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1919
diff changeset
   944
"/                classNameInputField contents:what first.
9f246ba60c91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1919
diff changeset
   945
"/                oldClassName = classNameInputField contents ifTrue:[classNameInputField flash].
9f246ba60c91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1919
diff changeset
   946
"/                classSelectionBlock value: classNameInputField contents
9f246ba60c91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1919
diff changeset
   947
            ].
771
905c3b4ba565 revised
tz
parents: 769
diff changeset
   948
1986
5cb77205ce00 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 1978
diff changeset
   949
    classSelectionBlock value: self classNameHolder value.
1732
f6fb9ac10ac5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1725
diff changeset
   950
    self updateResourceMethodList.
906
8be0b8d1a2fd class presentation in categories added
tz
parents: 867
diff changeset
   951
    self selectionOfResourceMethod value: (self listOfResourceMethods detect: [:m| m selector == resourceMethod] ifNone: nil).
909
c0bd0d9103e3 class presentation in categories added (3)
tz
parents: 907
diff changeset
   952
c0bd0d9103e3 class presentation in categories added (3)
tz
parents: 907
diff changeset
   953
    ^super postBuildWith:aBuilder
910
7510ea8c9aeb class presentation in categories added (4)
tz
parents: 909
diff changeset
   954
!
7510ea8c9aeb class presentation in categories added (4)
tz
parents: 909
diff changeset
   955
7510ea8c9aeb class presentation in categories added (4)
tz
parents: 909
diff changeset
   956
postOpenWith:aBuilder
7510ea8c9aeb class presentation in categories added (4)
tz
parents: 909
diff changeset
   957
    "after opening and if turned on make hierarchy view visible"
7510ea8c9aeb class presentation in categories added (4)
tz
parents: 909
diff changeset
   958
7510ea8c9aeb class presentation in categories added (4)
tz
parents: 909
diff changeset
   959
    ClassPresentation = #'Class Hierarchy'
7510ea8c9aeb class presentation in categories added (4)
tz
parents: 909
diff changeset
   960
        ifTrue: [(builder componentAt: #listOfClassHierarchyView) raise].
7510ea8c9aeb class presentation in categories added (4)
tz
parents: 909
diff changeset
   961
2026
df5b0b3902de *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1986
diff changeset
   962
    super postOpenWith:aBuilder
425
cf47d420764a initial checkin
tz
parents:
diff changeset
   963
! !
cf47d420764a initial checkin
tz
parents:
diff changeset
   964
771
905c3b4ba565 revised
tz
parents: 769
diff changeset
   965
!ResourceSelectionBrowser::ResourceMethod methodsFor:'accessing'!
523
eec155f1b037 resource methods are now put own rows
tz
parents: 517
diff changeset
   966
eec155f1b037 resource methods are now put own rows
tz
parents: 517
diff changeset
   967
iconOn:aGC
771
905c3b4ba565 revised
tz
parents: 769
diff changeset
   968
    "registers and returns an icon indicating the resource type"
523
eec155f1b037 resource methods are now put own rows
tz
parents: 517
diff changeset
   969
1524
4efbd088b787 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 1493
diff changeset
   970
    |cls sel image imageKey|
4efbd088b787 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 1493
diff changeset
   971
730
238d796c5da0 own #iconOn: method implememted
tz
parents: 727
diff changeset
   972
    self resourceType isNil ifTrue: [^nil].
1524
4efbd088b787 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 1493
diff changeset
   973
4efbd088b787 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 1493
diff changeset
   974
    icon isNil ifTrue:[
1412
61f02e883f48 checkin from browser
frank
parents: 1404
diff changeset
   975
        ((self resourceType = #image) or: [resourceType = #fileImage])
1524
4efbd088b787 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 1493
diff changeset
   976
        ifTrue:[  
4efbd088b787 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 1493
diff changeset
   977
            cls := method mclass theNonMetaclass.
4efbd088b787 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 1493
diff changeset
   978
            sel := method selector.
4efbd088b787 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 1493
diff changeset
   979
        ] ifFalse: [
1412
61f02e883f48 checkin from browser
frank
parents: 1404
diff changeset
   980
            cls := SystemBrowser.
61f02e883f48 checkin from browser
frank
parents: 1404
diff changeset
   981
            sel := (resourceType, 'Icon') asSymbol.
61f02e883f48 checkin from browser
frank
parents: 1404
diff changeset
   982
        ].
61f02e883f48 checkin from browser
frank
parents: 1404
diff changeset
   983
        imageKey := (cls name, sel) asSymbol.
61f02e883f48 checkin from browser
frank
parents: 1404
diff changeset
   984
        (icon := aGC registeredImageAt: imageKey) isNil
1524
4efbd088b787 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 1493
diff changeset
   985
        ifTrue: [       
1412
61f02e883f48 checkin from browser
frank
parents: 1404
diff changeset
   986
            image := cls perform: sel.
1524
4efbd088b787 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 1493
diff changeset
   987
            (image extent y > 18) ifTrue: [         
1412
61f02e883f48 checkin from browser
frank
parents: 1404
diff changeset
   988
                image := image magnifiedBy: 18/image extent y
61f02e883f48 checkin from browser
frank
parents: 1404
diff changeset
   989
            ].
61f02e883f48 checkin from browser
frank
parents: 1404
diff changeset
   990
            aGC registerImage: image key: imageKey.
61f02e883f48 checkin from browser
frank
parents: 1404
diff changeset
   991
            icon := aGC registeredImageAt: imageKey.
61f02e883f48 checkin from browser
frank
parents: 1404
diff changeset
   992
        ].
730
238d796c5da0 own #iconOn: method implememted
tz
parents: 727
diff changeset
   993
    ].
523
eec155f1b037 resource methods are now put own rows
tz
parents: 517
diff changeset
   994
    ^icon
1524
4efbd088b787 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 1493
diff changeset
   995
4efbd088b787 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 1493
diff changeset
   996
    "Modified: / 5.11.2001 / 16:48:35 / cg"
523
eec155f1b037 resource methods are now put own rows
tz
parents: 517
diff changeset
   997
!
eec155f1b037 resource methods are now put own rows
tz
parents: 517
diff changeset
   998
eec155f1b037 resource methods are now put own rows
tz
parents: 517
diff changeset
   999
method: aMethod
771
905c3b4ba565 revised
tz
parents: 769
diff changeset
  1000
    "sets aMethod"
523
eec155f1b037 resource methods are now put own rows
tz
parents: 517
diff changeset
  1001
eec155f1b037 resource methods are now put own rows
tz
parents: 517
diff changeset
  1002
    method := aMethod
eec155f1b037 resource methods are now put own rows
tz
parents: 517
diff changeset
  1003
!
eec155f1b037 resource methods are now put own rows
tz
parents: 517
diff changeset
  1004
eec155f1b037 resource methods are now put own rows
tz
parents: 517
diff changeset
  1005
resourceType
771
905c3b4ba565 revised
tz
parents: 769
diff changeset
  1006
    "returns resourceType"
523
eec155f1b037 resource methods are now put own rows
tz
parents: 517
diff changeset
  1007
eec155f1b037 resource methods are now put own rows
tz
parents: 517
diff changeset
  1008
    resourceType isNil ifTrue: [resourceType := method resourceType].
eec155f1b037 resource methods are now put own rows
tz
parents: 517
diff changeset
  1009
    ^resourceType
eec155f1b037 resource methods are now put own rows
tz
parents: 517
diff changeset
  1010
!
eec155f1b037 resource methods are now put own rows
tz
parents: 517
diff changeset
  1011
eec155f1b037 resource methods are now put own rows
tz
parents: 517
diff changeset
  1012
selector
771
905c3b4ba565 revised
tz
parents: 769
diff changeset
  1013
    "returns selector"
523
eec155f1b037 resource methods are now put own rows
tz
parents: 517
diff changeset
  1014
eec155f1b037 resource methods are now put own rows
tz
parents: 517
diff changeset
  1015
    selector isNil ifTrue: [selector := method who methodSelector].
eec155f1b037 resource methods are now put own rows
tz
parents: 517
diff changeset
  1016
    ^selector
eec155f1b037 resource methods are now put own rows
tz
parents: 517
diff changeset
  1017
! !
eec155f1b037 resource methods are now put own rows
tz
parents: 517
diff changeset
  1018
425
cf47d420764a initial checkin
tz
parents:
diff changeset
  1019
!ResourceSelectionBrowser class methodsFor:'documentation'!
cf47d420764a initial checkin
tz
parents:
diff changeset
  1020
cf47d420764a initial checkin
tz
parents:
diff changeset
  1021
version
cf47d420764a initial checkin
tz
parents:
diff changeset
  1022
    ^ '$Header$'
cf47d420764a initial checkin
tz
parents:
diff changeset
  1023
! !