Tools__ToDoListEntry.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Thu, 14 Jun 2018 22:19:39 +0100
branchjv
changeset 18227 d25a407ba86d
parent 12431 9f0c59c742d5
permissions -rw-r--r--
Mini testrunner: show "green" if there's at least one pass and rest is pass or skip This is more meaningfull result then showing "gray" if there's at least one skip.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8238
3a52a5600bb2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7997
diff changeset
     1
"
3a52a5600bb2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7997
diff changeset
     2
 COPYRIGHT (c) 2006 by eXept Software AG
3a52a5600bb2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7997
diff changeset
     3
              All Rights Reserved
3a52a5600bb2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7997
diff changeset
     4
3a52a5600bb2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7997
diff changeset
     5
 This software is furnished under a license and may be used
3a52a5600bb2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7997
diff changeset
     6
 only in accordance with the terms of that license and with the
3a52a5600bb2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7997
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
3a52a5600bb2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7997
diff changeset
     8
 be provided or otherwise made available to, or used by, any
3a52a5600bb2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7997
diff changeset
     9
 other person.  No title to or ownership of the software is
3a52a5600bb2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7997
diff changeset
    10
 hereby transferred.
3a52a5600bb2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7997
diff changeset
    11
"
7444
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
"{ Package: 'stx:libtool' }"
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
"{ NameSpace: Tools }"
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
Object subclass:#ToDoListEntry
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	instanceVariableNames:'list stillValid severity priority timestamp message'
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	classVariableNames:''
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
	poolDictionaries:''
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
	category:'Interface-Smalltalk-ToDo'
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
!
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
8238
3a52a5600bb2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7997
diff changeset
    23
!ToDoListEntry class methodsFor:'documentation'!
3a52a5600bb2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7997
diff changeset
    24
3a52a5600bb2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7997
diff changeset
    25
copyright
3a52a5600bb2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7997
diff changeset
    26
"
3a52a5600bb2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7997
diff changeset
    27
 COPYRIGHT (c) 2006 by eXept Software AG
3a52a5600bb2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7997
diff changeset
    28
              All Rights Reserved
3a52a5600bb2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7997
diff changeset
    29
3a52a5600bb2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7997
diff changeset
    30
 This software is furnished under a license and may be used
3a52a5600bb2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7997
diff changeset
    31
 only in accordance with the terms of that license and with the
3a52a5600bb2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7997
diff changeset
    32
 inclusion of the above copyright notice.   This software may not
3a52a5600bb2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7997
diff changeset
    33
 be provided or otherwise made available to, or used by, any
3a52a5600bb2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7997
diff changeset
    34
 other person.  No title to or ownership of the software is
3a52a5600bb2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7997
diff changeset
    35
 hereby transferred.
3a52a5600bb2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7997
diff changeset
    36
"
3a52a5600bb2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7997
diff changeset
    37
! !
7444
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
!ToDoListEntry methodsFor:'accessing'!
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
7997
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    41
errorColor
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    42
    ^ Color rgbValue:16rCF0000
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    43
!
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    44
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    45
hasHighSeverity
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    46
    ^ (severity ? 0) >= (Tools::ToDoList errorSeverity)
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    47
!
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    48
7444
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
list:something
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
    list := something.
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
!
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
message
7997
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    54
    self hasHighSeverity ifTrue:[ 
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    55
        ^ message colorizeAllWith:self errorColor
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    56
    ].
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    57
7444
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
    ^ message
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
!
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
7530
030aee01ca59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7444
diff changeset
    61
message:something
030aee01ca59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7444
diff changeset
    62
    message := something.
030aee01ca59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7444
diff changeset
    63
!
030aee01ca59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7444
diff changeset
    64
