Skip to content

Commit

Permalink
Merge branch 'master' into issue-369
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver-Loeffler authored Sep 30, 2024
2 parents 1aee392 + d426938 commit 8250d42
Show file tree
Hide file tree
Showing 105 changed files with 1,651 additions and 152 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
os: [ macos-latest, windows-latest, ubuntu-latest ]
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup Java
uses: oracle-actions/setup-java@v1
uses: oracle-actions/setup-java@v1.4.0
with:
website: jdk.java.net
release: ${{ env.JAVA_VERSION }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/bundles-kit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup Java
uses: oracle-actions/setup-java@v1
uses: oracle-actions/setup-java@v1.4.0
with:
website: jdk.java.net
release: ${{ inputs.java-version }}

- name: Cache Maven packages
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
Expand All @@ -40,7 +40,7 @@ jobs:
PROJECT_VERSION: ${{ inputs.project-version }}

- name: Upload Artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: artifacts
name: scenebuilder-kit-${{ inputs.project-version }}.jar
path: kit/target/lib/*.jar
16 changes: 11 additions & 5 deletions .github/workflows/bundles-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ jobs:
- name: Install packages
run: sudo apt-get install xdg-utils

- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup Java
uses: oracle-actions/setup-java@v1
uses: oracle-actions/setup-java@v1.4.0
with:
website: jdk.java.net
release: ${{ inputs.java-version }}
Expand All @@ -46,7 +46,7 @@ jobs:
unzip /tmp/openjfx-${{ inputs.javafx-version }}_linux-x64_bin-jmods.zip -d /tmp
- name: Cache Maven packages
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
Expand Down Expand Up @@ -99,9 +99,15 @@ jobs:
INSTALL_DIR: app/target/install

- name: Upload Artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: artifacts
name: SceneBuilder-${{ inputs.project-version }}.deb
path: |
app/target/install/*.deb
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: SceneBuilder-${{ inputs.project-version }}.rpm
path: |
app/target/install/*.rpm
12 changes: 6 additions & 6 deletions .github/workflows/bundles-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ on:
required: true
jobs:
build:
runs-on: macos-latest
runs-on: macos-13
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup Java
uses: oracle-actions/setup-java@v1
uses: oracle-actions/setup-java@v1.4.0
with:
website: jdk.java.net
release: ${{ inputs.java-version }}
Expand All @@ -60,7 +60,7 @@ jobs:
unzip /tmp/openjfx-${{ inputs.javafx-version }}_osx-x64_bin-jmods.zip -d /tmp
- name: Cache Maven packages
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:
team-id: ${{ secrets.MACSIGN_PREFIX }}

- name: Upload Artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: artifacts
name: SceneBuilder-${{ inputs.project-version }}-amd64.dmg
path: ${{ steps.outputfile.outputs.path }}
10 changes: 5 additions & 5 deletions .github/workflows/bundles-mac_aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ jobs:
name: macOS on M1
runs-on: macos-14
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup Java
uses: oracle-actions/setup-java@v1
uses: oracle-actions/setup-java@v1.4.0
with:
website: jdk.java.net
release: ${{ inputs.java-version }}
Expand All @@ -61,7 +61,7 @@ jobs:
unzip /tmp/openjfx-${{ inputs.javafx-version }}_osx-aarch64_bin-jmods.zip -d /tmp
- name: Cache Maven packages
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
Expand Down Expand Up @@ -113,7 +113,7 @@ jobs:
team-id: ${{ secrets.MACSIGN_PREFIX }}

- name: Upload Artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: artifacts
name: SceneBuilder-${{ inputs.project-version }}-aarch64.dmg
path: ${{ steps.outputfile.outputs.path }}
10 changes: 5 additions & 5 deletions .github/workflows/bundles-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup Java
uses: oracle-actions/setup-java@v1
uses: oracle-actions/setup-java@v1.4.0
with:
website: jdk.java.net
release: ${{ inputs.java-version }}
Expand All @@ -51,7 +51,7 @@ jobs:
Expand-Archive -Force D:\openjfx-${{ inputs.javafx-version }}_windows-x64_bin-jmods.zip D:\
- name: Cache Maven packages
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:
folder: 'app/target/install'

- name: Upload Artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: artifacts
name: SceneBuilder-${{ inputs.project-version }}.msi
path: app/target/install/*.msi
21 changes: 12 additions & 9 deletions .github/workflows/early-access.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ on:
branches: [ master ]

env:
JAVAFX_VERSION: '23'
JAVA_VERSION: '23'
JAVAFX_VERSION: '23-ea+27'

jobs:
precheck:
Expand All @@ -19,16 +19,16 @@ jobs:
PROJECT_VERSION: ${{ steps.vars.outputs.PROJECT_VERSION }}
steps:
- name: Check out repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Java
uses: oracle-actions/setup-java@v1
uses: oracle-actions/setup-java@v1.4.0
with:
website: jdk.java.net
release: ${{ env.JAVA_VERSION }}

- name: Cache Maven packages
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
Expand Down Expand Up @@ -115,21 +115,24 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Check out repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Download all build artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
path: artifacts
merge-multiple: true

- name: Set up Java
uses: oracle-actions/setup-java@v1
uses: oracle-actions/setup-java@v1.4.0
with:
website: jdk.java.net
release: ${{ needs.precheck.outputs.JAVA_VERSION }}

- name: Cache Maven packages
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
Expand All @@ -143,7 +146,7 @@ jobs:
- name: JReleaser output
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: jreleaser-logs
path: |
Expand Down
19 changes: 11 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ jobs:
S3_PATH: ${{ steps.vars.outputs.S3_PATH }}
steps:
- name: Check out repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Java
uses: oracle-actions/setup-java@v1
uses: oracle-actions/setup-java@v1.4.0
with:
website: jdk.java.net
release: ${{ env.JAVA_VERSION }}

- name: Cache Maven packages
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
Expand Down Expand Up @@ -128,25 +128,28 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Check out repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Java
uses: oracle-actions/setup-java@v1
uses: oracle-actions/setup-java@v1.4.0
with:
website: jdk.java.net
release: ${{ needs.precheck.outputs.JAVA_VERSION }}

- name: Cache Maven packages
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Download all build artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
path: artifacts
merge-multiple: true

- name: Set Release Version
run: |
Expand All @@ -170,7 +173,7 @@ jobs:
- name: JReleaser output
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: jreleaser-logs
path: |
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Gluon Scene Builder is frequently released, and this is only required in case yo

These are the requisites:

* A recent version of [JDK 11 or later](https://www.oracle.com/technetwork/java/javase/downloads/index.html) for building 'master' branch
* A recent version of [JDK 21 or later](https://www.oracle.com/technetwork/java/javase/downloads/index.html) for building 'master' branch
* A recent version of [JDK 8](https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html) for building '8u-dev' branch

### How to build Scene Builder ###
Expand Down Expand Up @@ -110,4 +110,4 @@ There will be a report for each sub-project, one for `app` and one for `kit`.
* Kit: `kit/target/site/checkstyle.html`
* App: `app/target/site/checkstyle.html`

This project makes use of [EditorConfig](https://editorconfig.org/) which is [directly supported](https://editorconfig.org/#pre-installed) by IntelliJ IDEA. There are plugins for NetBeans, Eclipse and Visual Studio and [more](https://editorconfig.org/#download). EditorConfig ensures via configuration in `.editorconfig` file, that the proper indentation is used.
This project makes use of [EditorConfig](https://editorconfig.org/) which is [directly supported](https://editorconfig.org/#pre-installed) by IntelliJ IDEA. There are plugins for NetBeans, Eclipse and Visual Studio and [more](https://editorconfig.org/#download). EditorConfig ensures via configuration in `.editorconfig` file, that the proper indentation is used.
4 changes: 2 additions & 2 deletions app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
<parent>
<groupId>com.gluonhq.scenebuilder</groupId>
<artifactId>parent</artifactId>
<version>23.0.0-SNAPSHOT</version>
<version>24.0.0-SNAPSHOT</version>
</parent>

<properties>
<main.class.name>com.oracle.javafx.scenebuilder.app.SceneBuilderApp</main.class.name>
<main.class.name>com.gluonhq.scenebuilder.app/com.oracle.javafx.scenebuilder.app.SceneBuilderApp</main.class.name>
<!-- For about.properties file -->
<buildDate>${maven.build.timestamp}</buildDate>
<buildDateFormat>${maven.build.timestamp.format}</buildDateFormat>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2024 Gluon and/or its affiliates.
* Copyright (c) 2017, 2024, Gluon and/or its affiliates.
* Copyright (c) 2012, 2014, Oracle and/or its affiliates.
* All rights reserved. Use is subject to license terms.
*
Expand Down Expand Up @@ -51,6 +51,7 @@

import javafx.application.Application;
import javafx.application.Platform;

/**
*
*/
Expand All @@ -62,6 +63,10 @@ public class AppPlatform {
private static String logsFolder;
private static MessageBox<MessageBoxMessage> messageBox;

AppPlatform() {
// no-op
}

public static synchronized String getApplicationDataFolder() {
return getApplicationDataFolder(OS.get());
}
Expand Down Expand Up @@ -121,8 +126,6 @@ static synchronized String getUserLibraryFolder(OS operatingSystem) {
}
return userLibraryFolder;
}



/**
* Returns the directory path for logs. Default path is "${user.home}/.scenebuilder/logs/".
Expand Down Expand Up @@ -162,7 +165,6 @@ public interface AppNotificationHandler {
public void handleQuitAction();
}


/*
* Private (requestStartGeneric)
*/
Expand Down Expand Up @@ -202,7 +204,6 @@ private static synchronized boolean requestStartGeneric(
throw new IOException(x);
}
}

return result;
}

Expand Down
Loading

0 comments on commit 8250d42

Please sign in to comment.