Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions GoNative/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@
<scope>runtime</scope>
<classifier>${attach.extended.classifier}</classifier>
</dependency>

<dependency>
<groupId>us.hebi.graalvm</groupId>
<artifactId>reachability-annotations</artifactId>
<version>${reachability.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>

<repositories>
Expand All @@ -95,6 +102,20 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<compilerArgs>
<arg>-Aproject=${project.groupId}/${project.artifactId}</arg>
<arg>-Areachability.processDependencyInjection=true</arg>
<arg>-Areachability.outputFormat=1.0.0</arg>
</compilerArgs>
<annotationProcessorPaths>
<path>
<groupId>us.hebi.graalvm</groupId>
<artifactId>reachability-processor</artifactId>
<version>${reachability.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>

<plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,17 @@
import com.gluonhq.charm.glisten.control.NavigationDrawer;
import com.gluonhq.charm.glisten.visual.MaterialDesignIcon;
import javafx.scene.image.Image;
import us.hebi.graalvm.reachability.annotations.Reachable;
import us.hebi.graalvm.reachability.annotations.ReachableFxView;

import java.util.Locale;

import static com.gluonhq.charm.glisten.afterburner.AppView.Flag.HOME_VIEW;
import static com.gluonhq.charm.glisten.afterburner.AppView.Flag.SHOW_IN_DRAWER;
import static com.gluonhq.charm.glisten.afterburner.AppView.Flag.SKIP_VIEW_STACK;

@Reachable(resources = "/icon.png")
@ReachableFxView("main")
public class AppViewManager {

private static final AppViewRegistry REGISTRY = new AppViewRegistry();
Expand Down
21 changes: 20 additions & 1 deletion HelloFXML/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,17 @@
<artifactId>javafx-controls</artifactId>
<version>${javafx.version}</version>
</dependency>
<dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-fxml</artifactId>
<version>${javafx.version}</version>
</dependency>
<dependency>
<groupId>us.hebi.graalvm</groupId>
<artifactId>reachability-annotations</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
</dependencies>

<build>
Expand All @@ -37,6 +43,19 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<compilerArgs>
<arg>-Aproject=${project.groupId}/${project.artifactId}</arg>
<arg>-Areachability.outputFormat=1.2.0</arg>
</compilerArgs>
<annotationProcessorPaths>
<path>
<groupId>us.hebi.graalvm</groupId>
<artifactId>reachability-processor</artifactId>
<version>1.0-SNAPSHOT</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>

<plugin>
Expand Down
4 changes: 4 additions & 0 deletions HelloFXML/src/main/java/hellofx/HelloFXML.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,14 @@
import javafx.scene.Scene;
import javafx.scene.layout.AnchorPane;
import javafx.stage.Stage;
import us.hebi.graalvm.reachability.annotations.ReachableFxResources;
import us.hebi.graalvm.reachability.annotations.ReachableFxView;

import java.io.IOException;
import java.util.ResourceBundle;

@ReachableFxView("hello")
@ReachableFxResources("style.css")
public class HelloFXML extends Application {

@Override
Expand Down
1 change: 1 addition & 0 deletions HelloFXML/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
module hellofxml {
requires javafx.controls;
requires javafx.fxml;
requires us.hebi.graalvm.reachability.annotations;

opens hellofx to javafx.fxml;

Expand Down
20 changes: 20 additions & 0 deletions alarm/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,12 @@
<version>2.3.1</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>us.hebi.graalvm</groupId>
<artifactId>reachability-annotations</artifactId>
<version>${reachability.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>

<build>
Expand All @@ -104,6 +110,20 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<compilerArgs>
<arg>-Aproject=${project.groupId}/${project.artifactId}</arg>
<arg>-Areachability.processDependencyInjection=true</arg>
<arg>-Areachability.outputFormat=1.0.0</arg>
</compilerArgs>
<annotationProcessorPaths>
<path>
<groupId>us.hebi.graalvm</groupId>
<artifactId>reachability-processor</artifactId>
<version>${reachability.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>

<plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,15 @@
import javafx.beans.property.ListProperty;
import javafx.beans.property.SimpleListProperty;
import javafx.collections.FXCollections;
import us.hebi.graalvm.reachability.annotations.Reachable;

import javax.annotation.PostConstruct;
import javax.inject.Singleton;
import java.util.List;
import java.util.stream.Collectors;

@Singleton
@Reachable(resources = "*.png")
public class Service {

private static final String EVENTS = "events-v1";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,19 @@
import com.gluonhq.charm.glisten.control.NavigationDrawer;
import com.gluonhq.charm.glisten.visual.MaterialDesignIcon;
import javafx.scene.image.Image;
import us.hebi.graalvm.reachability.annotations.Reachable;
import us.hebi.graalvm.reachability.annotations.ReachableFxView;

import java.util.Locale;
import java.util.ResourceBundle;

import static com.gluonhq.charm.glisten.afterburner.AppView.Flag.*;

@ReachableFxView("alarm")
@ReachableFxView("events")
@Reachable(bundles = {
"/com.gluonhq.samples.alarm.drawer",
})
public class AppViewManager {

private static final AppViewRegistry REGISTRY = new AppViewRegistry();
Expand Down
20 changes: 20 additions & 0 deletions beacons/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@
<artifactId>util</artifactId>
<version>${attach.version}</version>
</dependency>
<dependency>
<groupId>us.hebi.graalvm</groupId>
<artifactId>reachability-annotations</artifactId>
<version>${reachability.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>

<build>
Expand All @@ -77,6 +83,20 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<compilerArgs>
<arg>-Aproject=${project.groupId}/${project.artifactId}</arg>
<arg>-Areachability.processDependencyInjection=true</arg>
<arg>-Areachability.outputFormat=1.0.0</arg>
</compilerArgs>
<annotationProcessorPaths>
<path>
<groupId>us.hebi.graalvm</groupId>
<artifactId>reachability-processor</artifactId>
<version>${reachability.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>

<plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,15 @@

import com.gluonhq.attach.util.Constants;
import com.gluonhq.charm.glisten.application.AppManager;
import com.gluonhq.samples.beacons.views.AppViewManager;
import com.gluonhq.charm.glisten.visual.Swatch;
import com.gluonhq.samples.beacons.views.AppViewManager;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.stage.Stage;
import us.hebi.graalvm.reachability.annotations.ReachableFxResources;

@ReachableFxResources("style.css")
public class Beacons extends Application {

private final AppManager appManager = AppManager.initialize(this::postInit);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,19 @@
import com.gluonhq.charm.glisten.control.NavigationDrawer;
import com.gluonhq.charm.glisten.visual.MaterialDesignIcon;
import javafx.scene.image.Image;
import us.hebi.graalvm.reachability.annotations.ReachableFxView;

import java.util.Locale;

import static com.gluonhq.charm.glisten.afterburner.AppView.Flag.HOME_VIEW;
import static com.gluonhq.charm.glisten.afterburner.AppView.Flag.SHOW_IN_DRAWER;
import static com.gluonhq.charm.glisten.afterburner.AppView.Flag.SKIP_VIEW_STACK;

@ReachableFxView("main")
@ReachableFxView("beacon")
@ReachableFxView("beacons")
@ReachableFxView("broadcast")
@ReachableFxView("settings")
public class AppViewManager {

public static final AppViewRegistry REGISTRY = new AppViewRegistry();
Expand Down
20 changes: 20 additions & 0 deletions cloudlink-cloudfirst-storage/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@
<version>2.3.1</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>us.hebi.graalvm</groupId>
<artifactId>reachability-annotations</artifactId>
<version>${reachability.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>

<build>
Expand All @@ -95,6 +101,20 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<compilerArgs>
<arg>-Aproject=${project.groupId}/${project.artifactId}</arg>
<arg>-Areachability.processDependencyInjection=true</arg>
<arg>-Areachability.outputFormat=1.0.0</arg>
</compilerArgs>
<annotationProcessorPaths>
<path>
<groupId>us.hebi.graalvm</groupId>
<artifactId>reachability-processor</artifactId>
<version>${reachability.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>

<plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,18 @@
import com.gluonhq.charm.glisten.visual.MaterialDesignIcon;
import com.gluonhq.samples.cloudfirst.CloudFirstStorage;
import javafx.scene.image.Image;
import us.hebi.graalvm.reachability.annotations.Reachable;
import us.hebi.graalvm.reachability.annotations.ReachableFxView;

import java.util.Locale;

import static com.gluonhq.charm.glisten.afterburner.AppView.Flag.HOME_VIEW;
import static com.gluonhq.charm.glisten.afterburner.AppView.Flag.SHOW_IN_DRAWER;
import static com.gluonhq.charm.glisten.afterburner.AppView.Flag.SKIP_VIEW_STACK;

@Reachable(resources = "/icon.png")
@ReachableFxView("edition")
@ReachableFxView("notes")
public class AppViewManager {

public static final AppViewRegistry REGISTRY = new AppViewRegistry();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
requires java.json;
requires java.annotation;
requires afterburner.mfx;
requires us.hebi.graalvm.reachability.annotations;

exports com.gluonhq.samples.cloudfirst;
exports com.gluonhq.samples.cloudfirst.model to afterburner.mfx;
Expand Down
20 changes: 20 additions & 0 deletions comments/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@
<artifactId>util</artifactId>
<version>${attach.version}</version>
</dependency>
<dependency>
<groupId>us.hebi.graalvm</groupId>
<artifactId>reachability-annotations</artifactId>
<version>${reachability.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>

<profiles>
Expand All @@ -109,6 +115,20 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<compilerArgs>
<arg>-Aproject=${project.groupId}/${project.artifactId}</arg>
<arg>-Areachability.processDependencyInjection=true</arg>
<arg>-Areachability.outputFormat=1.0.0</arg>
</compilerArgs>
<annotationProcessorPaths>
<path>
<groupId>us.hebi.graalvm</groupId>
<artifactId>reachability-processor</artifactId>
<version>${reachability.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>

<plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,26 @@
import com.gluonhq.charm.glisten.control.NavigationDrawer;
import com.gluonhq.charm.glisten.visual.MaterialDesignIcon;
import javafx.scene.image.Image;
import us.hebi.graalvm.reachability.annotations.Reachable;
import us.hebi.graalvm.reachability.annotations.ReachableFxView;

import java.util.Locale;

import static com.gluonhq.charm.glisten.afterburner.AppView.Flag.HOME_VIEW;
import static com.gluonhq.charm.glisten.afterburner.AppView.Flag.SHOW_IN_DRAWER;
import static com.gluonhq.charm.glisten.afterburner.AppView.Flag.SKIP_VIEW_STACK;

@Reachable(resources = "/icon.png")
@ReachableFxView("comments")
@ReachableFxView("edition")
public class AppViewManager {

public static final AppViewRegistry REGISTRY = new AppViewRegistry();

public static final AppView COMMENTS_VIEW = view("Comments", CommentsPresenter.class, MaterialDesignIcon.COMMENT, SHOW_IN_DRAWER, SKIP_VIEW_STACK, HOME_VIEW);
public static final AppView EDITION_VIEW = view("Edition", EditionPresenter.class, MaterialDesignIcon.EDIT, SHOW_IN_DRAWER);
private static AppView view(String title, Class<?> presenterClass, MaterialDesignIcon menuIcon, AppView.Flag... flags ) {

private static AppView view(String title, Class<?> presenterClass, MaterialDesignIcon menuIcon, AppView.Flag... flags) {
return REGISTRY.createView(name(presenterClass), title, presenterClass, menuIcon, flags);
}

Expand Down
Loading