Skip to content

Commit daf6e4d

Browse files
committed
added preview in the tile of the builder
1 parent e7c6a02 commit daf6e4d

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

src/RewriteRuleBuilder/RewriteRuleBuilderPresenter.class.st

+11-8
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ RewriteRuleBuilderPresenter class >> iconName [
5555
RewriteRuleBuilderPresenter class >> menuCommandOn: aBuilder [
5656

5757
<worldMenu>
58-
(aBuilder item: 'RewriteRuleBuilder')
58+
(aBuilder item: 'RewriteRuleBuilder (preview)')
5959
parent: #Tools;
6060
action: [ self open ];
6161
order: 33;
@@ -253,7 +253,7 @@ RewriteRuleBuilderPresenter >> initializePresenters [
253253
RewriteRuleBuilderPresenter >> initializeWindow: aWindowPresenter [
254254

255255
aWindowPresenter
256-
title: self class title;
256+
title: self class title, '(Preview version)';
257257
initialExtent: 840 @ 650;
258258
windowIcon: self class icon;
259259
askOkToClose: false;
@@ -389,12 +389,15 @@ RewriteRuleBuilderPresenter >> rhs: aString [
389389
{ #category : #actions }
390390
RewriteRuleBuilderPresenter >> saveRule [
391391

392-
^ RTCustomRuleGenerator new
393-
searchFor: self lhs;
394-
replaceWith: self rhs;
395-
inputCode: self inputCode;
396-
outputCode: self outputCode;
397-
storeRule: loadedRule className isForMethod: false
392+
| ruleHolder |
393+
ruleHolder := RTRuleHolder
394+
lhs: self lhs
395+
rhs: self rhs
396+
isForMethod: false
397+
inputCode: self inputCode
398+
outputCode: self outputCode.
399+
400+
^ RTRuleSaver storeRuleOnDisk: ruleHolder
398401
]
399402

400403
{ #category : #accessing }

0 commit comments

Comments
 (0)