Tools__NavigationHistory.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Fri, 04 Sep 2015 07:28:33 +0100
branchjv
changeset 15844 024b2d99744a
parent 15566 184cea584be5
child 16304 1685d6f9384e
permissions -rw-r--r--
More standard behaviour of navigation history Do not cut the history if one goeas back to an item which is already in the history. For example, goto 1, goto 2, goto 3, goto 1 WILL NOT cut 2 and 3 from history (old behaviour) but retain them, so the history will look like 1,2,3,1.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9989
Claus Gittinger <cg@exept.de>
parents: 8818
diff changeset
     1
"
Claus Gittinger <cg@exept.de>
parents: 8818
diff changeset
     2
 COPYRIGHT (c) 2006 by eXept Software AG
10049
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
     3
              All Rights Reserved
9989
Claus Gittinger <cg@exept.de>
parents: 8818
diff changeset
     4
Claus Gittinger <cg@exept.de>
parents: 8818
diff changeset
     5
 This software is furnished under a license and may be used
Claus Gittinger <cg@exept.de>
parents: 8818
diff changeset
     6
 only in accordance with the terms of that license and with the
Claus Gittinger <cg@exept.de>
parents: 8818
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
Claus Gittinger <cg@exept.de>
parents: 8818
diff changeset
     8
 be provided or otherwise made available to, or used by, any
Claus Gittinger <cg@exept.de>
parents: 8818
diff changeset
     9
 other person.  No title to or ownership of the software is
Claus Gittinger <cg@exept.de>
parents: 8818
diff changeset
    10
 hereby transferred.
Claus Gittinger <cg@exept.de>
parents: 8818
diff changeset
    11
"
Claus Gittinger <cg@exept.de>
parents: 8818
diff changeset
    12
"{ Package: 'stx:libtool' }"
8778
32f043901469 initial checkin
fm
parents:
diff changeset
    13
32f043901469 initial checkin
fm
parents:
diff changeset
    14
"{ NameSpace: Tools }"
32f043901469 initial checkin
fm
parents:
diff changeset
    15
32f043901469 initial checkin
fm
parents:
diff changeset
    16
Object subclass:#NavigationHistory
12890
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
    17
	instanceVariableNames:'items position isGlobalHistory maxNumberOfItems'
10121
9ffc433015ec comment/format in: #goForward
Claus Gittinger <cg@exept.de>
parents: 10049
diff changeset
    18
	classVariableNames:''
9ffc433015ec comment/format in: #goForward
Claus Gittinger <cg@exept.de>
parents: 10049
diff changeset
    19
	poolDictionaries:''
11775
cb66177200d8 category
Claus Gittinger <cg@exept.de>
parents: 10715
diff changeset
    20
	category:'Interface-Browsers-New-History'
8778
32f043901469 initial checkin
fm
parents:
diff changeset
    21
!
32f043901469 initial checkin
fm
parents:
diff changeset
    22
9989
Claus Gittinger <cg@exept.de>
parents: 8818
diff changeset
    23
!NavigationHistory class methodsFor:'documentation'!
Claus Gittinger <cg@exept.de>
parents: 8818
diff changeset
    24
Claus Gittinger <cg@exept.de>
parents: 8818
diff changeset
    25
copyright
Claus Gittinger <cg@exept.de>
parents: 8818
diff changeset
    26
"
Claus Gittinger <cg@exept.de>
parents: 8818
diff changeset
    27
 COPYRIGHT (c) 2006 by eXept Software AG
10049
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
    28
              All Rights Reserved
9989
Claus Gittinger <cg@exept.de>
parents: 8818
diff changeset
    29
Claus Gittinger <cg@exept.de>
parents: 8818
diff changeset
    30
 This software is furnished under a license and may be used
Claus Gittinger <cg@exept.de>
parents: 8818
diff changeset
    31
 only in accordance with the terms of that license and with the
Claus Gittinger <cg@exept.de>
parents: 8818
diff changeset
    32
 inclusion of the above copyright notice.   This software may not
Claus Gittinger <cg@exept.de>
parents: 8818
diff changeset
    33
 be provided or otherwise made available to, or used by, any
Claus Gittinger <cg@exept.de>
parents: 8818
diff changeset
    34
 other person.  No title to or ownership of the software is
Claus Gittinger <cg@exept.de>
parents: 8818
diff changeset
    35
 hereby transferred.
Claus Gittinger <cg@exept.de>
parents: 8818
diff changeset
    36
"
10049
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
    37
!
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
    38
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
    39
documentation
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
    40
