From badd38589e9f1f1b30098d623105d7334555c9ad Mon Sep 17 00:00:00 2001 From: Pierre Baumard Date: Thu, 23 May 2024 17:32:47 +0200 Subject: [PATCH 1/2] Add eclipse.ini changes in README.md See #991 --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 38fdac5e8..cde2f9812 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,17 @@ Drop it into the Eclipse [drop-ins folder](http://help.eclipse.org/neon/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fmisc%2Fp2_dropins_format.html) to activate the plugin. +Paste also these lines to the `eclipse.ini` file: + +``` +--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED +--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED +--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED +--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED +--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED +--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED +``` + The plugin adds a `google-java-format` formatter implementation that can be configured in `Window > Preferences > Java > Code Style > Formatter > Formatter Implementation`. From 1ab4539ab2c9992825fea1e8c50f49c5d7e87761 Mon Sep 17 00:00:00 2001 From: Pierre Baumard Date: Fri, 24 May 2024 09:01:11 +0200 Subject: [PATCH 2/2] Restart is also required --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index cde2f9812..57217a36a 100644 --- a/README.md +++ b/README.md @@ -83,6 +83,8 @@ Paste also these lines to the `eclipse.ini` file: --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED ``` +Once you've done that, restart the IDE. + The plugin adds a `google-java-format` formatter implementation that can be configured in `Window > Preferences > Java > Code Style > Formatter > Formatter Implementation`.