Skip to content

Commit

Permalink
Change Critic browser editor label.
Browse files Browse the repository at this point in the history
Instead of changing the dialog button size, which would be a dirty Morphic hack.
Fix #1127
  • Loading branch information
ClotildeToullec committed Sep 23, 2024
1 parent b001b51 commit e391acd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ MiCBConditionBuilderPresenter class >> ruleComponentName [
^ 'condition'
]

{ #category : #specs }
MiCBConditionBuilderPresenter class >> title [

^ 'Rules builder'
]

{ #category : #action }
MiCBConditionBuilderPresenter >> buildComponent: aCondition [

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@ MiCBContextBuilderPresenter class >> ruleComponentName [
^ 'context'
]

{ #category : #specs }
MiCBContextBuilderPresenter class >> title [

^ 'Context builder'
]

{ #category : #action }
MiCBContextBuilderPresenter >> buildComponent: aContext [

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Class {
{ #category : #labels }
MiCBRuleComponentBuilderPresenter class >> addButtonLabel [

^ 'Add {1}' format: { self ruleComponentName capitalized }
^ 'Add'
]

{ #category : #labels }
Expand Down Expand Up @@ -67,7 +67,8 @@ MiCBRuleComponentBuilderPresenter >> actionButton [
iconName: #glamorousEdit;
action: [
self editComponent.
self withWindowDo: #close ] ]
self withWindowDo: #close ];
yourself ]
]

{ #category : #action }
Expand Down Expand Up @@ -154,6 +155,10 @@ MiCBRuleComponentBuilderPresenter >> initializePresenters [
MiCBRuleComponentBuilderPresenter >> initializeWindow: aWindowPresenter [

super initializeWindow: aWindowPresenter.
aWindowPresenter title:
self class ruleComponentName capitalized , (isForEdition
ifTrue: [ ' editor' ]
ifFalse: [ ' builder' ]).
aWindowPresenter initialExtent: self class initialExtent
]

Expand Down

0 comments on commit e391acd

Please sign in to comment.