diff --git a/src/MooseIDE-Famix/MiExternalEditorOpenner.class.st b/src/MooseIDE-Famix/MiExternalEditorOpenner.class.st index e213e283..a0d13af1 100644 --- a/src/MooseIDE-Famix/MiExternalEditorOpenner.class.st +++ b/src/MooseIDE-Famix/MiExternalEditorOpenner.class.st @@ -47,9 +47,9 @@ MiExternalEditorOpenner >> pathString: anObject [ { #category : #'private - ffi' } MiExternalEditorOpenner >> privShellExecute: lpOperation file: lpFile parameters: lpParameters directory: lpDirectory show: nShowCmd [ - ^ self ffiCall: #( + ^ self ffiCall: #( FFIConstantHandle ShellExecuteA( - 0, + int 0, "Operation is not associated with a window" char* lpOperation, char* lpFile, char* lpParameters, @@ -71,9 +71,9 @@ MiExternalEditorOpenner >> visitUnix: aPlatform [ MiExternalEditorOpenner >> visitWindows: aPlatform [ self - privShellExecute: '' - file: command + privShellExecute: 'open' + file: ('"{1}"' format: { command }) parameters: ('"{1}"' format: { pathString }) directory: '' - show: 0 "SW_SHOW" + show: 5 "SW_SHOW : Activates the window and displays it in its current size and position." ] diff --git a/src/MooseIDE-Famix/MiSourceTextExternalEditorIntellij.class.st b/src/MooseIDE-Famix/MiSourceTextExternalEditorIntellij.class.st index 78149d8d..7a088c3c 100644 --- a/src/MooseIDE-Famix/MiSourceTextExternalEditorIntellij.class.st +++ b/src/MooseIDE-Famix/MiSourceTextExternalEditorIntellij.class.st @@ -25,7 +25,7 @@ MiSourceTextExternalEditorIntellij class >> editorName [ MiSourceTextExternalEditorIntellij class >> platformCommand [ ^{ #Unix -> 'intellij-idea-ultimate' . - #Windows -> 'idea64.exe' . + #Windows -> 'idea64' . #MacOS -> 'idea' . #MacOSX -> 'idea' } asDictionary at: OSPlatform current family