Skip to content

Commit

Permalink
Fixing the code as the return of informDuring: now works
Browse files Browse the repository at this point in the history
  • Loading branch information
tesonep committed Dec 1, 2023
1 parent a79d100 commit 32d3150
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 26 deletions.
14 changes: 7 additions & 7 deletions Iceberg-TipUI/IceTipGitRepositoryPanel.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ IceTipGitRepositoryPanel >> initializePresenters [
{ #category : 'accessing' }
IceTipGitRepositoryPanel >> newRepository [

self application
^ self application
informUser: ('Cloning repository {1}' format: { self remoteUrl })
during: [
^ IceRepositoryCreator new
repository: repository;
remote: (IceGitRemote url: self remoteUrl);
location: self projectLocation location;
createRepository ]
during: [
IceRepositoryCreator new
repository: repository;
remote: (IceGitRemote url: self remoteUrl);
location: self projectLocation location;
createRepository ]
]

{ #category : 'accessing' }
Expand Down
19 changes: 9 additions & 10 deletions Iceberg-TipUI/IceTipLocalRepositoryPanel.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,15 @@ IceTipLocalRepositoryPanel >> location: aReferenceOrString [
{ #category : 'accessing' }
IceTipLocalRepositoryPanel >> newRepository [

| repo |
self application
informUser: ('Importing repository from {1}' format: { self location fullName })
during: [
repo := IceRepositoryCreator new
repository: repository;
location: self location;
createRepository ].

^ repo
^ self application
informUser:
('Importing repository from {1}' format: { self location fullName })
during: [
IceRepositoryCreator new
repository: repository;
location: self location;
createRepository ].

]

{ #category : 'initialization' }
Expand Down
20 changes: 11 additions & 9 deletions Iceberg-TipUI/IceTipNewRepositoryPanel.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,17 @@ IceTipNewRepositoryPanel >> newRepository [
repositoryName := self projectNameInputText text trimmed.
location := self projectLocation location.
subdirectory := self subdirectoryInputText text asString trimmed.

self application
informUser: ('Cloning repository {1} at {2}' format: { repositoryName. location fullName })
during: [
^ IceRepositoryCreator new
repository: repository;
location: location;
subdirectory: subdirectory;
createNewRepositoryNamed: repositoryName ]

^ self application
informUser: ('Cloning repository {1} at {2}' format: {
repositoryName.
location fullName })
during: [
IceRepositoryCreator new
repository: repository;
location: location;
subdirectory: subdirectory;
createNewRepositoryNamed: repositoryName ]
]

{ #category : 'accessing - ui' }
Expand Down

0 comments on commit 32d3150

Please sign in to comment.