TraitsInspectorView.st
author Stefan Vogel <sv@exept.de>
Fri, 17 May 2019 17:11:44 +0200
changeset 18767 0478d93cdb75
parent 8974 17e9a6c5606d
child 12123 4bde08cebd48
permissions -rw-r--r--
#REFACTORING by stefan Sanitize BlockValues class: Tools::Inspector2 changed: #toolbarBackgroundHolder
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8974
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
 COPYRIGHT (c) 2009 by eXept Software AG
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
              All Rights Reserved
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
 This software is furnished under a license and may be used
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
 hereby transferred.
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
"
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
"{ Package: 'stx:libtool' }"
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
SmalltalkInspectorView subclass:#TraitsInspectorView
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
	instanceVariableNames:''
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
	classVariableNames:''
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	poolDictionaries:''
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	category:'Interface-Inspector'
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
!
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
!TraitsInspectorView class methodsFor:'documentation'!
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
copyright
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
"
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
 COPYRIGHT (c) 2009 by eXept Software AG
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
              All Rights Reserved
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
 This software is furnished under a license and may be used
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
 only in accordance with the terms of that license and with the
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
 inclusion of the above copyright notice.   This software may not
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
 be provided or otherwise made available to, or used by, any
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
 other person.  No title to or ownership of the software is
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
 hereby transferred.
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
"
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
!
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
documentation
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
"
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
    same as a smalltalk inspector, but filters only traits
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
    [author:]
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
        Claus Gittinger
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
"
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
! !
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
!TraitsInspectorView methodsFor:'private'!
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
indexList
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
    "redefined to only show class variables"
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
    keys := OrderedCollection new.
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
    inspectedObject keysAndValuesDo:[:k :v |
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
                                v isTrait ifTrue:[
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
                                    keys add:k
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
                                ]
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
                           ].
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
    keys := keys asSortedCollection:[:a :b | a displayString < b displayString].
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
    ^ keys
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
! !
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
!TraitsInspectorView class methodsFor:'documentation'!
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
version_CVS
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
    ^ '$Header: /cvs/stx/stx/libtool/TraitsInspectorView.st,v 1.1 2009-10-12 20:00:25 cg Exp $'
17e9a6c5606d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
! !