Tools__ToDoListEntry.st
author Claus Gittinger <cg@exept.de>
Mon, 26 May 2008 10:14:20 +0200
changeset 8143 539df8f4f32e
parent 7997 06f76492c2ad
child 8238 3a52a5600bb2
permissions -rw-r--r--
interresting context search generalized
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7444
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"{ Package: 'stx:libtool' }"
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
"{ NameSpace: Tools }"
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
Object subclass:#ToDoListEntry
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
	instanceVariableNames:'list stillValid severity priority timestamp message'
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
	classVariableNames:''
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
	poolDictionaries:''
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
	category:'Interface-Smalltalk-ToDo'
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
!
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
!ToDoListEntry methodsFor:'accessing'!
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
7997
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    15
errorColor
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    16
    ^ Color rgbValue:16rCF0000
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    17
!
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    18
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    19
hasHighSeverity
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    20
    ^ (severity ? 0) >= (Tools::ToDoList errorSeverity)
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    21
!
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    22
7444
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
list:something
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
    list := something.
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
!
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
message
7997
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    28
    self hasHighSeverity ifTrue:[ 
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    29
        ^ message colorizeAllWith:self errorColor
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    30
    ].
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    31
7444
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
    ^ message
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
!
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
7530
030aee01ca59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7444
diff changeset
    35
message:something
030aee01ca59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7444
diff changeset
    36
    message := something.
030aee01ca59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7444
diff changeset
    37
!
030aee01ca59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7444
diff changeset
    38
7444
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
priority
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
    ^ priority ? 0
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
    "Modified: / 22-10-2006 / 11:09:36 / cg"
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
!
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
7644
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    45
priority:priorityOrPrioritySymbol 
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    46
    priorityOrPrioritySymbol isSymbol ifTrue:[
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    47
        priorityOrPrioritySymbol == #low ifTrue:[
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    48
            priority := ToDoList lowPriority.
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    49
            ^ self.
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    50
        ].
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    51
        priorityOrPrioritySymbol == #medium ifTrue:[
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    52
            priority := ToDoList mediumPriority.
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    53
            ^ self.
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    54
        ].
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    55
        priorityOrPrioritySymbol == #high ifTrue:[
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    56
            priority := ToDoList highPriority.
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    57
            ^ self.
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    58
        ].
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    59
        self error:'bad argument'
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    60
    ].
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    61
    priority := priorityOrPrioritySymbol.
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    62
!
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    63
7997
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    64
priorityString
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    65
    |s|
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    66
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    67
    s := (priority ? 0) printString.
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    68
    self hasHighSeverity ifTrue:[ 
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    69
        ^ s colorizeAllWith:self errorColor
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    70
    ].
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    71
    ^ s
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    72
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    73
    "Modified: / 22-10-2006 / 11:09:36 / cg"
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    74
!
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    75
7444
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
severity
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    77
    ^ severity ? 0
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    78
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    79
    "Modified: / 22-10-2006 / 11:09:42 / cg"
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    80
!
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    81
7644
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    82
severity:severityOrSeveritySymbol
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    83
    severityOrSeveritySymbol isSymbol ifTrue:[
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    84
        severityOrSeveritySymbol == #info ifTrue:[
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    85
            severity := ToDoList infoSeverity.
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    86
            ^ self.
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    87
        ].
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    88
        severityOrSeveritySymbol == #warning ifTrue:[
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    89
            severity := ToDoList warningSeverity.
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    90
            ^ self.
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    91
        ].
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    92
        severityOrSeveritySymbol == #error ifTrue:[
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    93
            severity := ToDoList errorSeverity.
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    94
            ^ self.
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    95
        ].
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    96
        self error:'bad argument'
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    97
    ].
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    98
    severity := severityOrSeveritySymbol.
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    99
!
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
   100
7444
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   101
severity:severityArg priority:priorityArg timestamp:timestampArg message:messageArg 
7644
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
   102
    self severity:severityArg.
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
   103
    self priority:priorityArg.
7444
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   104
    timestamp := timestampArg.
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   105
    message := messageArg.
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   106
!
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   107
7741
192a8979b9dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7644
diff changeset
   108
severityString
192a8979b9dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7644
diff changeset
   109
    |sev|
192a8979b9dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7644
diff changeset
   110
