SVN__WCActionNotification.st
author convert-repo
Tue, 09 Aug 2016 03:35:30 +0000
changeset 1178 3a6dad9479fd
parent 854 3b004dbab74d
permissions -rw-r--r--
update tags
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
710
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
     1
"
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
     2
 Copyright (c) 2007-2010 Jan Vrany
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
     3
 Copyright (c) 2009-2010 eXept Software AG
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
     4
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
     5
 Permission is hereby granted, free of charge, to any person
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
     6
 obtaining a copy of this software and associated documentation
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
     7
 files (the 'Software'), to deal in the Software without
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
     8
 restriction, including without limitation the rights to use,
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
     9
 copy, modify, merge, publish, distribute, sublicense, and/or sell
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    10
 copies of the Software, and to permit persons to whom the
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    11
 Software is furnished to do so, subject to the following
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    12
 conditions:
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    13
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    14
 The above copyright notice and this permission notice shall be
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    15
 included in all copies or substantial portions of the Software.
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    16
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    17
 THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    18
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    19
 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    20
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    21
 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    22
 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    23
 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    24
 OTHER DEALINGS IN THE SOFTWARE.
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    25
"
400
b4b4dd86328e *** empty log message ***
fm
parents: 273
diff changeset
    26
"{ Package: 'stx:libsvn' }"
54
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
    27
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
    28
"{ NameSpace: SVN }"
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
    29
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
    30
Notification subclass:#WCActionNotification
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
    31
	instanceVariableNames:'action entry'
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
    32
	classVariableNames:''
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
    33
	poolDictionaries:''
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
    34
	category:'SVN-Working copy'
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
    35
!
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
    36
710
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    37
!WCActionNotification class methodsFor:'documentation'!
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    38
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    39
copyright
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    40
"
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    41
 Copyright (c) 2007-2010 Jan Vrany
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    42
 Copyright (c) 2009-2010 eXept Software AG
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    43
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    44
 Permission is hereby granted, free of charge, to any person
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    45
 obtaining a copy of this software and associated documentation
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    46
 files (the 'Software'), to deal in the Software without
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    47
 restriction, including without limitation the rights to use,
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    48
 copy, modify, merge, publish, distribute, sublicense, and/or sell
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    49
 copies of the Software, and to permit persons to whom the
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    50
 Software is furnished to do so, subject to the following
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    51
 conditions:
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    52
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    53
 The above copyright notice and this permission notice shall be
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    54
 included in all copies or substantial portions of the Software.
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    55
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    56
 THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    57
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    58
 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    59
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    60
 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    61
 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    62
 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    63
 OTHER DEALINGS IN THE SOFTWARE.
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    64
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    65
"
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    66
! !
54
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
    67
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
    68
!WCActionNotification class methodsFor:'instance creation'!
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
    69
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
    70
readFromString: string 
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
    71
    ^ self new readFromString: string
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
    72
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
    73
    "Created: / 16-03-2008 / 08:53:50 / janfrog"
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
    74
!
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
    75
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
    76
readFromXml: xmlNode 
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
    77
    ^ self new readFromXml: xmlNode
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
    78
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
    79
    "Created: / 24-06-2009 / 15:02:25 / Jan Vrany <vranyj1@fel.cvut.cz>"
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
    80
! !
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
    81
710
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    82
!WCActionNotification class methodsFor:'others'!
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    83
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    84
version_CVS
854
3b004dbab74d checkin to get version methods correct
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 710
diff changeset
    85
    ^ '$Header$'
710
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    86
! !
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
    87
54
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
    88
!WCActionNotification methodsFor:'accessing'!
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
    89
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
    90
action
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
    91
    ^ action
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
    92
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
    93
    "Created: / 31-03-2008 / 11:09:26 / janfrog"
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
    94
!
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
    95
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
    96
action:aWCAction
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
    97
    action := aWCAction.
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
    98
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
    99
    "Created: / 31-03-2008 / 11:09:26 / janfrog"
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   100
!
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   101
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   102
entry
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   103
    ^ entry
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   104
!
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   105
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   106
entry:aWCEntry
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   107
    entry := aWCEntry.
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   108
!
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   109
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   110
icon
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   111
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   112
    ^action icon
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   113
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   114
    "Created: / 24-06-2009 / 15:08:17 / Jan Vrany <vranyj1@fel.cvut.cz>"
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   115
!
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   116
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   117
path
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   118
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   119
    ^entry path
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   120
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   121
    "Created: / 27-08-2009 / 08:45:12 / Jan Vrany <jan.vrany@fit.cvut.cz>"
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   122
!
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   123
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   124
wc: aSVNWorkingCopy
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   125
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   126
    ^entry wc: aSVNWorkingCopy
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   127
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   128
    "Created: / 27-08-2009 / 09:50:27 / Jan Vrany <jan.vrany@fit.cvut.cz>"
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   129
! !
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   130
710
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
   131
