/** * Initializes started application (for instance creates a default realm). */ @SuppressWarnings("static-method") protected void initialize() { JFXRealm.createDefault(); } }
/** * Create a default realm * * @return the defaul realm */ @NonNull public static Realm createDefault() { JFXRealm jfxRealm = new JFXRealm(); setDefault(jfxRealm); return jfxRealm; }
@Override public void exec(Runnable runnable) { if (isCurrent()) { runnable.run(); } else { Platform.runLater(runnable); } } }
@Override protected Realm createRealm(IEclipseContext appContext) { return JFXRealm.createDefault(); }
@SuppressWarnings("null") @Override public void start(final Stage primaryStage) throws Exception { this.applicationContext = this.osgiApp.applicationContext; JFXRealm.createDefault(); this.osgiApp.jfxStart(this.applicationContext, JFXApp.this, primaryStage); if (this.osgiApp.eventAdmin != null) { Map<String, Object> map = new HashMap<String, Object>(); // map.put("name", value); this.osgiApp.eventAdmin.sendEvent(new Event("efxapp/applicationLaunched", map)); //$NON-NLS-1$ } }