Tools_NavigatorModel.st
author Claus Gittinger <cg@exept.de>
Wed, 20 Jul 2011 18:30:28 +0200
changeset 10358 7ffd4e4a8346
parent 10248 3237dc7fbfb8
child 10359 cd93f3dff257
permissions -rw-r--r--
added: #nameListEntryForFullyCovered #nameListEntryForPartiallyCovered #nameListEntryForUncovered #nameListEntryForpartiallyCovered
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
 COPYRIGHT (c) 2000 by eXept Software AG
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
	      All Rights Reserved
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
 This software is furnished under a license and may be used
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
 hereby transferred.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
"
5592
d9730a8d7c52 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5591
diff changeset
    12
"{ Package: 'stx:libtool' }"
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
"{ NameSpace: Tools }"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
ApplicationModel subclass:#NavigatorModel
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	instanceVariableNames:''
8695
9c76f55700a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7488
diff changeset
    18
	classVariableNames:'AllEntry SuperSendEntry UncommentedEntry'
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
	poolDictionaries:''
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
	category:'Interface-Browsers-New'
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
!NavigatorModel class methodsFor:'documentation'!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
copyright
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
 COPYRIGHT (c) 2000 by eXept Software AG
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
	      All Rights Reserved
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
 This software is furnished under a license and may be used
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
 only in accordance with the terms of that license and with the
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
 inclusion of the above copyright notice.   This software may not
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
 be provided or otherwise made available to, or used by, any
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
 other person.  No title to or ownership of the software is
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
 hereby transferred.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
! !
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
!NavigatorModel class methodsFor:'initialization'!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
initialize
8695
9c76f55700a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7488
diff changeset
    42
    AllEntry := '* all *'.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
    "Created: / 24.2.2000 / 13:41:29 / cg"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
! !
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
!NavigatorModel class methodsFor:'defaults'!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
8754
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
    49
isPseudoCategory:cat
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
    50
    ^ cat = self nameListEntryForChanged
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
    51
    or:[ cat = self nameListEntryForUndocumented
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
    52
    or:[ cat = self nameListEntryForUnloaded
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
    53
    or:[ cat = self nameListEntryForALL ]]]
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
    54
!
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
    55
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
    56
isPseudoProtocol:protocol
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
    57
    ^ protocol = self nameListEntryForObsolete
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
    58
    or:[ protocol = self nameListEntryForSuperSend
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
    59
    or:[ protocol = self nameListEntryForUncommented ]]
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
    60
!
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
    61
7058
77a6998a37a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5592
diff changeset
    62
markForBeingInChangeList
77a6998a37a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5592
diff changeset
    63
    ^ ' *'
77a6998a37a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5592
diff changeset
    64
77a6998a37a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5592
diff changeset
    65
    "Created: / 29-08-2006 / 10:26:05 / cg"
77a6998a37a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5592
diff changeset
    66
!
77a6998a37a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5592
diff changeset
    67
10248
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
    68
