Skip to content

Commit

Permalink
Remove unnecessary complex code and test to now simply #openInOSFileB…
Browse files Browse the repository at this point in the history
…rowser in more recent versions of Pharo

Fix pharo-project#568
  • Loading branch information
astares committed Jun 8, 2022
1 parent dfadffa commit 3495b35
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 103 deletions.
65 changes: 0 additions & 65 deletions src/PharoLauncher-Core/PhLFileBrowser.class.st

This file was deleted.

2 changes: 1 addition & 1 deletion src/PharoLauncher-Core/PhLImage.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ PhLImage >> shouldRunInitializationScript: aBoolean [

{ #category : #printing }
PhLImage >> showNativeFolder [
PhLFileBrowser openOn: file
file asFileReference openInOSFileBrowser
]

{ #category : #'private ui' }
Expand Down
2 changes: 1 addition & 1 deletion src/PharoLauncher-Core/PhLVirtualMachine.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ PhLVirtualMachine >> removeFromSystem [

{ #category : #actions }
PhLVirtualMachine >> showInFolder [
PhLFileBrowser openOn: self vmStore / self id
(self vmStore / self id) asFileReference openInOSFileBrowser
]

{ #category : #'ston persistence' }
Expand Down
24 changes: 0 additions & 24 deletions src/PharoLauncher-Core/WinPlatform.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,6 @@ WinPlatform >> hostArchitecture [
^ processorArch
]

{ #category : #'*PharoLauncher-Core' }
WinPlatform >> privShellExecute: lpOperation file: lpFile parameters: lpParameters directory: lpDirectory show: nShowCmd [

^self ffiCall: #(
FFIConstantHandle ShellExecuteA(
0,
char* lpOperation,
char* lpFile,
char* lpParameters,
char* lpDirectory,
int nShowCmd)) module: #shell32


]

{ #category : #'*PharoLauncher-Core' }
WinPlatform >> privShellExplore: folder [
"
self privShellExplore: 'c:\'
"

^self privShellExecute: 'explore' file: folder parameters: '' directory: '' show: 5 "SW_SHOW"
]

{ #category : #'*PharoLauncher-Core' }
WinPlatform >> uname [
^ PhLVmProvider osWindows
Expand Down
12 changes: 0 additions & 12 deletions src/PharoLauncher-Tests-Core/PhLFileBrowserTest.class.st

This file was deleted.

0 comments on commit 3495b35

Please sign in to comment.