!WCActionNotification methodsFor:'displaying'!
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
   132
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
   133
displayString
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
   134
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
   135
    | icon |
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
   136
    (icon := action icon)
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
   137
        ifNil:[^(LabelAndIcon string: entry path) offset: 20; yourself]
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
   138
        ifNotNil:[^LabelAndIcon label: entry path icon: action icon]
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
   139
! !
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
   140
54
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   141
!WCActionNotification methodsFor:'initialization'!
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   142
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   143
readFromString: string 
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   144
    | pair path |
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   145
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   146
    pair := string tokensBasedOn: Character space.
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   147
710
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
   148
    action := WCAction actionNamed: (string copyTo:1).
54
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   149
    path := pair last.
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   150
    (path first = $' and: [ path last = $' ]) 
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   151
        ifTrue: [ path := path copyFrom: 2 to: path size - 1 ].
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   152
    entry := WCEntry path: path
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   153
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   154
    "Created: / 16-03-2008 / 08:54:44 / janfrog"
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   155
    "Modified: / 16-03-2008 / 10:06:42 / janfrog"
710
328ae5ac0cc6 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 400
diff changeset
   156
    "Modified: / 02-11-2009 / 17:24:55 / Jan Vrany <jan.vrany@fit.cvut.cz>"
54
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   157
!
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   158
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   159
readFromXml: xml 
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   160
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   161
    | path |
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   162
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   163
    "
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   164
     <path
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   165
       action='M'>/trunk/extensions.st</path>"
248
dcc4632d5fd9 changed: #readFromXml:
fm
parents: 193
diff changeset
   166
54
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   167
    action := WCAction actionNamed: (xml @ 'action').
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   168
    path := xml characterData.
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   169
     "Strip branch prefix"
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   170
    (path startsWith: '/trunk/') 
248
dcc4632d5fd9 changed: #readFromXml:
fm
parents: 193
diff changeset
   171
        ifTrue: [ path := path "entry" copyFrom: ('/trunk/' size) + 1 ]
54
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   172
        ifFalse: 
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   173
            [ ((path startsWith: '/branches/') or: [ path startsWith: '/tags/' ]) 
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   174
                ifTrue: 
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   175
                    [ | idx |
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   176
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   177
                    idx := path indexOf: $/ startingAt: 2.
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   178
                    idx := path indexOf: $/ startingAt: idx + 1.
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   179
                    idx isZero ifFalse: [ path := path copyFrom: idx + 1 ] ] ].
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   180
    entry := WCEntry path: path.
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   181
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   182
    "Modified: / 16-03-2008 / 10:06:42 / janfrog"
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   183
    "Created: / 24-06-2009 / 15:00:43 / Jan Vrany <vranyj1@fel.cvut.cz>"
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   184
    "Modified: / 27-08-2009 / 08:22:12 / Jan Vrany <jan.vrany@fit.cvut.cz>"
248
dcc4632d5fd9 changed: #readFromXml:
fm
parents: 193
diff changeset
   185
    "Modified: / 01-10-2009 / 16:17:58 / Felix Madrid <fm@exept.de>"
54
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   186
! !
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   187
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   188
!WCActionNotification methodsFor:'printing'!
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   189
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   190
printOn: stream
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   191
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   192
    action printOn: stream.
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   193
    stream tab.
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   194
    entry printOn: stream
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   195
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   196
    "Created: / 16-03-2008 / 09:01:46 / janfrog"
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   197
! !
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   198
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   199
!WCActionNotification methodsFor:'processing'!
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   200
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   201
processUsing: processor 
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   202
    ^ action processEntry: entry using: processor
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   203
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   204
    "Created: / 27-08-2009 / 08:52:59 / Jan Vrany <jan.vrany@fit.cvut.cz>"
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   205
! !
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   206
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   207
!WCActionNotification class methodsFor:'documentation'!
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   208
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   209
version
854
3b004dbab74d checkin to get version methods correct
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 710
diff changeset
   210
    ^ '$Header$'
193
dd0c310d703b changed: #version_SVN
fm
parents: 54
diff changeset
   211
!
dd0c310d703b changed: #version_SVN
fm
parents: 54
diff changeset
   212
dd0c310d703b changed: #version_SVN
fm
parents: 54
diff changeset
   213
version_SVN
854
3b004dbab74d checkin to get version methods correct
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 710
diff changeset
   214
    ^ '§Id: SVN__WCActionNotification.st 363 2011-08-08 13:49:48Z vranyj1 §'
54
1c7de0ad7352 initial checkin
fm
parents:
diff changeset
   215
! !