Skip to content

Commit

Permalink
use FileRequest interaction
Browse files Browse the repository at this point in the history
  • Loading branch information
demarey committed Jun 21, 2024
1 parent 3bd7046 commit d34ce71
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 42 deletions.
10 changes: 10 additions & 0 deletions src/BaselineOfPharoLauncher/BaselineOfPharoLauncher.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ BaselineOfPharoLauncher >> baseline: spec [
self xmlParser: spec.
self clap: spec.
self objCBridge: spec.
self interactions: spec.

spec
package: 'PharoLauncher-100Compatibility';
Expand All @@ -26,6 +27,7 @@ BaselineOfPharoLauncher >> baseline: spec [
'OSSubprocess'
'OSWinSubprocess'
'Ston'
'Interactions'
'ObjCBridge'
'PharoLauncher-100Compatibility'). ];
package: 'PharoLauncher-Spec2' with: [
Expand Down Expand Up @@ -69,6 +71,14 @@ BaselineOfPharoLauncher >> clap: spec [
with: [ spec repository: 'github://pharo-contributions/clap-st:master/src' ]
]

{ #category : 'external projects' }
BaselineOfPharoLauncher >> interactions: spec [

spec
baseline: #Interactions
with: [ spec repository: 'github://pharo-contributions/interactions' ]
]

{ #category : 'external projects' }
BaselineOfPharoLauncher >> objCBridge: spec [

Expand Down
4 changes: 2 additions & 2 deletions src/PharoLauncher-Core/PhLImportImageCommand.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ PhLImportImageCommand >> importImage [
| imageFile |
imageFile := self imagesPresenter newFileRequest
title: 'Import a Pharo image (will move image, changes file and pharo-local folder)';
extensionsToShow: #('image');
path: FileLocator home;
filter: '.image';
currentFolder: FileLocator home;
chooseFile.
imageFile ifNil: [
self imagesPresenter newInformation
Expand Down
6 changes: 3 additions & 3 deletions src/PharoLauncher-Core/PhLLaunchImageFromDiskCommand.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ PhLLaunchImageFromDiskCommand >> execute [
| imageFile |
imageFile := self imagesPresenter newFileRequest
title: 'Open a Pharo image';
extensionsToShow: #('image');
path: FileLocator home;
filter: '.image';
currentFolder: FileLocator home;
chooseFile.
imageFile ifNil: [ ^ self ].
imageFile isFile ifFalse: [ ^self ].
imageFile isFile ifFalse: [ ^ self ].
^ self launchImage: (PhLImage location: imageFile).
]

Expand Down
36 changes: 0 additions & 36 deletions src/PharoLauncher-Core/PhLUIFileRequest.class.st

This file was deleted.

2 changes: 1 addition & 1 deletion src/PharoLauncher-Spec2/TPhLInteractionTrait.trait.st
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ TPhLInteractionTrait >> newConfirmation [

{ #category : 'user interaction' }
TPhLInteractionTrait >> newFileRequest [
^ PhLUIFileRequest new
^ ITFileRequest new
]

{ #category : 'user interaction' }
Expand Down

0 comments on commit d34ce71

Please sign in to comment.