complete Studio core and JavaFX boundary migration
Intrepid/Prometeu/Studio/pipeline/pr-master Build started...
JaCoCo Coverage #### Project Overview No changes detected, that affect the code coverage. * Line Coverage: 64.01% (20482/31999) * Branch Coverage: 54.22% (8240/15196) * Lines of Code: 31999 * Cyclomatic Complexity: 13164 #### Quality Gates Summary Output truncated.
Test / Build skipped: 15, passed: 715
Intrepid/Prometeu/Studio/pipeline/head This commit looks good

This commit is contained in:
2026-09-25 11:28:18 +01:00
parent 10f1b3f87c
commit a0a5050d5e
461 changed files with 9319 additions and 7205 deletions
@@ -0,0 +1,63 @@
package p.studio.app;
import javafx.application.Application;
import javafx.stage.Stage;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.ConfigurableApplicationContext;
import p.studio.ui.javafx.window.StudioWindowCoordinator;
public class App extends Application {
private ConfigurableApplicationContext applicationContext;
private StudioWindowCoordinator studioWindowCoordinator;
@Override
public void init() throws Exception {
super.init();
applicationContext = new SpringApplicationBuilder(StudioApplicationConfiguration.class)
.web(WebApplicationType.NONE)
.headless(false)
.run();
}
@Override
public void start(Stage stage) {
studioWindowCoordinator = applicationContext.getBean(StudioUiFactory.class).create(stage);
studioWindowCoordinator.showLauncher();
}
@Override
public void stop() throws Exception {
Exception failure = null;
try {
if (studioWindowCoordinator != null) {
studioWindowCoordinator.close();
}
} catch (RuntimeException exception) {
failure = exception;
}
try {
if (applicationContext != null) {
applicationContext.close();
}
} catch (RuntimeException exception) {
failure = append(failure, exception);
}
try {
super.stop();
} catch (Exception exception) {
failure = append(failure, exception);
}
if (failure != null) {
throw failure;
}
}
private static Exception append(Exception prior, Exception failure) {
if (prior == null) {
return failure;
}
prior.addSuppressed(failure);
return prior;
}
}