1
- # JavaCompilation for BBEdit
2
- [ Jump to German description] ( #de )
1
+ # JavaCompilation for Texteditors
3
2
4
- Note: A legacy version for the popular Textwrangler-Editor exists aswell in this repository.
5
- The developer has however dropped Support for Textwrangler and is promoting BBEdit as alternative.
6
- BBEdit will offer you the same functionality as TextWrangler even after the trial period.
7
-
8
- ## English
3
+ ## What does this script do?
9
4
This script enables the compilation and execution of .java-files directly from the
10
- inteface of BBEdit . This also works with package-structures as long as this does
5
+ inteface of your Text-Editor . This also works with package-structures as long as this does
11
6
not include the use of external library-jars.
12
7
8
+ ## What Editors can be used?
9
+ This script was written for and tested with BBEdit (and previously Textwrangler). It is however agnostic of the editor
10
+ in use as long as it is called directly with the editor being the active window in the front.
11
+
12
+ Background: The script tries to use frontmost document in the frontmost application as basis for compilation and execution.
13
+ If that is your Texteditor and the Texteditor supports macOS's scripting features everything is fine.
14
+
15
+ ## Setup with BBEdit
13
16
Steps to get the scripts installed:
14
17
- open BBEdit
15
18
- click the script-icon in the menubar (it looks like an S made of paper) and click on
@@ -20,21 +23,3 @@ Steps to use the script:
20
23
- Open .java-file in BBEdit (also works when you are currently creating a java-file
21
24
but you should save the file before executing the script)
22
25
- Click on "ComplileAndRunJava" in the script-menu of BBEdit
23
-
24
-
25
- ## <a name =" de " ></a >German
26
- Dieses Skript ermöglicht es, direkt aus BBEdit heraus .java-Dateien zu kompilieren
27
- und zu starten. Dies funktioniert auch mit package-Strukturen ohne zusätzliche
28
- Library-jars.
29
-
30
- Dazu muss das Skript wie folgt installiert werden:
31
- - BBEdit öffnen
32
- - in der Menüleiste auf das Skript-Icon (sieht aus wie ein S aus Papier) klicken und auf
33
- "Open Scripts Folder" klicken.
34
- - das Skript in den Ordner kopieren
35
-
36
- Die Verwendung der Skripte verläuft wie folgt:
37
- - .java-Datei in BBEdit öffnen (funktioniert natürlich auch, wenn man selber codet
38
- und gerade eine solche Datei erstellt, in diesem Falle sollte die Datei aber auf jeden
39
- Fall gespeichert werden, bevor die nächsten Schritte ausgeführt werden)
40
- - Im Skriptmenü in BBEdit "CompileAndRunJava" aufrufen
0 commit comments