Skip to content

Commit

Permalink
Merge pull request #1885 from Ducasse/Pharo13
Browse files Browse the repository at this point in the history
Cleaning Spec
  • Loading branch information
Ducasse authored Jan 26, 2025
2 parents fe9d746 + 11fe7b5 commit a38b9e6
Show file tree
Hide file tree
Showing 57 changed files with 291 additions and 336 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,6 @@ IceGitHubAcceptPullRequestPresenter >> onAccept: aBlock [
acceptBlock := aBlock
]

{ #category : 'specs' }
IceGitHubAcceptPullRequestPresenter >> titleForWindow [

^ 'Accept pull request'
]

{ #category : 'accessing' }
IceGitHubAcceptPullRequestPresenter >> type [

Expand All @@ -146,3 +140,9 @@ IceGitHubAcceptPullRequestPresenter >> typeList [

^ typeList
]

{ #category : 'specs' }
IceGitHubAcceptPullRequestPresenter >> windowTitle [

^ 'Accept pull request'
]
Original file line number Diff line number Diff line change
Expand Up @@ -406,12 +406,6 @@ IceGitHubCreatePullRequestPresenter >> requestGitRepositoryInfo [
getRepository: remote owner project: remote projectBasename
]

{ #category : 'specs' }
IceGitHubCreatePullRequestPresenter >> titleForWindow [

^ 'New pull request'
]

{ #category : 'accessing - ui' }
IceGitHubCreatePullRequestPresenter >> titleLabel [

Expand Down Expand Up @@ -445,3 +439,9 @@ IceGitHubCreatePullRequestPresenter >> updatePresenter [
titleTextInput text: self proposedTitle.
bodyText text: self proposedComment
]

{ #category : 'specs' }
IceGitHubCreatePullRequestPresenter >> windowTitle [

^ 'New pull request'
]
12 changes: 6 additions & 6 deletions Iceberg-Plugin-GitHub/IceGitHubNewBranchFromIssuePanel.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,6 @@ IceGitHubNewBranchFromIssuePanel >> selectRemoteModel [
on: self model entity ]
]

{ #category : 'initialization' }
IceGitHubNewBranchFromIssuePanel >> titleForWindow [

^ 'New branch from issue'
]

{ #category : 'accessing' }
IceGitHubNewBranchFromIssuePanel >> unknownTitle [

Expand Down Expand Up @@ -224,3 +218,9 @@ IceGitHubNewBranchFromIssuePanel >> wait: time thenDo: aBlock [
aBlock value ]
forkNamed: 'GitHub issue tracker'
]

{ #category : 'initialization' }
IceGitHubNewBranchFromIssuePanel >> windowTitle [

^ 'New branch from issue'
]
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ IceGitHubRejectPullRequestPresenter >> onAccept: aBlock [
]

{ #category : 'specs' }
IceGitHubRejectPullRequestPresenter >> titleForWindow [
IceGitHubRejectPullRequestPresenter >> windowTitle [

^ 'Reject pull request'
]
14 changes: 7 additions & 7 deletions Iceberg-Plugin-GitHub/IceGitHubRemoveBranchesPresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -124,16 +124,16 @@ IceGitHubRemoveBranchesPresenter >> timeSinceLastCommit: branch [
^ '{1} days' format: {(Date today - lastCommitDate) days}
]

{ #category : 'initialization' }
IceGitHubRemoveBranchesPresenter >> titleForWindow [

^ 'Select branches to remove on remote {1}' format:
{ self remote name }
]

{ #category : 'private' }
IceGitHubRemoveBranchesPresenter >> triggerAcceptAction [

acceptBlock ifNil: [ ^ self ].
acceptBlock value: selectedItems
]

{ #category : 'initialization' }
IceGitHubRemoveBranchesPresenter >> windowTitle [

^ 'Select branches to remove on remote {1}' format:
{ self remote name }
]
14 changes: 7 additions & 7 deletions Iceberg-Plugin-GitHub/IceGitHubTipPullRequestBrowser.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -285,15 +285,15 @@ IceGitHubTipPullRequestBrowser >> setModelBeforeInitialization: aModel [
self repositoryModel: aModel
]

{ #category : 'accessing' }
IceGitHubTipPullRequestBrowser >> titleForWindow [

^ 'Browsing pull request: #{1} {2}' format: { self pullRequest number. self pullRequest title }

]

{ #category : 'initialization' }
IceGitHubTipPullRequestBrowser >> updatePresenter [

self refresh
]

{ #category : 'accessing' }
IceGitHubTipPullRequestBrowser >> windowTitle [

^ 'Browsing pull request: #{1} {2}' format: { self pullRequest number. self pullRequest title }

]
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,6 @@ IceTipGitHubPullRequestListBrowser >> strongSelection: aSelection [
self viewPullRequest: aSelection selectedItem
]

{ #category : 'initialization' }
IceTipGitHubPullRequestListBrowser >> titleForWindow [

^ 'Pull requests on {1} ({2})' format: { self remote name. self remote url }
]

{ #category : 'private' }
IceTipGitHubPullRequestListBrowser >> updateSelectedPullRequest: aSpSingleSelectionMode [

Expand All @@ -215,3 +209,9 @@ IceTipGitHubPullRequestListBrowser >> viewPullRequest: aPullRequest [
pullRequest: aPullRequest)
open ]
]

{ #category : 'initialization' }
IceTipGitHubPullRequestListBrowser >> windowTitle [

^ 'Pull requests on {1} ({2})' format: { self remote name. self remote url }
]
14 changes: 7 additions & 7 deletions Iceberg-Plugin-GitHub/IceTipGitHubRepositoryPanel.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,6 @@ IceTipGitHubRepositoryPanel >> getGitHubRepository [
error pass ]
]

{ #category : 'initialization' }
IceTipGitHubRepositoryPanel >> iconForWindow [

^ (self iconNamed: #github) lighter: 0.50 "just to be sure is visible in all themes"
]

{ #category : 'accessing' }
IceTipGitHubRepositoryPanel >> newRepository [

Expand Down Expand Up @@ -73,7 +67,13 @@ IceTipGitHubRepositoryPanel >> providerName [
]

{ #category : 'initialization' }
IceTipGitHubRepositoryPanel >> titleForWindow [
IceTipGitHubRepositoryPanel >> windowIcon [

^ (self iconNamed: #github) lighter: 0.50 "just to be sure is visible in all themes"
]

{ #category : 'initialization' }
IceTipGitHubRepositoryPanel >> windowTitle [

^ 'Clone from github.com'
]
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ IceTipFiletreeToTonelDialogPresenter >> setModelBeforeInitialization: anObject [
]

{ #category : 'initialization' }
IceTipFiletreeToTonelDialogPresenter >> titleForWindow [
IceTipFiletreeToTonelDialogPresenter >> windowTitle [

^ 'Convert sources to tonel'
]
14 changes: 7 additions & 7 deletions Iceberg-Plugin/IceTipBitbucketRepositoryPanel.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@ IceTipBitbucketRepositoryPanel >> configureBuilder: aBuilder [
aBuilder beBitbucket
]

{ #category : 'initialization' }
IceTipBitbucketRepositoryPanel >> iconForWindow [

^ self iconNamed: #bitbucket
]

{ #category : 'accessing' }
IceTipBitbucketRepositoryPanel >> providerName [

^ 'Bitbucket'
]

{ #category : 'initialization' }
IceTipBitbucketRepositoryPanel >> titleForWindow [
IceTipBitbucketRepositoryPanel >> windowIcon [

^ self iconNamed: #bitbucket
]

{ #category : 'initialization' }
IceTipBitbucketRepositoryPanel >> windowTitle [

^ 'Clone from bitbucket.org'
]
14 changes: 7 additions & 7 deletions Iceberg-Plugin/IceTipGitLabRepositoryPanel.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@ IceTipGitLabRepositoryPanel >> configureBuilder: aBuilder [
aBuilder beGitLab
]

{ #category : 'initialization' }
IceTipGitLabRepositoryPanel >> iconForWindow [

^ self iconNamed: #gitlab
]

{ #category : 'accessing' }
IceTipGitLabRepositoryPanel >> providerName [

^ 'GitLab'
]

{ #category : 'initialization' }
IceTipGitLabRepositoryPanel >> titleForWindow [
IceTipGitLabRepositoryPanel >> windowIcon [

^ self iconNamed: #gitlab
]

{ #category : 'initialization' }
IceTipGitLabRepositoryPanel >> windowTitle [

^ 'Clone from gitlab.com'
]
24 changes: 12 additions & 12 deletions Iceberg-TipUI/IceTipAddNewPackagesDialogPresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,6 @@ IceTipAddNewPackagesDialogPresenter >> defaultLayout [
yourself
]

{ #category : 'initialization' }
IceTipAddNewPackagesDialogPresenter >> iconForWindow [

^ self iconNamed: #branch
]

{ #category : 'initialization' }
IceTipAddNewPackagesDialogPresenter >> initializePackagesList [

Expand Down Expand Up @@ -140,12 +134,6 @@ IceTipAddNewPackagesDialogPresenter >> setModelBeforeInitialization: somePackage
packages := somePackages
]

{ #category : 'initialization' }
IceTipAddNewPackagesDialogPresenter >> titleForWindow [

^ 'Select New Packages to Load'.
]

{ #category : 'initialization' }
IceTipAddNewPackagesDialogPresenter >> updatePresenter [

Expand All @@ -159,3 +147,15 @@ IceTipAddNewPackagesDialogPresenter >> validate [
assert: self selectedPackage isNotNil
description: 'Please select a branch to checkout.'
]

{ #category : 'initialization' }
IceTipAddNewPackagesDialogPresenter >> windowIcon [

^ self iconNamed: #branch
]

{ #category : 'initialization' }
IceTipAddNewPackagesDialogPresenter >> windowTitle [

^ 'Select New Packages to Load'.
]
24 changes: 12 additions & 12 deletions Iceberg-TipUI/IceTipAddPackagesDialogPresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,6 @@ IceTipAddPackagesDialogPresenter >> defaultLayout [
yourself
]

{ #category : 'initialization' }
IceTipAddPackagesDialogPresenter >> iconForWindow [

^ self iconNamed: #branch
]

{ #category : 'initialization' }
IceTipAddPackagesDialogPresenter >> initializePackageNameText [

Expand Down Expand Up @@ -147,12 +141,6 @@ IceTipAddPackagesDialogPresenter >> setModelBeforeInitialization: anObject [
model := anObject
]

{ #category : 'initialization' }
IceTipAddPackagesDialogPresenter >> titleForWindow [

^ 'Add packages'
]

{ #category : 'initialization' }
IceTipAddPackagesDialogPresenter >> updatePresenter [

Expand All @@ -166,3 +154,15 @@ IceTipAddPackagesDialogPresenter >> validate [
assert: self selectedPackage isNotNil
description: 'Please select a branch to checkout.'
]

{ #category : 'initialization' }
IceTipAddPackagesDialogPresenter >> windowIcon [

^ self iconNamed: #branch
]

{ #category : 'initialization' }
IceTipAddPackagesDialogPresenter >> windowTitle [

^ 'Add packages'
]
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ IceTipAddPlaintextCredentialsPresenter >> isOkEnabled [
]

{ #category : 'initialization' }
IceTipAddPlaintextCredentialsPresenter >> titleForWindow [
IceTipAddPlaintextCredentialsPresenter >> windowTitle [

^ 'Add new Plain Text Credential'
]
12 changes: 6 additions & 6 deletions Iceberg-TipUI/IceTipAddRemoteDialogPresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,6 @@ IceTipAddRemoteDialogPresenter >> setModelBeforeInitialization: anObject [
model := anObject
]

{ #category : 'initialization' }
IceTipAddRemoteDialogPresenter >> titleForWindow [

^ 'Add remote'
]

{ #category : 'accessing - ui' }
IceTipAddRemoteDialogPresenter >> urlLabel [

Expand All @@ -145,3 +139,9 @@ IceTipAddRemoteDialogPresenter >> validate [
description: 'You need to specify a remote url.'

]

{ #category : 'initialization' }
IceTipAddRemoteDialogPresenter >> windowTitle [

^ 'Add remote'
]
2 changes: 1 addition & 1 deletion Iceberg-TipUI/IceTipAddSSHCredentialsPresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ IceTipAddSSHCredentialsPresenter >> newCredentials [
]

{ #category : 'initialization' }
IceTipAddSSHCredentialsPresenter >> titleForWindow [
IceTipAddSSHCredentialsPresenter >> windowTitle [

^ 'Add SSH credential'
]
12 changes: 6 additions & 6 deletions Iceberg-TipUI/IceTipAddTokenCredentialsPresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,6 @@ IceTipAddTokenCredentialsPresenter >> newCredentials [
yourself
]

{ #category : 'initialization' }
IceTipAddTokenCredentialsPresenter >> titleForWindow [

^ 'Add token credentials'
]

{ #category : 'accessing' }
IceTipAddTokenCredentialsPresenter >> tokenFromInput [

Expand All @@ -116,3 +110,9 @@ IceTipAddTokenCredentialsPresenter >> usernameFromInput [

^ usernameInput text
]

{ #category : 'initialization' }
IceTipAddTokenCredentialsPresenter >> windowTitle [

^ 'Add token credentials'
]
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ IceTipAskForPlaintextCredentialsPresenter >> defaultLayout [
]

{ #category : 'initialization' }
IceTipAskForPlaintextCredentialsPresenter >> titleForWindow [
IceTipAskForPlaintextCredentialsPresenter >> windowTitle [

^ 'Please log in to ' , askingHostname
]
Loading

0 comments on commit a38b9e6

Please sign in to comment.