markForBeingManagedBySVN: package
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
    69
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
    70
    | repo branch mark |    
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
    71
    self hasSubversionSupport ifFalse:[^''].
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
    72
    package = PackageId noProjectID ifTrue:[^''].
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
    73
    
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
    74
    repo := (Smalltalk at:#SVN::RepositoryManager) current 
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
    75
                repositoryForPackage: package onlyFromCache: true.
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
    76
    repo ifNil:[^''].
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
    77
    mark := ' [SVN]'.
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
    78
    branch := repo workingCopy branchOrNil.
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
    79
    branch ifNotNil:[mark := ' [SVN: ', branch path,']'].
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
    80
    ^mark asText colorizeAllWith: Color gray
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
    81
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
    82
    "Created: / 06-04-2010 / 11:23:27 / Jan Vrany <jan.vrany@fit.cvut.cz>"
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
    83
!
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
    84
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
    85
markForBeingManagedBySVN: package branch: branch
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
    86
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
    87
    | mark |
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
    88
    mark := branch 
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
    89
                ifNil:
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
    90
                    [' [SVN]']
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
    91
                ifNotNil:
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
    92
                    [' [SVN: ',branch,']'].
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
    93
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
    94
    ^mark asText colorizeAllWith: Color gray.
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
    95
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
    96
    "Created: / 14-12-2010 / 15:56:23 / Jan Vrany <jan.vrany@fit.cvut.cz>"
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
    97
!
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
    98
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    99
nameListEntryForALL
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   100
    ^ AllEntry ? '* all *'
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   101
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   102
    "Created: / 24.2.2000 / 13:39:10 / cg"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   103
    "Modified: / 25.2.2000 / 21:18:30 / cg"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   104
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   105
8737
18451bc9f48b + pseudo entries
Claus Gittinger <cg@exept.de>
parents: 8732
diff changeset
   106
nameListEntryForALLWithCount
18451bc9f48b + pseudo entries
Claus Gittinger <cg@exept.de>
parents: 8732
diff changeset
   107
    ^ '* all (%1) *'
18451bc9f48b + pseudo entries
Claus Gittinger <cg@exept.de>
parents: 8732
diff changeset
   108
!
18451bc9f48b + pseudo entries
Claus Gittinger <cg@exept.de>
parents: 8732
diff changeset
   109
18451bc9f48b + pseudo entries
Claus Gittinger <cg@exept.de>
parents: 8732
diff changeset
   110
nameListEntryForBookmarked
18451bc9f48b + pseudo entries
Claus Gittinger <cg@exept.de>
parents: 8732
diff changeset
   111
    ^ '* bookmarked (%1) *'
18451bc9f48b + pseudo entries
Claus Gittinger <cg@exept.de>
parents: 8732
diff changeset
   112
!
18451bc9f48b + pseudo entries
Claus Gittinger <cg@exept.de>
parents: 8732
diff changeset
   113
18451bc9f48b + pseudo entries
Claus Gittinger <cg@exept.de>
parents: 8732
diff changeset
   114
nameListEntryForChanged
18451bc9f48b + pseudo entries
Claus Gittinger <cg@exept.de>
parents: 8732
diff changeset
   115
    ^ '* changed *'
18451bc9f48b + pseudo entries
Claus Gittinger <cg@exept.de>
parents: 8732
diff changeset
   116
!
18451bc9f48b + pseudo entries
Claus Gittinger <cg@exept.de>
parents: 8732
diff changeset
   117
18451bc9f48b + pseudo entries
Claus Gittinger <cg@exept.de>
parents: 8732
diff changeset
   118
nameListEntryForChangedWithCount
18451bc9f48b + pseudo entries
Claus Gittinger <cg@exept.de>
parents: 8732
diff changeset
   119
    ^ '* changed (%1) *'
18451bc9f48b + pseudo entries
Claus Gittinger <cg@exept.de>
parents: 8732
diff changeset
   120
!
18451bc9f48b + pseudo entries
Claus Gittinger <cg@exept.de>
parents: 8732
diff changeset
   121
8732
d89357e795a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8722
diff changeset
   122
nameListEntryForDocumentation
d89357e795a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8722
diff changeset
   123
    ^ '* documentation (%1) *'
d89357e795a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8722
diff changeset
   124
!
d89357e795a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8722
diff changeset
   125
8929
Claus Gittinger <cg@exept.de>
parents: 8866
diff changeset
   126
nameListEntryForExtensions
Claus Gittinger <cg@exept.de>
parents: 8866
diff changeset
   127
    ^ '* extensions (%1) *'
Claus Gittinger <cg@exept.de>
parents: 8866
diff changeset
   128
!
Claus Gittinger <cg@exept.de>
parents: 8866
diff changeset
   129
10248
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
   130
nameListEntryForFailedTests
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
   131
    ^ '* failed tests (%1) *'
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
   132
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
   133
    "Created: / 08-03-2010 / 18:26:37 / Jan Vrany <jan.vrany@fit.cvut.cz>"
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
   134
!
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
   135
10358
Claus Gittinger <cg@exept.de>
parents: 10248
diff changeset
   136
nameListEntryForFullyCovered
Claus Gittinger <cg@exept.de>
parents: 10248
diff changeset
   137
    ^ '* covered (%1) *'
Claus Gittinger <cg@exept.de>
parents: 10248
diff changeset
   138
Claus Gittinger <cg@exept.de>
parents: 10248
diff changeset
   139
    "Created: / 20-07-2011 / 18:20:53 / cg"
Claus Gittinger <cg@exept.de>
parents: 10248
diff changeset
   140
!
Claus Gittinger <cg@exept.de>
parents: 10248
diff changeset
   141
8866
c4678ec9944b added: #nameListEntryForLong
Claus Gittinger <cg@exept.de>
parents: 8754
diff changeset
   142
nameListEntryForLong
c4678ec9944b added: #nameListEntryForLong
Claus Gittinger <cg@exept.de>
parents: 8754
diff changeset
   143
    ^ '* long (%1) *'
c4678ec9944b added: #nameListEntryForLong
Claus Gittinger <cg@exept.de>
parents: 8754
diff changeset
   144
!
c4678ec9944b added: #nameListEntryForLong
Claus Gittinger <cg@exept.de>
parents: 8754
diff changeset
   145
9087
43da2b44e13b added: #nameListEntryForMustBeRedefinedInSubclass
Claus Gittinger <cg@exept.de>
parents: 9026
diff changeset
   146
nameListEntryForMustBeRedefinedInSubclass
43da2b44e13b added: #nameListEntryForMustBeRedefinedInSubclass
Claus Gittinger <cg@exept.de>
parents: 9026
diff changeset
   147
    ^ '* must be redefined (%1) *'
43da2b44e13b added: #nameListEntryForMustBeRedefinedInSubclass
Claus Gittinger <cg@exept.de>
parents: 9026
diff changeset
   148
!
43da2b44e13b added: #nameListEntryForMustBeRedefinedInSubclass
Claus Gittinger <cg@exept.de>
parents: 9026
diff changeset
   149
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   150
nameListEntryForNILCategory
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   151
    ^ '* no category *'
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   152
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   153
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   154
nameListEntryForNonStatic
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   155
    ^ '* instance *'
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   156
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   157
8719
02158918feb2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8695
diff changeset
   158
nameListEntryForObsolete
8722
a1ce8e925f55 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8719
diff changeset
   159
    ^ '* obsolete (%1) *'
8719
02158918feb2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8695
diff changeset
   160
!
02158918feb2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8695
diff changeset
   161
8929
Claus Gittinger <cg@exept.de>
parents: 8866
diff changeset
   162
nameListEntryForOverride
Claus Gittinger <cg@exept.de>
parents: 8866
diff changeset
   163
    ^ '* override (%1) *'
Claus Gittinger <cg@exept.de>
parents: 8866
diff changeset
   164
!
Claus Gittinger <cg@exept.de>
parents: 8866
diff changeset
   165
10358
Claus Gittinger <cg@exept.de>
parents: 10248
diff changeset
   166
nameListEntryForPartiallyCovered
Claus Gittinger <cg@exept.de>
parents: 10248
diff changeset
   167
    ^ '* partially covered (%1) *'
Claus Gittinger <cg@exept.de>
parents: 10248
diff changeset
   168
Claus Gittinger <cg@exept.de>
parents: 10248
diff changeset
   169
    "Created: / 20-07-2011 / 18:21:05 / cg"
Claus Gittinger <cg@exept.de>
parents: 10248
diff changeset
   170
!
Claus Gittinger <cg@exept.de>
parents: 10248
diff changeset
   171
10248
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
   172
nameListEntryForPassedTests
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
   173
    ^ '* passed tests (%1) *'
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
   174
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
   175
    "Created: / 08-03-2010 / 18:26:53 / Jan Vrany <jan.vrany@fit.cvut.cz>"
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
   176
!
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
   177
8929
Claus Gittinger <cg@exept.de>
parents: 8866
diff changeset
   178
nameListEntryForRedefined
Claus Gittinger <cg@exept.de>
parents: 8866
diff changeset
   179
    ^ '* redefined (%1) *'
Claus Gittinger <cg@exept.de>
parents: 8866
diff changeset
   180
!
Claus Gittinger <cg@exept.de>
parents: 8866
diff changeset
   181
9026
e32283a8ff69 added: #nameListEntryForRequired
Claus Gittinger <cg@exept.de>
parents: 8929
diff changeset
   182
nameListEntryForRequired
e32283a8ff69 added: #nameListEntryForRequired
Claus Gittinger <cg@exept.de>
parents: 8929
diff changeset
   183
    ^ '* required (%1) *'
e32283a8ff69 added: #nameListEntryForRequired
Claus Gittinger <cg@exept.de>
parents: 8929
diff changeset
   184
!
e32283a8ff69 added: #nameListEntryForRequired
Claus Gittinger <cg@exept.de>
parents: 8929
diff changeset
   185
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   186
nameListEntryForStatic
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   187
    ^ '* static *'
8695
9c76f55700a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7488
diff changeset
   188
!
9c76f55700a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7488
diff changeset
   189
9c76f55700a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7488
diff changeset
   190
nameListEntryForSuperSend
8722
a1ce8e925f55 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8719
diff changeset
   191
    ^ '* super (%1) *'
8695
9c76f55700a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7488
diff changeset
   192
!
9c76f55700a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7488
diff changeset
   193
9c76f55700a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7488
diff changeset
   194
nameListEntryForUncommented
8722
a1ce8e925f55 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8719
diff changeset
   195
    ^ '* uncommented (%1) *'
8737
18451bc9f48b + pseudo entries
Claus Gittinger <cg@exept.de>
parents: 8732
diff changeset
   196
!
18451bc9f48b + pseudo entries
Claus Gittinger <cg@exept.de>
parents: 8732
diff changeset
   197
10358
Claus Gittinger <cg@exept.de>
parents: 10248
diff changeset
   198
nameListEntryForUncovered
Claus Gittinger <cg@exept.de>
parents: 10248
diff changeset
   199
    ^ '* not covered (%1) *'
Claus Gittinger <cg@exept.de>
parents: 10248
diff changeset
   200
Claus Gittinger <cg@exept.de>
parents: 10248
diff changeset
   201
    "Created: / 20-07-2011 / 18:20:44 / cg"
Claus Gittinger <cg@exept.de>
parents: 10248
diff changeset
   202
!
Claus Gittinger <cg@exept.de>
parents: 10248
diff changeset
   203
8754
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
   204
nameListEntryForUndocumented
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
   205
    ^ '* undocumented *'
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
   206
!
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
   207
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
   208
nameListEntryForUndocumentedWithCount
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
   209
    ^ '* undocumented (%1) *'
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
   210
!
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
   211
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
   212
nameListEntryForUnloaded
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
   213
    ^ '* unloaded *'
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
   214
!
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
   215
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
   216
nameListEntryForUnloadedWithCount
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
   217
    ^ '* unloaded (%1) *'
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
   218
!
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
   219
8737
18451bc9f48b + pseudo entries
Claus Gittinger <cg@exept.de>
parents: 8732
diff changeset
   220
nameListEntryForVisited
18451bc9f48b + pseudo entries
Claus Gittinger <cg@exept.de>
parents: 8732
diff changeset
   221
    ^ '* visited (%1) *'
9129
c4bd6c5e946f added: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents: 9087
diff changeset
   222
!
c4bd6c5e946f added: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents: 9087
diff changeset
   223
c4bd6c5e946f added: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents: 9087
diff changeset
   224
pseudoEntryForegroundColor
c4bd6c5e946f added: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents: 9087
diff changeset
   225
    |bg|
c4bd6c5e946f added: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents: 9087
diff changeset
   226
9130
e46e456da73a changed: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents: 9129
diff changeset
   227
    bg := SelectionInListView defaultBackgroundColor ? View defaultBackgroundColor.
e46e456da73a changed: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents: 9129
diff changeset
   228
    bg isNil ifTrue:[ bg := View defaultBackgroundColor ].
9129
c4bd6c5e946f added: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents: 9087
diff changeset
   229
    (Color grey brightness - (bg brightness)) abs < 0.3 ifTrue:[
c4bd6c5e946f added: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents: 9087
diff changeset
   230
        (bg brightness) > 0.7 ifTrue:[
c4bd6c5e946f added: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents: 9087
diff changeset
   231
            ^ Color grey:20.
c4bd6c5e946f added: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents: 9087
diff changeset
   232
        ].
c4bd6c5e946f added: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents: 9087
diff changeset
   233
        ^ Color grey:80.
c4bd6c5e946f added: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents: 9087
diff changeset
   234
    ].
c4bd6c5e946f added: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents: 9087
diff changeset
   235
    ^ Color grey
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   236
! !
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   237
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   238
!NavigatorModel class methodsFor:'interface specs'!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   239
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   240
metaSpec
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   241
    "This resource specification was automatically generated
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   242
     by the UIPainter of ST/X."
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   243
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   244
    "Do not manually edit this!! If it is corrupted,
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   245
     the UIPainter may not be able to read the specification."
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   246
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   247
    "
7488
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   248
     UIPainter new openOnClass:Tools::NavigatorModel andSelector:#metaSpec
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   249
     Tools::NavigatorModel new openInterface:#metaSpec
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   250
    "
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   251
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   252
    <resource: #canvas>
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   253
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   254
    ^ 
7488
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   255
     #(FullSpec
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   256
        name: metaSpec
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   257
        window: 
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   258
       (WindowSpec
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   259
          label: 'MetaToggles'
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   260
          name: 'MetaToggles'
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   261
          min: (Point 0 0)
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   262
          max: (Point 1024 721)
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   263
          bounds: (Rectangle 0 0 300 28)
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   264
        )
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   265
        component: 
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   266
       (SpecCollection
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   267
          collection: (
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   268
           (RadioButtonSpec
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   269
              label: 'Instance'
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   270
              name: 'InstanceToggle'
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   271
              layout: (LayoutFrame 0 0.0 0 0.0 0 0.5 25 0)
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   272
              translateLabel: true
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   273
              tabable: true
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   274
              model: notMetaToggle
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   275
              isTriggerOnDown: true
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   276
              select: true
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   277
              isToggle: true
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   278
            )
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   279
           (RadioButtonSpec
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   280
              label: 'Class'
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   281
              name: 'ClassToggle'
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   282
              layout: (LayoutFrame 0 0.5 0 0 0 1.0 25 0)
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   283
              translateLabel: true
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   284
              labelChannel: metaToggleLabelHolder
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   285
              tabable: false
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   286
              model: metaToggle
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   287
              isTriggerOnDown: true
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   288
              select: true
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   289
              isToggle: true
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   290
            )
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   291
           )
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   292
         
7488
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   293
        )
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   294
      )
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   295
! !
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   296
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   297
!NavigatorModel class methodsFor:'misc'!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   298
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   299
classResources
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   300
    ^ NewSystemBrowser classResources
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   301
! !
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   302
10248
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
   303
