-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introducing IntelliJ external editor
- Loading branch information
anquetil
committed
Nov 17, 2024
1 parent
3b709fc
commit 428da08
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
src/MooseIDE-Famix/MiSourceTextExternalEditorIntellij.class.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters