Skip to content

Commit

Permalink
Rewrite IDE in Swing
Browse files Browse the repository at this point in the history
  • Loading branch information
Thihup committed May 27, 2024
1 parent 5cf8b97 commit bad3dc7
Show file tree
Hide file tree
Showing 9 changed files with 790 additions and 810 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ DOT : '.';
ID : [a-z_][a-z0-9_]*;
// Comments
COMMENT : '//' ~[\r\n]* -> skip;
COMMENT : '//' ~[\r\n]* -> channel(HIDDEN);
// Whitespace
WS : [ \t\r\n]+ -> skip;
WS : [ \t\r\n]+ -> channel(HIDDEN);
6 changes: 2 additions & 4 deletions dev.thihup.jvisualg.frontend/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import org.jspecify.annotations.NullMarked;

@NullMarked
module dev.thihup.jvisualg.frontend {
requires org.antlr.antlr4.runtime;
requires org.jspecify;
Expand All @@ -11,6 +8,7 @@
dev.thihup.jvisualg.interpreter, dev.thihup.jvisualg.ide;
exports dev.thihup.jvisualg.frontend to
dev.thihup.jvisualg.lsp,
dev.thihup.jvisualg.interpreter;
dev.thihup.jvisualg.interpreter, dev.thihup.jvisualg.ide;
exports dev.thihup.jvisualg.frontend.impl.antlr;

}
56 changes: 15 additions & 41 deletions dev.thihup.jvisualg.ide/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@
<name>JVisualG</name>

<properties>
<mainClass>dev.thihup.jvisualg.ide.Main</mainClass>
<mainClass>dev.thihup.jvisualg.ide.SwingIDE</mainClass>
<native.maven.plugin.version>0.9.12</native.maven.plugin.version>
<imageName>JVisualG</imageName>
<javafx.version>22</javafx.version>
<autoClose>false</autoClose>
</properties>

Expand All @@ -33,52 +32,27 @@
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>${javafx.version}</version>
<groupId>com.fifesoft</groupId>
<artifactId>rsyntaxtextarea</artifactId>
<version>3.4.0</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-fxml</artifactId>
<version>${javafx.version}</version>
<groupId>com.formdev</groupId>
<artifactId>flatlaf</artifactId>
<version>3.4.1</version>
</dependency>
<dependency>
<groupId>org.fxmisc.richtext</groupId>
<artifactId>richtextfx</artifactId>
<version>0.11.2</version>
<groupId>org.antlr</groupId>
<artifactId>antlr4-runtime</artifactId>
<version>4.13.1</version>
</dependency>
<dependency>
<groupId>de.tisoft.rsyntaxtextarea</groupId>
<artifactId>rsyntaxtextarea-antlr4-extension</artifactId>
<version>0.0.3</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>0.0.8</version>
<configuration>
<mainClass>${mainClass}</mainClass>
<options>
<option>-DautoClose=${autoClose}</option>
<option>--add-exports=javafx.graphics/com.sun.javafx.scene.layout=ALL-UNNAMED</option>
<option>--add-exports=javafx.graphics/com.sun.javafx.util=ALL-UNNAMED</option>
<option>--add-exports=javafx.graphics/com.sun.javafx.application=ALL-UNNAMED</option>
<option>--add-exports=javafx.graphics/com.sun.javafx.tk=ALL-UNNAMED</option>
<option>--add-exports=javafx.graphics/com.sun.javafx.scene.text=ALL-UNNAMED</option>
<option>--add-exports=javafx.base/com.sun.javafx.event=ALL-UNNAMED</option>
<option>--add-exports=javafx.base/com.sun.javafx.collections=ALL-UNNAMED</option>
<option>--add-exports=javafx.base/com.sun.javafx.binding=ALL-UNNAMED</option>
<option>--add-exports=javafx.base/com.sun.javafx=ALL-UNNAMED</option>
<option>--add-exports=javafx.graphics/com.sun.javafx.scene.traversal=ALL-UNNAMED</option>
<option>--add-exports=javafx.graphics/com.sun.javafx.scene=ALL-UNNAMED</option>
<option>--add-exports=javafx.base/com.sun.javafx.logging=ALL-UNNAMED</option>
<option>--add-exports=javafx.graphics/com.sun.javafx.stage=ALL-UNNAMED</option>
<option>--add-exports=javafx.graphics/com.sun.javafx.geom=ALL-UNNAMED</option>
<option>--add-exports=javafx.graphics/com.sun.javafx.scene.input=ALL-UNNAMED</option>
</options>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
<profile>
Expand Down
Loading

0 comments on commit bad3dc7

Please sign in to comment.