!NavigatorModel class methodsFor:'queries'!
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
   304
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
   305
hasSubversionSupport
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
   306
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
   307
    ^NewSystemBrowser hasSubversionSupport
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
   308
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
   309
    "Created: / 06-04-2010 / 11:09:07 / Jan Vrany <jan.vrany@fit.cvut.cz>"
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
   310
! !
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
   311
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   312
!NavigatorModel methodsFor:'misc'!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   313
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   314
resources
8722
a1ce8e925f55 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8719
diff changeset
   315
    "answer the resources of my masterApp, if there is one"
a1ce8e925f55 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8719
diff changeset
   316
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   317
    |m|
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   318
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   319
    (m := self masterApplication) notNil ifTrue:[
8722
a1ce8e925f55 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8719
diff changeset
   320
        ^ m resources
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   321
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   322
    ^ super resources
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   323
! !
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   324
10248
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
   325
!NavigatorModel methodsFor:'queries'!
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
   326
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
   327
hasSubversionSupport
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
   328
    ^ self class hasSubversionSupport
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
   329
! !
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
   330
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   331
!NavigatorModel class methodsFor:'documentation'!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   332
10248
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
   333
version_CVS
10358
Claus Gittinger <cg@exept.de>
parents: 10248
diff changeset
   334
    ^ '$Header: /cvs/stx/stx/libtool/Tools_NavigatorModel.st,v 1.18 2011-07-20 16:30:28 cg Exp $'
8866
c4678ec9944b added: #nameListEntryForLong
Claus Gittinger <cg@exept.de>
parents: 8754
diff changeset
   335
!
c4678ec9944b added: #nameListEntryForLong
Claus Gittinger <cg@exept.de>
parents: 8754
diff changeset
   336
10248
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
   337
version_SVN
3237dc7fbfb8 Merged with JV's branch
vrany
parents: 9130
diff changeset
   338
    ^ '§Id: Tools__NavigatorModel.st 7802 2011-07-05 18:33:36Z vranyj1 §'
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   339
! !
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   340
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   341
NavigatorModel initialize!