192a8979b9dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7644
diff changeset
   111
    sev := self severity.
7997
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
   112
    sev >= (Tools::ToDoList errorSeverity) ifTrue:[ ^ 'E' allBold colorizeAllWith:self errorColor].
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
   113
    sev >= (Tools::ToDoList warningSeverity) ifTrue:[ ^ 'W' ].
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
   114
    sev >= (Tools::ToDoList infoSeverity) ifTrue:[ ^ 'i' ].
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
   115
    ^ ' '
7741
192a8979b9dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7644
diff changeset
   116
192a8979b9dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7644
diff changeset
   117
    "Modified: / 22-10-2006 / 11:09:42 / cg"
192a8979b9dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7644
diff changeset
   118
!
192a8979b9dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7644
diff changeset
   119
7444
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   120
stillValid
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   121
    ^ stillValid ? true
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   122
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   123
    "Created: / 21-10-2006 / 20:45:33 / cg"
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   124
!
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   125
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   126
time
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   127
    ^ timestamp asTime
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   128
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   129
    "Created: / 21-10-2006 / 20:58:14 / cg"
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   130
!
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   131
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   132
timestamp
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   133
    ^ timestamp
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   134
! !
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   135
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   136
!ToDoListEntry methodsFor:'duplicate detection'!
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   137
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   138
isAlreadyPresentIn:aList
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   139
    ^ aList contains:[:anEntry | anEntry sameAs:self ].
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   140
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   141
    "Created: / 21-10-2006 / 21:36:57 / cg"
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   142
!
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   143
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   144
sameAs:anotherEntry
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   145
    self subclassResponsibility
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   146
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   147
    "Created: / 21-10-2006 / 21:37:42 / cg"
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   148
!
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   149
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   150
sameAsCompilerWarningToDoListEntry:anotherEntry
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   151
    ^ false
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   152
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   153
    "Created: / 21-10-2006 / 21:40:47 / cg"
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   154
! !
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   155
7530
030aee01ca59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7444
diff changeset
   156
!ToDoListEntry methodsFor:'initialization'!
030aee01ca59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7444
diff changeset
   157
030aee01ca59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7444
diff changeset
   158
initialize
030aee01ca59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7444
diff changeset
   159
    severity := Tools::ToDoList warningSeverity.
030aee01ca59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7444
diff changeset
   160
    priority := Tools::ToDoList highPriority.
030aee01ca59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7444
diff changeset
   161
    timestamp := Timestamp now.
030aee01ca59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7444
diff changeset
   162
    message := 'Check this'
030aee01ca59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7444
diff changeset
   163
030aee01ca59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7444
diff changeset
   164
    "Created: / 20-11-2006 / 15:00:39 / cg"
030aee01ca59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7444
diff changeset
   165
! !
030aee01ca59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7444
diff changeset
   166
7444
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   167
!ToDoListEntry methodsFor:'misc'!
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   168
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   169
browse
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   170
    self subclassResponsibility
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   171
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   172
    "Created: / 22-10-2006 / 01:37:42 / cg"
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   173
! !
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   174
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   175
!ToDoListEntry methodsFor:'printing & storing'!
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   176
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   177
printOn:aStream
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   178
    aStream nextPutAll:message
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   179
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   180
    "Created: / 21-10-2006 / 23:13:39 / cg"
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   181
! !
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   182
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   183
!ToDoListEntry methodsFor:'validation'!
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   184
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   185
checkIfStillValid
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   186
    self subclassResponsibility
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   187
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   188
    "Created: / 21-10-2006 / 21:30:29 / cg"
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   189
!
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   190
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   191
revalidate
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   192
    self checkIfStillValid ifFalse:[
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   193
        stillValid := false.
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   194
        list removeIdentical:self ifAbsent:[].
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   195
        Smalltalk removeDependent:self.
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   196
    ].
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   197
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   198
    "Created: / 21-10-2006 / 20:46:03 / cg"
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   199
    "Modified: / 21-10-2006 / 22:00:52 / cg"
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   200
! !
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   201
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   202
!ToDoListEntry class methodsFor:'documentation'!
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   203
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   204
version
7997
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
   205
    ^ '$Header: /cvs/stx/stx/libtool/Tools__ToDoListEntry.st,v 1.7 2008-03-03 09:39:36 cg Exp $'
7444
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   206
! !