Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Schindl2014-08-11 23:12:02 +0000
committerTom Schindl2014-08-11 23:12:02 +0000
commit46eac12f152ce05e9627d0fd228b16f344ff4184 (patch)
treeb6d732c4ae58318bedad6dcb1c56bcb045452642
parentcb2c721dbe45298076a76067769aad433c670206 (diff)
downloadorg.eclipse.efxclipse-46eac12f152ce05e9627d0fd228b16f344ff4184.tar.gz
org.eclipse.efxclipse-46eac12f152ce05e9627d0fd228b16f344ff4184.tar.xz
org.eclipse.efxclipse-46eac12f152ce05e9627d0fd228b16f344ff4184.zip
fixed javadoc
-rwxr-xr-xbundles/runtime/org.eclipse.fx.osgi.util/src/org/eclipse/fx/osgi/util/AbstractJFXApplication.java27
1 files changed, 11 insertions, 16 deletions
diff --git a/bundles/runtime/org.eclipse.fx.osgi.util/src/org/eclipse/fx/osgi/util/AbstractJFXApplication.java b/bundles/runtime/org.eclipse.fx.osgi.util/src/org/eclipse/fx/osgi/util/AbstractJFXApplication.java
index 306c33f3c..58acb191d 100755
--- a/bundles/runtime/org.eclipse.fx.osgi.util/src/org/eclipse/fx/osgi/util/AbstractJFXApplication.java
+++ b/bundles/runtime/org.eclipse.fx.osgi.util/src/org/eclipse/fx/osgi/util/AbstractJFXApplication.java
@@ -33,7 +33,7 @@ import org.osgi.service.event.EventAdmin;
*/
public abstract class AbstractJFXApplication implements IApplication {
static AbstractJFXApplication SELF;
-
+
@Nullable
IApplicationContext applicationContext;
Object returnValue;
@@ -52,14 +52,12 @@ public abstract class AbstractJFXApplication implements IApplication {
this.applicationContext = this.osgiApp.applicationContext;
JFXRealm.createDefault();
- this.osgiApp.jfxStart(this.applicationContext, JFXApp.this,
- primaryStage);
+ 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$
+ this.osgiApp.eventAdmin.sendEvent(new Event("efxapp/applicationLaunched", map)); //$NON-NLS-1$
}
}
@@ -78,22 +76,19 @@ public abstract class AbstractJFXApplication implements IApplication {
Bundle b = FrameworkUtil.getBundle(AbstractJFXApplication.class);
BundleContext bundleContext = b.getBundleContext();
- ServiceReference<EventAdmin> ref = bundleContext
- .getServiceReference(EventAdmin.class);
+ ServiceReference<EventAdmin> ref = bundleContext.getServiceReference(EventAdmin.class);
if (ref != null) {
this.eventAdmin = bundleContext.getService(ref);
}
// Looks like OS-X wants to have the context class loader to locate
// FX-Classes
- Thread.currentThread().setContextClassLoader(
- Application.class.getClassLoader());
+ Thread.currentThread().setContextClassLoader(Application.class.getClassLoader());
Application.launch(JFXApp.class);
try {
- return this.returnValue == null ? IApplication.EXIT_OK
- : this.returnValue;
+ return this.returnValue == null ? IApplication.EXIT_OK : this.returnValue;
} finally {
this.returnValue = null;
}
@@ -105,7 +100,7 @@ public abstract class AbstractJFXApplication implements IApplication {
}
/**
- * Method called when OSGi & JavaFX are fully initialized
+ * Method called when OSGi &amp; JavaFX are fully initialized
* {@link Application#start(Stage)}
*
* @param applicationContext
@@ -113,18 +108,18 @@ public abstract class AbstractJFXApplication implements IApplication {
* @param jfxApplication
* the javafx application instance
* @param primaryStage
+ * the primary stage created by JavaFX bootstrap
* @see IApplication#start(IApplicationContext)
* @see Application#start(Stage)
*/
- protected abstract void jfxStart(
- @NonNull IApplicationContext applicationContext,
- @NonNull Application jfxApplication, @NonNull Stage primaryStage);
+ protected abstract void jfxStart(@NonNull IApplicationContext applicationContext, @NonNull Application jfxApplication, @NonNull Stage primaryStage);
/**
* Method called when the javafx application is shutdown
* {@link Application#stop()}
*
- * @return the return status for the OSGi application see {@link IApplication#start(IApplicationContext)}
+ * @return the return status for the OSGi application see
+ * {@link IApplication#start(IApplicationContext)}
* @see IApplication#start(IApplicationContext)
* @see Application#stop()
*/

Back to the top