Skip to content

Commit 972a489

Browse files
committed
Fixed autocomplete and all other preprocessor issues
1 parent d057c46 commit 972a489

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ kaml = { module = "com.charleskorn.kaml:kaml", version = "0.65.0" }
1414
junit = { module = "junit:junit", version = "4.13.2" }
1515
mockito = { module = "org.mockito:mockito-core", version = "4.11.0" }
1616
antlr = { module = "org.antlr:antlr4", version = "4.7.2" }
17-
eclipseJDT = { module = "org.eclipse.jdt:org.eclipse.jdt.core", version = "3.40.0" }
17+
eclipseJDT = { module = "org.eclipse.jdt:org.eclipse.jdt.core", version = "3.16.0" }
1818
classpathExplorer = { module = "com.google.classpath-explorer:classpath-explorer", version = "1.0" }
1919
netbeansSwing = { module = "org.netbeans.api:org-netbeans-swing-outline", version = "RELEASE210" }
2020
ant = { module = "org.apache.ant:ant", version = "1.10.14" }

java/src/processing/mode/java/RuntimePathBuilder.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,7 @@
3636

3737
import com.google.classpath.ClassPathFactory;
3838

39-
import processing.app.Library;
40-
import processing.app.Messages;
41-
import processing.app.Sketch;
42-
import processing.app.SketchException;
43-
import processing.app.Util;
39+
import processing.app.*;
4440
import processing.mode.java.preproc.ImportStatement;
4541

4642

@@ -576,7 +572,7 @@ protected boolean isIgnorableForSketchPath(String packageName) {
576572
*/
577573
protected String findFullyQualifiedJarName(String jarName) {
578574
StringJoiner joiner = new StringJoiner(File.separator);
579-
joiner.add(System.getProperty("java.home"));
575+
joiner.add(Platform.getJavaHome().getAbsolutePath());
580576
joiner.add("lib");
581577
joiner.add(jarName);
582578

@@ -592,7 +588,7 @@ protected String findFullyQualifiedJarName(String jarName) {
592588
*/
593589
protected String buildForModule(String moduleName) {
594590
StringJoiner jmodPathJoiner = new StringJoiner(File.separator);
595-
jmodPathJoiner.add(System.getProperty("java.home"));
591+
jmodPathJoiner.add(Platform.getJavaHome().getAbsolutePath());
596592
jmodPathJoiner.add("jmods");
597593
jmodPathJoiner.add(moduleName);
598594
return jmodPathJoiner.toString();

0 commit comments

Comments
 (0)