7444
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
priority
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
    ^ priority ? 0
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
    "Modified: / 22-10-2006 / 11:09:36 / cg"
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
!
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
7644
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    71
priority:priorityOrPrioritySymbol 
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    72
    priorityOrPrioritySymbol isSymbol ifTrue:[
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    73
        priorityOrPrioritySymbol == #low ifTrue:[
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    74
            priority := ToDoList lowPriority.
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    75
            ^ self.
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    76
        ].
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    77
        priorityOrPrioritySymbol == #medium ifTrue:[
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    78
            priority := ToDoList mediumPriority.
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    79
            ^ self.
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    80
        ].
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    81
        priorityOrPrioritySymbol == #high ifTrue:[
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    82
            priority := ToDoList highPriority.
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    83
            ^ self.
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    84
        ].
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    85
        self error:'bad argument'
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    86
    ].
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    87
    priority := priorityOrPrioritySymbol.
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    88
!
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
    89
7997
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    90
priorityString
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    91
    |s|
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    92
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    93
    s := (priority ? 0) printString.
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    94
    self hasHighSeverity ifTrue:[ 
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    95
        ^ s colorizeAllWith:self errorColor
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    96
    ].
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    97
    ^ s
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    98
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
    99
    "Modified: / 22-10-2006 / 11:09:36 / cg"
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
   100
!
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
   101
7444
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   102
severity
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   103
    ^ severity ? 0
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   104
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   105
    "Modified: / 22-10-2006 / 11:09:42 / cg"
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   106
!
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   107
7644
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
   108
severity:severityOrSeveritySymbol
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
   109
    severityOrSeveritySymbol isSymbol ifTrue:[
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
   110
        severityOrSeveritySymbol == #info ifTrue:[
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
   111
            severity := ToDoList infoSeverity.
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
   112
            ^ self.
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
   113
        ].
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
   114
        severityOrSeveritySymbol == #warning ifTrue:[
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
   115
            severity := ToDoList warningSeverity.
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
   116
            ^ self.
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
   117
        ].
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
   118
        severityOrSeveritySymbol == #error ifTrue:[
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
   119
            severity := ToDoList errorSeverity.
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
   120
            ^ self.
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
   121
        ].
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
   122
        self error:'bad argument'
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
   123
    ].
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
   124
    severity := severityOrSeveritySymbol.
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
   125
!
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
   126
7444
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   127
severity:severityArg priority:priorityArg timestamp:timestampArg message:messageArg 
7644
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
   128
    self severity:severityArg.
ff0bb7053eae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7530
diff changeset
   129
    self priority:priorityArg.
7444
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   130
    timestamp := timestampArg.
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   131
    message := messageArg.
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   132
!
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   133
7741
192a8979b9dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7644
diff changeset
   134
severityString
192a8979b9dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7644
diff changeset
   135
    |sev|
192a8979b9dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7644
diff changeset
   136
192a8979b9dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7644
diff changeset
   137
    sev := self severity.
7997
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
   138
    sev >= (Tools::ToDoList errorSeverity) ifTrue:[ ^ 'E' allBold colorizeAllWith:self errorColor].
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
   139
    sev >= (Tools::ToDoList warningSeverity) ifTrue:[ ^ 'W' ].
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
   140
    sev >= (Tools::ToDoList infoSeverity) ifTrue:[ ^ 'i' ].
06f76492c2ad presentation
Claus Gittinger <cg@exept.de>
parents: 7751
diff changeset
   141
    ^ ' '
7741
192a8979b9dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7644
diff changeset
   142
192a8979b9dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7644
diff changeset
   143
    "Modified: / 22-10-2006 / 11:09:42 / cg"
192a8979b9dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7644
diff changeset
   144
!
192a8979b9dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7644
diff changeset
   145
