Skip to content

Commit

Permalink
Introducing IntelliJ external editor
Browse files Browse the repository at this point in the history
  • Loading branch information
anquetil committed Nov 17, 2024
1 parent 3b709fc commit 428da08
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
44 changes: 44 additions & 0 deletions src/MooseIDE-Famix/MiSourceTextExternalEditorIntellij.class.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
"
External source text editor using IntelliJ
"
Class {
#name : #MiSourceTextExternalEditorIntellij,
#superclass : #MiSourceTextFileExternalEditor,
#classInstVars : [
'editorCommand'
],
#category : #'MooseIDE-Famix-SourceText'
}

{ #category : #'as yet unclassified' }
MiSourceTextExternalEditorIntellij class >> editorCommand [

^editorCommand ifNil: [ editorCommand := self platformCommand ]
]

{ #category : #'as yet unclassified' }
MiSourceTextExternalEditorIntellij class >> editorName [
^'IntelliJ'
]

{ #category : #'as yet unclassified' }
MiSourceTextExternalEditorIntellij class >> platformCommand [

^{ #Unix -> 'intellij-idea-ultimate' .
#Windows -> 'idea64.exe' .
#MacOS -> 'idea' .
#MacOSX -> 'idea' } asDictionary
at: OSPlatform current family
]

{ #category : #'as yet unclassified' }
MiSourceTextExternalEditorIntellij class >> resetEditorCommand [

editorCommand := nil
]

{ #category : #'file support' }
MiSourceTextExternalEditorIntellij >> openFile: aFileReference [

MiExternalEditorOpenner open: aFileReference fullName using: self class editorCommand
]
3 changes: 3 additions & 0 deletions src/MooseIDE-Famix/MiSourceTextExternalEditorVSCode.class.st
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
"
External source text editor using VSCode
"
Class {
#name : #MiSourceTextExternalEditorVSCode,
#superclass : #MiSourceTextFileExternalEditor,
Expand Down

0 comments on commit 428da08

Please sign in to comment.