diff --git a/src/PharoLauncher-Spec2/PharoLauncherApplication.class.st b/src/PharoLauncher-Spec2/PharoLauncherApplication.class.st index 4c660908..00997130 100644 --- a/src/PharoLauncher-Spec2/PharoLauncherApplication.class.st +++ b/src/PharoLauncher-Spec2/PharoLauncherApplication.class.st @@ -57,6 +57,17 @@ PharoLauncherApplication class >> defaultInitializationScriptLocation [ ^ FileLocator launcherUserFilesLocation / 'scripts' ] +{ #category : #'file service' } +PharoLauncherApplication class >> fileReaderServicesForFile: fullName suffix: suffix [ + + + + ^ suffix = 'image' + ifTrue: [ + { SimpleServiceEntry provider: self label: 'Launch image' selector: #launchImage: } ] + ifFalse: [ #() ] +] + { #category : #settings } PharoLauncherApplication class >> hardResetPersistanceState [ ^false @@ -116,6 +127,13 @@ PharoLauncherApplication class >> isDeployed [ ^ IsDeployed ifNil: [ IsDeployed := false ] ] +{ #category : #'file service' } +PharoLauncherApplication class >> launchImage: fullName [ + + (PhLLaunchImageFromDiskCommand forContext: self default mainPresenter) + launchImage: (PhLImage location: fullName asFileReference) +] + { #category : #'world menu' } PharoLauncherApplication class >> menuCommandOn: aBuilder [