"
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
    41
    two variants:
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
    42
        a forward-backward history, as in a browser:
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
    43
            navigating backward moves a pointer in a list
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
    44
        a global history
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
    45
            navigating moves the navigated item to the front position
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
    46
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
    47
    hack: configurable to behave either as a global history
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
    48
          or as a local-tab navigation history.
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
    49
    Also implement backward compatible list-style acccess interface,
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
    50
    to support old browsers (I guess, this is temporary and the other 
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
    51
    users of the global history (debugger, old systembrowser etc. should
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
    52
    be changed)
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
    53
"
9989
Claus Gittinger <cg@exept.de>
parents: 8818
diff changeset
    54
! !
8778
32f043901469 initial checkin
fm
parents:
diff changeset
    55
32f043901469 initial checkin
fm
parents:
diff changeset
    56
!NavigationHistory class methodsFor:'instance creation'!
32f043901469 initial checkin
fm
parents:
diff changeset
    57
32f043901469 initial checkin
fm
parents:
diff changeset
    58
new
32f043901469 initial checkin
fm
parents:
diff changeset
    59
    ^ self basicNew initialize.
32f043901469 initial checkin
fm
parents:
diff changeset
    60
32f043901469 initial checkin
fm
parents:
diff changeset
    61
    "Created: / 21-02-2008 / 15:26:05 / janfrog"
32f043901469 initial checkin
fm
parents:
diff changeset
    62
! !
32f043901469 initial checkin
fm
parents:
diff changeset
    63
32f043901469 initial checkin
fm
parents:
diff changeset
    64
!NavigationHistory methodsFor:'accessing'!
32f043901469 initial checkin
fm
parents:
diff changeset
    65
12890
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
    66
addFirst:anEntry
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
    67
    "list protocol"
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
    68
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
    69
    maxNumberOfItems == 0 ifTrue:[^ self].
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
    70
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
    71
    items addFirst:anEntry.
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
    72
    items size > maxNumberOfItems ifTrue:[
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
    73
        items removeLast
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
    74
    ].
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
    75
    self changed: #value with: anEntry.
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
    76
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
    77
    "Created: / 03-07-2011 / 13:26:48 / cg"
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
    78
!
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
    79
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
    80
addLast:anEntry
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
    81
    "list protocol"
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
    82
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
    83
    maxNumberOfItems == 0 ifTrue:[^ self].
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
    84
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
    85
    items addLast:anEntry.
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
    86
    items size > maxNumberOfItems ifTrue:[
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
    87
        items removeFirst
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
    88
    ].
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
    89
    self changed: #value with: anEntry.
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
    90
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
    91
    "Created: / 03-07-2011 / 13:26:48 / cg"
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
    92
!
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
    93
8778
32f043901469 initial checkin
fm
parents:
diff changeset
    94
currentItem
32f043901469 initial checkin
fm
parents:
diff changeset
    95
32f043901469 initial checkin
fm
parents:
diff changeset
    96
    ^(position between:1 and: items size) 
32f043901469 initial checkin
fm
parents:
diff changeset
    97
        ifTrue:[items at: position]
32f043901469 initial checkin
fm
parents:
diff changeset
    98
        ifFalse:[nil]
32f043901469 initial checkin
fm
parents:
diff changeset
    99
32f043901469 initial checkin
fm
parents:
diff changeset
   100
    "Created: / 27-02-2008 / 08:46:37 / janfrog"
32f043901469 initial checkin
fm
parents:
diff changeset
   101
!
32f043901469 initial checkin
fm
parents:
diff changeset
   102
32f043901469 initial checkin
fm
parents:
diff changeset
   103
currentItem: anObject
32f043901469 initial checkin
fm
parents:
diff changeset
   104
32f043901469 initial checkin
fm
parents:
diff changeset
   105
    self goTo: anObject
32f043901469 initial checkin
fm
parents:
diff changeset
   106
32f043901469 initial checkin
fm
parents:
diff changeset
   107
    "Created: / 27-02-2008 / 08:47:04 / janfrog"
32f043901469 initial checkin
fm
parents:
diff changeset
   108
!
32f043901469 initial checkin
fm
parents:
diff changeset
   109
32f043901469 initial checkin
fm
parents:
diff changeset
   110
goBackItems
10176
302187ae4a8c comment/format in: #goBack
Claus Gittinger <cg@exept.de>
parents: 10142
diff changeset
   111
    isGlobalHistory ifTrue:[^ items "isEmpty ifTrue:[items] ifFalse:[items copyFrom:2]"].
10049
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   112
8778
32f043901469 initial checkin
fm
parents:
diff changeset
   113
    ^ (items copyTo:position - 1) reverse
32f043901469 initial checkin
fm
parents:
diff changeset
   114
32f043901469 initial checkin
fm
parents:
diff changeset
   115
    "Created: / 27-02-2008 / 11:52:12 / janfrog"
10176
302187ae4a8c comment/format in: #goBack
Claus Gittinger <cg@exept.de>
parents: 10142
diff changeset
   116
    "Modified: / 05-07-2011 / 16:53:18 / cg"
8778
32f043901469 initial checkin
fm
parents:
diff changeset
   117
!
32f043901469 initial checkin
fm
parents:
diff changeset
   118
32f043901469 initial checkin
fm
parents:
diff changeset
   119
goForwardItems
10049
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   120
    isGlobalHistory ifTrue:[^ #()].
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   121
8778
32f043901469 initial checkin
fm
parents:
diff changeset
   122
    ^ items copyFrom:position + 1
32f043901469 initial checkin
fm
parents:
diff changeset
   123
32f043901469 initial checkin
fm
parents:
diff changeset
   124
    "Created: / 27-02-2008 / 11:52:26 / janfrog"
10049
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   125
    "Modified: / 03-07-2011 / 16:00:45 / cg"
12890
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
   126
!
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
   127
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
   128
maxItemsInHistory:aNumber
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
   129
    maxNumberOfItems := aNumber max:1.
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
   130
    maxNumberOfItems > items size ifTrue:[
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
   131
        items removeFromIndex:maxNumberOfItems+1 toIndex:items size.
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
   132
        position := maxNumberOfItems.
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
   133
        self changed.
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
   134
    ].
10049
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   135
! !
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   136
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   137
!NavigationHistory methodsFor:'backward list compatibility'!
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   138
10142
Claus Gittinger <cg@exept.de>
parents: 10122
diff changeset
   139
collect:aBlock 
Claus Gittinger <cg@exept.de>
parents: 10122
diff changeset
   140
    "backward compatible list protocol"
Claus Gittinger <cg@exept.de>
parents: 10122
diff changeset
   141
Claus Gittinger <cg@exept.de>
parents: 10122
diff changeset
   142
    ^ items collect:aBlock
Claus Gittinger <cg@exept.de>
parents: 10122
diff changeset
   143
Claus Gittinger <cg@exept.de>
parents: 10122
diff changeset
   144
    "Created: / 04-07-2011 / 22:45:21 / cg"
Claus Gittinger <cg@exept.de>
parents: 10122
diff changeset
   145
!
Claus Gittinger <cg@exept.de>
parents: 10122
diff changeset
   146
10049
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   147
collect:aBlock thenSelect:filter
10121
9ffc433015ec comment/format in: #goForward
Claus Gittinger <cg@exept.de>
parents: 10049
diff changeset
   148
    "backward compatible list protocol"
9ffc433015ec comment/format in: #goForward
Claus Gittinger <cg@exept.de>
parents: 10049
diff changeset
   149
10049
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   150
    ^ items collect:aBlock thenSelect:filter
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   151
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   152
    "Created: / 03-07-2011 / 13:34:14 / cg"
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   153
!
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   154
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   155
detect:aBlock ifNone:exeptionalValue
10121
9ffc433015ec comment/format in: #goForward
Claus Gittinger <cg@exept.de>
parents: 10049
diff changeset
   156
    "backward compatible list protocol"
9ffc433015ec comment/format in: #goForward
Claus Gittinger <cg@exept.de>
parents: 10049
diff changeset
   157
10049
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   158
    ^ items detect:aBlock ifNone:exeptionalValue
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   159
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   160
    "Created: / 03-07-2011 / 13:25:37 / cg"
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   161
!
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   162
12058
056fcb133048 added: #do:
Michael Beyl <mb@exept.de>
parents: 11906
diff changeset
   163
do:aBlock
056fcb133048 added: #do:
Michael Beyl <mb@exept.de>
parents: 11906
diff changeset
   164
    "backward compatible list protocol"
056fcb133048 added: #do:
Michael Beyl <mb@exept.de>
parents: 11906
diff changeset
   165
056fcb133048 added: #do:
Michael Beyl <mb@exept.de>
parents: 11906
diff changeset
   166
    ^ items do:aBlock 
056fcb133048 added: #do:
Michael Beyl <mb@exept.de>
parents: 11906
diff changeset
   167
!
056fcb133048 added: #do:
Michael Beyl <mb@exept.de>
parents: 11906
diff changeset
   168
11904
62240b5bf008 added: #first
Claus Gittinger <cg@exept.de>
parents: 11775
diff changeset
   169
first
62240b5bf008 added: #first
Claus Gittinger <cg@exept.de>
parents: 11775
diff changeset
   170
    "backward compatible list protocol"
62240b5bf008 added: #first
Claus Gittinger <cg@exept.de>
parents: 11775
diff changeset
   171
62240b5bf008 added: #first
Claus Gittinger <cg@exept.de>
parents: 11775
diff changeset
   172
    ^ items first
62240b5bf008 added: #first
Claus Gittinger <cg@exept.de>
parents: 11775
diff changeset
   173
62240b5bf008 added: #first
Claus Gittinger <cg@exept.de>
parents: 11775
diff changeset
   174
    "Created: / 04-07-2011 / 22:45:21 / cg"
62240b5bf008 added: #first
Claus Gittinger <cg@exept.de>
parents: 11775
diff changeset
   175
!
62240b5bf008 added: #first
Claus Gittinger <cg@exept.de>
parents: 11775
diff changeset
   176
10142
Claus Gittinger <cg@exept.de>
parents: 10122
diff changeset
   177
isEmpty
Claus Gittinger <cg@exept.de>
parents: 10122
diff changeset
   178
    "backward compatible list protocol"
Claus Gittinger <cg@exept.de>
parents: 10122
diff changeset
   179
Claus Gittinger <cg@exept.de>
parents: 10122
diff changeset
   180
    ^ items isEmpty
Claus Gittinger <cg@exept.de>
parents: 10122
diff changeset
   181
Claus Gittinger <cg@exept.de>
parents: 10122
diff changeset
   182
    "Created: / 04-07-2011 / 22:44:54 / cg"
Claus Gittinger <cg@exept.de>
parents: 10122
diff changeset
   183
!
Claus Gittinger <cg@exept.de>
parents: 10122
diff changeset
   184
11906
Claus Gittinger <cg@exept.de>
parents: 11904
diff changeset
   185
isEmptyOrNil
Claus Gittinger <cg@exept.de>
parents: 11904
diff changeset
   186
    "backward compatible list protocol"
Claus Gittinger <cg@exept.de>
parents: 11904
diff changeset
   187
Claus Gittinger <cg@exept.de>
parents: 11904
diff changeset
   188
    ^ items isEmptyOrNil
Claus Gittinger <cg@exept.de>
parents: 11904
diff changeset
   189
Claus Gittinger <cg@exept.de>
parents: 11904
diff changeset
   190
    "Created: / 04-07-2011 / 22:44:54 / cg"
Claus Gittinger <cg@exept.de>
parents: 11904
diff changeset
   191
!
Claus Gittinger <cg@exept.de>
parents: 11904
diff changeset
   192
10142
Claus Gittinger <cg@exept.de>
parents: 10122
diff changeset
   193
notEmpty
Claus Gittinger <cg@exept.de>
parents: 10122
diff changeset
   194
    "backward compatible list protocol"
Claus Gittinger <cg@exept.de>
parents: 10122
diff changeset
   195
Claus Gittinger <cg@exept.de>
parents: 10122
diff changeset
   196
    ^ items notEmpty
Claus Gittinger <cg@exept.de>
parents: 10122
diff changeset
   197
Claus Gittinger <cg@exept.de>
parents: 10122
diff changeset
   198
    "Created: / 04-07-2011 / 22:45:45 / cg"
Claus Gittinger <cg@exept.de>
parents: 10122
diff changeset
   199
!
Claus Gittinger <cg@exept.de>
parents: 10122
diff changeset
   200
11906
Claus Gittinger <cg@exept.de>
parents: 11904
diff changeset
   201
notEmptyOrNil
Claus Gittinger <cg@exept.de>
parents: 11904
diff changeset
   202
    "backward compatible list protocol"
Claus Gittinger <cg@exept.de>
parents: 11904
diff changeset
   203
Claus Gittinger <cg@exept.de>
parents: 11904
diff changeset
   204
    ^ items notEmptyOrNil
Claus Gittinger <cg@exept.de>
parents: 11904
diff changeset
   205
Claus Gittinger <cg@exept.de>
parents: 11904
diff changeset
   206
    "Created: / 04-07-2011 / 22:45:45 / cg"
Claus Gittinger <cg@exept.de>
parents: 11904
diff changeset
   207
!
Claus Gittinger <cg@exept.de>
parents: 11904
diff changeset
   208
10715
df89f53ca12e added: #removeAll
Claus Gittinger <cg@exept.de>
parents: 10176
diff changeset
   209
removeAll
14137
e8d33bcf9513 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12959
diff changeset
   210
    "backward compatible list protocol"
e8d33bcf9513 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12959
diff changeset
   211
10715
df89f53ca12e added: #removeAll
Claus Gittinger <cg@exept.de>
parents: 10176
diff changeset
   212
    items removeAll.
df89f53ca12e added: #removeAll
Claus Gittinger <cg@exept.de>
parents: 10176
diff changeset
   213
df89f53ca12e added: #removeAll
Claus Gittinger <cg@exept.de>
parents: 10176
diff changeset
   214
    "Created: / 21-09-2011 / 16:27:38 / cg"
df89f53ca12e added: #removeAll
Claus Gittinger <cg@exept.de>
parents: 10176
diff changeset
   215
!
df89f53ca12e added: #removeAll
Claus Gittinger <cg@exept.de>
parents: 10176
diff changeset
   216
10049
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   217
removeIdentical:anEntry
10121
9ffc433015ec comment/format in: #goForward
Claus Gittinger <cg@exept.de>
parents: 10049
diff changeset
   218
    "backward compatible list protocol"
9ffc433015ec comment/format in: #goForward
Claus Gittinger <cg@exept.de>
parents: 10049
diff changeset
   219
9ffc433015ec comment/format in: #goForward
Claus Gittinger <cg@exept.de>
parents: 10049
diff changeset
   220
    items removeIdentical:anEntry.
9ffc433015ec comment/format in: #goForward
Claus Gittinger <cg@exept.de>
parents: 10049
diff changeset
   221
    self changed: #value with:nil.
10049
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   222
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   223
    "Created: / 03-07-2011 / 13:27:34 / cg"
10142
Claus Gittinger <cg@exept.de>
parents: 10122
diff changeset
   224
!
Claus Gittinger <cg@exept.de>
parents: 10122
diff changeset
   225
Claus Gittinger <cg@exept.de>
parents: 10122
diff changeset
   226
reverseDo:aBlock
Claus Gittinger <cg@exept.de>
parents: 10122
diff changeset
   227
    "backward compatible list protocol"
Claus Gittinger <cg@exept.de>
parents: 10122
diff changeset
   228
Claus Gittinger <cg@exept.de>
parents: 10122
diff changeset
   229
    items reverseDo:aBlock
Claus Gittinger <cg@exept.de>
parents: 10122
diff changeset
   230
Claus Gittinger <cg@exept.de>
parents: 10122
diff changeset
   231
    "Created: / 04-07-2011 / 22:44:28 / cg"
8778
32f043901469 initial checkin
fm
parents:
diff changeset
   232
! !
32f043901469 initial checkin
fm
parents:
diff changeset
   233
32f043901469 initial checkin
fm
parents:
diff changeset
   234
!NavigationHistory methodsFor:'initialization'!
32f043901469 initial checkin
fm
parents:
diff changeset
   235
10049
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   236
beGlobalHistory
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   237
    isGlobalHistory := true
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   238
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   239
    "Created: / 03-07-2011 / 14:42:57 / cg"
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   240
!
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   241
8778
32f043901469 initial checkin
fm
parents:
diff changeset
   242
initialize
32f043901469 initial checkin
fm
parents:
diff changeset
   243
    "Invoked when a new instance is created."
32f043901469 initial checkin
fm
parents:
diff changeset
   244
32f043901469 initial checkin
fm
parents:
diff changeset
   245
    "/ please change as required (and remove this comment)
32f043901469 initial checkin
fm
parents:
diff changeset
   246
    "/ items := nil.
32f043901469 initial checkin
fm
parents:
diff changeset
   247
    "/ position := nil.
32f043901469 initial checkin
fm
parents:
diff changeset
   248
32f043901469 initial checkin
fm
parents:
diff changeset
   249
    "/ super initialize.   -- commented since inherited method does nothing
32f043901469 initial checkin
fm
parents:
diff changeset
   250
    items := OrderedCollection new.
10049
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   251
    position := 0.
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   252
    isGlobalHistory := false.
12890
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
   253
    maxNumberOfItems := maxNumberOfItems ? 30.
8778
32f043901469 initial checkin
fm
parents:
diff changeset
   254
32f043901469 initial checkin
fm
parents:
diff changeset
   255
    "Created: / 21-02-2008 / 15:26:05 / janfrog"
10049
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   256
    "Modified: / 03-07-2011 / 14:43:08 / cg"
8778
32f043901469 initial checkin
fm
parents:
diff changeset
   257
! !
32f043901469 initial checkin
fm
parents:
diff changeset
   258
32f043901469 initial checkin
fm
parents:
diff changeset
   259
!NavigationHistory methodsFor:'menu & menu actions'!
32f043901469 initial checkin
fm
parents:
diff changeset
   260
12890
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
   261
clearHistory
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
   262
    self removeAll.
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
   263
    position := 0.
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
   264
    self changed.
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
   265
!
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
   266
8778
32f043901469 initial checkin
fm
parents:
diff changeset
   267
goBackMenu
12890
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
   268
    |menu any|
8778
32f043901469 initial checkin
fm
parents:
diff changeset
   269
12890
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
   270
    any := false.
8778
32f043901469 initial checkin
fm
parents:
diff changeset
   271
    menu := Menu new.
32f043901469 initial checkin
fm
parents:
diff changeset
   272
    self goBackItems do:[:item | 
12959
5e2fa8919e77 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12890
diff changeset
   273
        menu addItem:(MenuItem label:item displayString itemValue:[ self goTo:item ]).
12890
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
   274
        any := true.
8778
32f043901469 initial checkin
fm
parents:
diff changeset
   275
    ].
12890
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
   276
    menu addSeparator.
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
   277
    menu addItem:((MenuItem label:'Clear History' value:[ self clearHistory]) enabled:any).    
8778
32f043901469 initial checkin
fm
parents:
diff changeset
   278
    ^ menu
32f043901469 initial checkin
fm
parents:
diff changeset
   279
32f043901469 initial checkin
fm
parents:
diff changeset
   280
    "Created: / 22-02-2008 / 16:57:46 / janfrog"
32f043901469 initial checkin
fm
parents:
diff changeset
   281
    "Modified: / 27-02-2008 / 11:52:12 / janfrog"
32f043901469 initial checkin
fm
parents:
diff changeset
   282
!
32f043901469 initial checkin
fm
parents:
diff changeset
   283
32f043901469 initial checkin
fm
parents:
diff changeset
   284
goForwardMenu
32f043901469 initial checkin
fm
parents:
diff changeset
   285
    |menu|
32f043901469 initial checkin
fm
parents:
diff changeset
   286
32f043901469 initial checkin
fm
parents:
diff changeset
   287
    menu := Menu new.
32f043901469 initial checkin
fm
parents:
diff changeset
   288
    self goForwardItems do:[:item | 
12959
5e2fa8919e77 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12890
diff changeset
   289
        menu addItem:(MenuItem label:item displayString itemValue:[ self goTo:item ])
8778
32f043901469 initial checkin
fm
parents:
diff changeset
   290
    ].
32f043901469 initial checkin
fm
parents:
diff changeset
   291
    ^ menu
32f043901469 initial checkin
fm
parents:
diff changeset
   292
32f043901469 initial checkin
fm
parents:
diff changeset
   293
    "Created: / 22-02-2008 / 16:58:11 / janfrog"
32f043901469 initial checkin
fm
parents:
diff changeset
   294
    "Modified: / 27-02-2008 / 11:52:26 / janfrog"
32f043901469 initial checkin
fm
parents:
diff changeset
   295
! !
32f043901469 initial checkin
fm
parents:
diff changeset
   296
32f043901469 initial checkin
fm
parents:
diff changeset
   297
!NavigationHistory methodsFor:'navigation'!
32f043901469 initial checkin
fm
parents:
diff changeset
   298
32f043901469 initial checkin
fm
parents:
diff changeset
   299
goBack
10049
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   300
    | value |
8778
32f043901469 initial checkin
fm
parents:
diff changeset
   301
10049
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   302
    isGlobalHistory ifTrue:[
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   303
        items size <= 1 ifTrue:[^ nil].
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   304
        ^ self goTo:(items second).
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   305
    ].
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   306
8778
32f043901469 initial checkin
fm
parents:
diff changeset
   307
    position := (position - 1) max: 1.
32f043901469 initial checkin
fm
parents:
diff changeset
   308
    self changed: #currentItem with: (value := self currentItem).
32f043901469 initial checkin
fm
parents:
diff changeset
   309
    ^value
32f043901469 initial checkin
fm
parents:
diff changeset
   310
32f043901469 initial checkin
fm
parents:
diff changeset
   311
    "Created: / 21-02-2008 / 16:37:37 / janfrog"
32f043901469 initial checkin
fm
parents:
diff changeset
   312
    "Modified: / 27-02-2008 / 08:48:14 / janfrog"
10049
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   313
    "Modified: / 03-07-2011 / 16:19:27 / cg"
8778
32f043901469 initial checkin
fm
parents:
diff changeset
   314
!
32f043901469 initial checkin
fm
parents:
diff changeset
   315
32f043901469 initial checkin
fm
parents:
diff changeset
   316
goForward
10121
9ffc433015ec comment/format in: #goForward
Claus Gittinger <cg@exept.de>
parents: 10049
diff changeset
   317
    | value |
8778
32f043901469 initial checkin
fm
parents:
diff changeset
   318
32f043901469 initial checkin
fm
parents:
diff changeset
   319
    position := (position + 1) min: items size.
32f043901469 initial checkin
fm
parents:
diff changeset
   320
    self changed: #currentItem with: (value := self currentItem).
32f043901469 initial checkin
fm
parents:
diff changeset
   321
    ^value
32f043901469 initial checkin
fm
parents:
diff changeset
   322
32f043901469 initial checkin
fm
parents:
diff changeset
   323
    "Created: / 21-02-2008 / 16:37:37 / janfrog"
32f043901469 initial checkin
fm
parents:
diff changeset
   324
    "Modified: / 27-02-2008 / 08:48:24 / janfrog"
32f043901469 initial checkin
fm
parents:
diff changeset
   325
!
32f043901469 initial checkin
fm
parents:
diff changeset
   326
32f043901469 initial checkin
fm
parents:
diff changeset
   327
goTo: navigationHistoryItem
10049
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   328
    | idx |
8778
32f043901469 initial checkin
fm
parents:
diff changeset
   329
15844
024b2d99744a More standard behaviour of navigation history
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15566
diff changeset
   330
    idx := items lastIndexOf:navigationHistoryItem.
024b2d99744a More standard behaviour of navigation history
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15566
diff changeset
   331
    "/ do not uodate history if we go twice in a row into a same item...
024b2d99744a More standard behaviour of navigation history
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15566
diff changeset
   332
    (idx ~~ 0 and:[ idx == position ]) ifTrue:[ ^ self ].
024b2d99744a More standard behaviour of navigation history
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15566
diff changeset
   333
10049
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   334
    isGlobalHistory ifTrue:[
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   335
        idx ~~ 0 ifTrue:[
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   336
            items removeIndex:idx.
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   337
        ].
12890
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
   338
        self addFirst:navigationHistoryItem.
10121
9ffc433015ec comment/format in: #goForward
Claus Gittinger <cg@exept.de>
parents: 10049
diff changeset
   339
    ] ifFalse:[
15844
024b2d99744a More standard behaviour of navigation history
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15566
diff changeset
   340
        position < items size ifTrue:[
024b2d99744a More standard behaviour of navigation history
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15566
diff changeset
   341
            items removeFromIndex: position + 1 toIndex: items size
024b2d99744a More standard behaviour of navigation history
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15566
diff changeset
   342
        ].
024b2d99744a More standard behaviour of navigation history
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15566
diff changeset
   343
        items addLast: navigationHistoryItem.
024b2d99744a More standard behaviour of navigation history
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15566
diff changeset
   344
        items size > maxNumberOfItems ifTrue:[
024b2d99744a More standard behaviour of navigation history
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15566
diff changeset
   345
            items removeFirst
12890
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
   346
        ] ifFalse:[
15844
024b2d99744a More standard behaviour of navigation history
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15566
diff changeset
   347
            position := position + 1
10121
9ffc433015ec comment/format in: #goForward
Claus Gittinger <cg@exept.de>
parents: 10049
diff changeset
   348
        ].
10049
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   349
    ].
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   350
10121
9ffc433015ec comment/format in: #goForward
Claus Gittinger <cg@exept.de>
parents: 10049
diff changeset
   351
    "/ for the canGoXXX apect.
8778
32f043901469 initial checkin
fm
parents:
diff changeset
   352
    self changed: #value with: navigationHistoryItem.
10121
9ffc433015ec comment/format in: #goForward
Claus Gittinger <cg@exept.de>
parents: 10049
diff changeset
   353
    ^ navigationHistoryItem
8778
32f043901469 initial checkin
fm
parents:
diff changeset
   354
32f043901469 initial checkin
fm
parents:
diff changeset
   355
    "Created: / 21-02-2008 / 16:40:39 / janfrog"
32f043901469 initial checkin
fm
parents:
diff changeset
   356
    "Modified: / 21-02-2008 / 19:12:35 / janfrog"
10049
8b6c0289ff0a hack: configurable to behave either as a global history
Claus Gittinger <cg@exept.de>
parents: 9989
diff changeset
   357
    "Modified: / 03-07-2011 / 16:03:11 / cg"
15844
024b2d99744a More standard behaviour of navigation history
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15566
diff changeset
   358
    "Modified (comment): / 04-09-2015 / 07:24:16 / Jan Vrany <jan.vrany@fit.cvut.cz>"
8778
32f043901469 initial checkin
fm
parents:
diff changeset
   359
! !
32f043901469 initial checkin
fm
parents:
diff changeset
   360
32f043901469 initial checkin
fm
parents:
diff changeset
   361
!NavigationHistory methodsFor:'queries'!
32f043901469 initial checkin
fm
parents:
diff changeset
   362
32f043901469 initial checkin
fm
parents:
diff changeset
   363
canGoBack
10122
72f78f096b3d changed:
Claus Gittinger <cg@exept.de>
parents: 10121
diff changeset
   364
    isGlobalHistory ifTrue:[
72f78f096b3d changed:
Claus Gittinger <cg@exept.de>
parents: 10121
diff changeset
   365
        ^ items size > 2
72f78f096b3d changed:
Claus Gittinger <cg@exept.de>
parents: 10121
diff changeset
   366
    ].
8778
32f043901469 initial checkin
fm
parents:
diff changeset
   367
10122
72f78f096b3d changed:
Claus Gittinger <cg@exept.de>
parents: 10121
diff changeset
   368
    ^ position > 1
8778
32f043901469 initial checkin
fm
parents:
diff changeset
   369
32f043901469 initial checkin
fm
parents:
diff changeset
   370
    "Created: / 21-02-2008 / 16:40:48 / janfrog"
32f043901469 initial checkin
fm
parents:
diff changeset
   371
!
32f043901469 initial checkin
fm
parents:
diff changeset
   372
32f043901469 initial checkin
fm
parents:
diff changeset
   373
canGoForward
32f043901469 initial checkin
fm
parents:
diff changeset
   374
32f043901469 initial checkin
fm
parents:
diff changeset
   375
    ^position < items size
32f043901469 initial checkin
fm
parents:
diff changeset
   376
32f043901469 initial checkin
fm
parents:
diff changeset
   377
    "Created: / 21-02-2008 / 16:40:48 / janfrog"
32f043901469 initial checkin
fm
parents:
diff changeset
   378
! !
32f043901469 initial checkin
fm
parents:
diff changeset
   379
32f043901469 initial checkin
fm
parents:
diff changeset
   380
!NavigationHistory class methodsFor:'documentation'!
32f043901469 initial checkin
fm
parents:
diff changeset
   381
8804
905811d4c5d7 changed: #version_SVN
fm
parents: 8778
diff changeset
   382
version_CVS
14137
e8d33bcf9513 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12959
diff changeset
   383
    ^ '$Header: /cvs/stx/stx/libtool/Tools__NavigationHistory.st,v 1.17 2014-03-17 14:03:20 cg Exp $'
8804
905811d4c5d7 changed: #version_SVN
fm
parents: 8778
diff changeset
   384
!
905811d4c5d7 changed: #version_SVN
fm
parents: 8778
diff changeset
   385
8818
ffb1e1c2215f added: #version_CVS_jvrany
fm
parents: 8804
diff changeset
   386
version_CVS_jvrany
14137
e8d33bcf9513 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12959
diff changeset
   387
    ^ '$Header: /cvs/stx/stx/libtool/Tools__NavigationHistory.st,v 1.17 2014-03-17 14:03:20 cg Exp $'
9989
Claus Gittinger <cg@exept.de>
parents: 8818
diff changeset
   388
!
Claus Gittinger <cg@exept.de>
parents: 8818
diff changeset
   389
15844
024b2d99744a More standard behaviour of navigation history
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15566
diff changeset
   390
version_HG
024b2d99744a More standard behaviour of navigation history
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15566
diff changeset
   391
024b2d99744a More standard behaviour of navigation history
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15566
diff changeset
   392
    ^ '$Changeset: <not expanded> $'
024b2d99744a More standard behaviour of navigation history
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15566
diff changeset
   393
!
024b2d99744a More standard behaviour of navigation history
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15566
diff changeset
   394
9989
Claus Gittinger <cg@exept.de>
parents: 8818
diff changeset
   395
version_SVN
14137
e8d33bcf9513 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12959
diff changeset
   396
    ^ '$Id: Tools__NavigationHistory.st,v 1.17 2014-03-17 14:03:20 cg Exp $'
8778
32f043901469 initial checkin
fm
parents:
diff changeset
   397
! !
12890
0db0cf4e8a72 class: Tools::NavigationHistory
Claus Gittinger <cg@exept.de>
parents: 12058
diff changeset
   398