7444
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   146
stillValid
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   147
    ^ stillValid ? true
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   148
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   149
    "Created: / 21-10-2006 / 20:45:33 / cg"
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   150
!
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   151
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   152
time
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   153
    ^ timestamp asTime
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   154
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   155
    "Created: / 21-10-2006 / 20:58:14 / cg"
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   156
!
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   157
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   158
timestamp
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   159
    ^ timestamp
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   160
! !
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   161
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   162
!ToDoListEntry methodsFor:'duplicate detection'!
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   163
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   164
isAlreadyPresentIn:aList
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   165
    ^ aList contains:[:anEntry | anEntry sameAs:self ].
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   166
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   167
    "Created: / 21-10-2006 / 21:36:57 / cg"
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   168
!
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   169
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   170
sameAs:anotherEntry
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   171
    self subclassResponsibility
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   172
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   173
    "Created: / 21-10-2006 / 21:37:42 / cg"
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   174
!
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   175
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   176
sameAsCompilerWarningToDoListEntry:anotherEntry
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   177
    ^ false
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   178
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   179
    "Created: / 21-10-2006 / 21:40:47 / cg"
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   180
! !
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   181
7530
030aee01ca59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7444
diff changeset
   182
!ToDoListEntry methodsFor:'initialization'!
030aee01ca59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7444
diff changeset
   183
030aee01ca59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7444
diff changeset
   184
initialize
030aee01ca59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7444
diff changeset
   185
    severity := Tools::ToDoList warningSeverity.
030aee01ca59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7444
diff changeset
   186
    priority := Tools::ToDoList highPriority.
030aee01ca59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7444
diff changeset
   187
    timestamp := Timestamp now.
030aee01ca59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7444
diff changeset
   188
    message := 'Check this'
030aee01ca59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7444
diff changeset
   189
030aee01ca59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7444
diff changeset
   190
    "Created: / 20-11-2006 / 15:00:39 / cg"
030aee01ca59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7444
diff changeset
   191
! !
030aee01ca59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7444
diff changeset
   192
7444
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   193
!ToDoListEntry methodsFor:'misc'!
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   194
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   195
browse
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   196
    self subclassResponsibility
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: / 22-10-2006 / 01:37:42 / cg"
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   199
! !
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   200
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   201
!ToDoListEntry methodsFor:'printing & storing'!
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   202
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   203
printOn:aStream
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   204
    aStream nextPutAll:message
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   205
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   206
    "Created: / 21-10-2006 / 23:13:39 / cg"
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   207
! !
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   208
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   209
!ToDoListEntry methodsFor:'validation'!
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   210
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   211
checkIfStillValid
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   212
    self subclassResponsibility
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   213
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   214
    "Created: / 21-10-2006 / 21:30:29 / cg"
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   215
!
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   216
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   217
revalidate
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   218
    self checkIfStillValid ifFalse:[
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   219
        stillValid := false.
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   220
        list removeIdentical:self ifAbsent:[].
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   221
        Smalltalk removeDependent:self.
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   222
    ].
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   223
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   224
    "Created: / 21-10-2006 / 20:46:03 / cg"
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   225
    "Modified: / 21-10-2006 / 22:00:52 / cg"
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   226
! !
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   227
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   228
!ToDoListEntry class methodsFor:'documentation'!
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   229
8fda127bf597 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   230
version
12128
a7ff7d66ee85 Improvements in LintHighlighter, few fixes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12125
diff changeset
   231
    ^ '$Id: Tools__ToDoListEntry.st 7854 2012-01-30 17:49:41Z vranyj1 $'
a7ff7d66ee85 Improvements in LintHighlighter, few fixes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12125
diff changeset
   232
!
a7ff7d66ee85 Improvements in LintHighlighter, few fixes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12125
diff changeset
   233
12431
9f0c59c742d5 Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   234
version_HG
9f0c59c742d5 Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   235
9f0c59c742d5 Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   236
    ^ '$Changeset: <not expanded> $'
9f0c59c742d5 Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   237
!
9f0c59c742d5 Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   238
12128
a7ff7d66ee85 Improvements in LintHighlighter, few fixes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12125
diff changeset
   239
version_SVN
a7ff7d66ee85 Improvements in LintHighlighter, few fixes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12125
diff changeset
   240
    ^ '$Id: Tools__ToDoListEntry.st 7854 2012-01-30 17:49:41Z vranyj1 $'
12125
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   241
! !
12431
9f0c59c742d5 Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   242