Skip to content

Commit 5693ccb

Browse files
committed
Cut dependencies to UIManager and Refactoring
1 parent 6afe3ad commit 5693ccb

File tree

2 files changed

+16
-17
lines changed

2 files changed

+16
-17
lines changed

src/Chanel-Pharo11Plus/ChanelCondenseMethodsCleaner.class.st

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,5 @@ Class {
1414
{ #category : 'cleaning' }
1515
ChanelCondenseMethodsCleaner >> clean [
1616

17-
self configuration localMethods do: [ :cm |
18-
(RBRefactoryChangeFactory instance addMethodSource: (ReMethodSourceCleaner clean: cm sourceCode) in: cm origin) execute ]
17+
self configuration localMethods do: [ :cm | cm origin compile: (ReMethodSourceCleaner clean: cm sourceCode) ]
1918
]

src/Chanel/Chanel.class.st

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -154,21 +154,21 @@ Chanel >> cleanUsing: cleaners [
154154

155155
{ #category : 'cleaning' }
156156
Chanel >> cleanWithSelectedCleaners: cleaners [
157-
TinyCurrentLogger
158-
value: self class logger
159-
during: [ self
160-
execute: [ UIManager default
161-
displayProgress: 'Running Chanel'
162-
from: 1
163-
to: cleaners size
164-
during: [ :bar |
165-
cleaners
166-
doWithIndex: [ :cleaner :index |
167-
bar
168-
value: index;
169-
title: '(' , index asString , '/' , cleaners size asString , ') Running ' , cleaner printString.
170-
self execute: [ (cleaner configuration: self) clean ] recordedAs: 'Running ' , cleaner printString ] ] ]
171-
recordedAs: 'Running Chanel on: ' , (', ' join: (packages collect: #name)) ]
157+
158+
TinyCurrentLogger value: self class logger during: [
159+
self
160+
execute: [
161+
[ :bar |
162+
cleaners doWithIndex: [ :cleaner :index |
163+
bar
164+
value: index;
165+
title: '(' , index asString , '/' , cleaners size asString , ') Running ' , cleaner printString.
166+
self execute: [ (cleaner configuration: self) clean ] recordedAs: 'Running ' , cleaner printString ] ] asJob
167+
title: 'Running Chanel';
168+
min: 1;
169+
max: cleaners size;
170+
run ]
171+
recordedAs: 'Running Chanel on: ' , (', ' join: (packages collect: #name)) ]
172172
]
173173

174174
{ #category : 'accessing' }

0 commit comments

Comments
 (0)