Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Schindl2013-05-23 17:42:25 -0400
committerTom Schindl2013-05-23 17:42:25 -0400
commita25b42fbfa78bc3596bafa2b8b755280b1acad9e (patch)
tree4afb13d1a67b0d4bee4760d16f4f2251af63307f /demos/org.eclipse.fx.demo.fxgraph.osgi
parenta6cd03a13440b4e455b0f1245b3eb05d74c0e0e0 (diff)
downloadorg.eclipse.efxclipse-a25b42fbfa78bc3596bafa2b8b755280b1acad9e.tar.gz
org.eclipse.efxclipse-a25b42fbfa78bc3596bafa2b8b755280b1acad9e.tar.xz
org.eclipse.efxclipse-a25b42fbfa78bc3596bafa2b8b755280b1acad9e.zip
intial check in
Diffstat (limited to 'demos/org.eclipse.fx.demo.fxgraph.osgi')
-rwxr-xr-xdemos/org.eclipse.fx.demo.fxgraph.osgi/.classpath7
-rw-r--r--demos/org.eclipse.fx.demo.fxgraph.osgi/.gitignore1
-rwxr-xr-xdemos/org.eclipse.fx.demo.fxgraph.osgi/.project34
-rwxr-xr-xdemos/org.eclipse.fx.demo.fxgraph.osgi/.settings/org.eclipse.core.resources.prefs2
-rwxr-xr-xdemos/org.eclipse.fx.demo.fxgraph.osgi/.settings/org.eclipse.core.runtime.prefs2
-rwxr-xr-xdemos/org.eclipse.fx.demo.fxgraph.osgi/.settings/org.eclipse.jdt.core.prefs7
-rwxr-xr-xdemos/org.eclipse.fx.demo.fxgraph.osgi/FXML.product57
-rw-r--r--demos/org.eclipse.fx.demo.fxgraph.osgi/FXML_workbench.product.launch34
-rwxr-xr-xdemos/org.eclipse.fx.demo.fxgraph.osgi/IP-TODOS.txt8
-rwxr-xr-xdemos/org.eclipse.fx.demo.fxgraph.osgi/META-INF/MANIFEST.MF40
-rwxr-xr-xdemos/org.eclipse.fx.demo.fxgraph.osgi/OSGI-INF/l10n/bundle.properties4
-rwxr-xr-xdemos/org.eclipse.fx.demo.fxgraph.osgi/about.html28
-rwxr-xr-xdemos/org.eclipse.fx.demo.fxgraph.osgi/build.properties9
-rwxr-xr-xdemos/org.eclipse.fx.demo.fxgraph.osgi/icons/alt_about.gifbin0 -> 9340 bytes
-rwxr-xr-xdemos/org.eclipse.fx.demo.fxgraph.osgi/icons/alt_launcher.icnsbin0 -> 51159 bytes
-rwxr-xr-xdemos/org.eclipse.fx.demo.fxgraph.osgi/icons/alt_launcher.icobin0 -> 26694 bytes
-rwxr-xr-xdemos/org.eclipse.fx.demo.fxgraph.osgi/icons/alt_launcher.xpm307
-rwxr-xr-xdemos/org.eclipse.fx.demo.fxgraph.osgi/icons/alt_window_16.gifbin0 -> 637 bytes
-rwxr-xr-xdemos/org.eclipse.fx.demo.fxgraph.osgi/icons/alt_window_32.gifbin0 -> 1192 bytes
-rwxr-xr-xdemos/org.eclipse.fx.demo.fxgraph.osgi/plugin.xml31
-rwxr-xr-xdemos/org.eclipse.fx.demo.fxgraph.osgi/splash.bmpbin0 -> 135600 bytes
-rwxr-xr-xdemos/org.eclipse.fx.demo.fxgraph.osgi/src/org/eclipse/fx/demo/fxgraph/osgi/Activator.java30
-rwxr-xr-xdemos/org.eclipse.fx.demo.fxgraph.osgi/src/org/eclipse/fx/demo/fxgraph/osgi/Application.java94
-rwxr-xr-xdemos/org.eclipse.fx.demo.fxgraph.osgi/src/org/eclipse/fx/demo/fxgraph/osgi/LoginController.java53
-rwxr-xr-xdemos/org.eclipse.fx.demo.fxgraph.osgi/src/org/eclipse/fx/demo/fxgraph/osgi/ProfileController.java95
-rwxr-xr-xdemos/org.eclipse.fx.demo.fxgraph.osgi/src/org/eclipse/fx/demo/fxgraph/osgi/demo.css47
-rwxr-xr-xdemos/org.eclipse.fx.demo.fxgraph.osgi/src/org/eclipse/fx/demo/fxgraph/osgi/login.fxgraph64
-rwxr-xr-xdemos/org.eclipse.fx.demo.fxgraph.osgi/src/org/eclipse/fx/demo/fxgraph/osgi/login.fxml35
-rwxr-xr-xdemos/org.eclipse.fx.demo.fxgraph.osgi/src/org/eclipse/fx/demo/fxgraph/osgi/model/User.java121
-rwxr-xr-xdemos/org.eclipse.fx.demo.fxgraph.osgi/src/org/eclipse/fx/demo/fxgraph/osgi/profile.fxgraph128
-rwxr-xr-xdemos/org.eclipse.fx.demo.fxgraph.osgi/src/org/eclipse/fx/demo/fxgraph/osgi/profile.fxml43
-rwxr-xr-xdemos/org.eclipse.fx.demo.fxgraph.osgi/src/org/eclipse/fx/demo/fxgraph/osgi/security/Authenticator.java49
32 files changed, 1330 insertions, 0 deletions
diff --git a/demos/org.eclipse.fx.demo.fxgraph.osgi/.classpath b/demos/org.eclipse.fx.demo.fxgraph.osgi/.classpath
new file mode 100755
index 000000000..b1dabee38
--- /dev/null
+++ b/demos/org.eclipse.fx.demo.fxgraph.osgi/.classpath
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/demos/org.eclipse.fx.demo.fxgraph.osgi/.gitignore b/demos/org.eclipse.fx.demo.fxgraph.osgi/.gitignore
new file mode 100644
index 000000000..5e56e040e
--- /dev/null
+++ b/demos/org.eclipse.fx.demo.fxgraph.osgi/.gitignore
@@ -0,0 +1 @@
+/bin
diff --git a/demos/org.eclipse.fx.demo.fxgraph.osgi/.project b/demos/org.eclipse.fx.demo.fxgraph.osgi/.project
new file mode 100755
index 000000000..119718868
--- /dev/null
+++ b/demos/org.eclipse.fx.demo.fxgraph.osgi/.project
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.fx.demo.fxgraph.osgi</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
+ </natures>
+</projectDescription>
diff --git a/demos/org.eclipse.fx.demo.fxgraph.osgi/.settings/org.eclipse.core.resources.prefs b/demos/org.eclipse.fx.demo.fxgraph.osgi/.settings/org.eclipse.core.resources.prefs
new file mode 100755
index 000000000..4824b8026
--- /dev/null
+++ b/demos/org.eclipse.fx.demo.fxgraph.osgi/.settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+encoding/<project>=UTF-8
diff --git a/demos/org.eclipse.fx.demo.fxgraph.osgi/.settings/org.eclipse.core.runtime.prefs b/demos/org.eclipse.fx.demo.fxgraph.osgi/.settings/org.eclipse.core.runtime.prefs
new file mode 100755
index 000000000..deae05a97
--- /dev/null
+++ b/demos/org.eclipse.fx.demo.fxgraph.osgi/.settings/org.eclipse.core.runtime.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+line.separator=\r\n
diff --git a/demos/org.eclipse.fx.demo.fxgraph.osgi/.settings/org.eclipse.jdt.core.prefs b/demos/org.eclipse.fx.demo.fxgraph.osgi/.settings/org.eclipse.jdt.core.prefs
new file mode 100755
index 000000000..f42de363a
--- /dev/null
+++ b/demos/org.eclipse.fx.demo.fxgraph.osgi/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,7 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
+org.eclipse.jdt.core.compiler.compliance=1.7
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.7
diff --git a/demos/org.eclipse.fx.demo.fxgraph.osgi/FXML.product b/demos/org.eclipse.fx.demo.fxgraph.osgi/FXML.product
new file mode 100755
index 000000000..96f841965
--- /dev/null
+++ b/demos/org.eclipse.fx.demo.fxgraph.osgi/FXML.product
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?pde version="3.5"?>
+
+<product name="Hello JavaFXML" id="org.eclipse.fx.demo.fxgraph.osgi.product" application="org.eclipse.fx.demo.fxgraph.osgi.application" version="1.0.0.qualifier" useFeatures="false" includeLaunchers="true">
+
+ <configIni use="default">
+ </configIni>
+
+ <launcherArgs>
+ <programArgs>-consoleLog -nosplash</programArgs>
+ <vmArgs>-Dosgi.framework.extensions=org.eclipse.fx.osgi</vmArgs>
+ </launcherArgs>
+
+ <windowImages i16="icons/alt_window_16.gif" i32="icons/alt_window_32.gif"/>
+
+ <launcher>
+ <solaris/>
+ <win useIco="false">
+ <bmp/>
+ </win>
+ </launcher>
+
+ <vm>
+ </vm>
+
+ <plugins>
+ <plugin id="com.ibm.icu"/>
+ <plugin id="javax.inject"/>
+ <plugin id="org.eclipse.core.contenttype"/>
+ <plugin id="org.eclipse.core.databinding"/>
+ <plugin id="org.eclipse.core.databinding.observable"/>
+ <plugin id="org.eclipse.core.databinding.property"/>
+ <plugin id="org.eclipse.core.jobs"/>
+ <plugin id="org.eclipse.core.runtime"/>
+ <plugin id="org.eclipse.core.runtime.compatibility.registry" fragment="true"/>
+ <plugin id="org.eclipse.equinox.app"/>
+ <plugin id="org.eclipse.equinox.common"/>
+ <plugin id="org.eclipse.equinox.ds"/>
+ <plugin id="org.eclipse.equinox.event"/>
+ <plugin id="org.eclipse.equinox.preferences"/>
+ <plugin id="org.eclipse.equinox.registry"/>
+ <plugin id="org.eclipse.equinox.util"/>
+ <plugin id="org.eclipse.fx.core"/>
+ <plugin id="org.eclipse.fx.core.databinding"/>
+ <plugin id="org.eclipse.fx.demo.fxgraph.osgi"/>
+ <plugin id="org.eclipse.fx.javafx"/>
+ <plugin id="org.eclipse.fx.osgi" fragment="true"/>
+ <plugin id="org.eclipse.fx.osgi.util"/>
+ <plugin id="org.eclipse.fx.ui.application"/>
+ <plugin id="org.eclipse.fx.ui.databinding"/>
+ <plugin id="org.eclipse.osgi"/>
+ <plugin id="org.eclipse.osgi.services"/>
+ <plugin id="org.eclipse.osgi.util"/>
+ </plugins>
+
+
+</product>
diff --git a/demos/org.eclipse.fx.demo.fxgraph.osgi/FXML_workbench.product.launch b/demos/org.eclipse.fx.demo.fxgraph.osgi/FXML_workbench.product.launch
new file mode 100644
index 000000000..dba9371b5
--- /dev/null
+++ b/demos/org.eclipse.fx.demo.fxgraph.osgi/FXML_workbench.product.launch
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.pde.ui.RuntimeWorkbench">
+<booleanAttribute key="append.args" value="true"/>
+<stringAttribute key="application" value="org.eclipse.fx.demo.fxgraph.osgi.application"/>
+<booleanAttribute key="askclear" value="true"/>
+<booleanAttribute key="automaticAdd" value="false"/>
+<booleanAttribute key="automaticValidate" value="false"/>
+<stringAttribute key="bootstrap" value=""/>
+<stringAttribute key="checked" value="[NONE]"/>
+<booleanAttribute key="clearConfig" value="false"/>
+<booleanAttribute key="clearws" value="false"/>
+<booleanAttribute key="clearwslog" value="false"/>
+<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/FXML_workbench.product"/>
+<booleanAttribute key="default" value="false"/>
+<booleanAttribute key="includeOptional" value="true"/>
+<stringAttribute key="location" value="${workspace_loc}/../runtime-FXML.product"/>
+<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
+<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-consoleLog -nosplash"/>
+<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
+<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dosgi.framework.extensions=org.eclipse.fx.osgi"/>
+<stringAttribute key="pde.version" value="3.3"/>
+<stringAttribute key="product" value="org.eclipse.fx.demo.fxgraph.osgi.product"/>
+<stringAttribute key="productFile" value="/org.eclipse.fx.demo.fxgraph.osgi/FXML.product"/>
+<stringAttribute key="selected_target_plugins" value="com.ibm.icu@default:default,javax.inject@default:default,org.eclipse.core.contenttype@default:default,org.eclipse.core.databinding.observable@default:default,org.eclipse.core.databinding.property@default:default,org.eclipse.core.databinding@default:default,org.eclipse.core.jobs@default:default,org.eclipse.core.runtime.compatibility.registry@default:false,org.eclipse.core.runtime@default:true,org.eclipse.equinox.app@default:default,org.eclipse.equinox.common@2:true,org.eclipse.equinox.ds@1:true,org.eclipse.equinox.event@default:default,org.eclipse.equinox.preferences@default:default,org.eclipse.equinox.registry@default:default,org.eclipse.equinox.util@default:default,org.eclipse.fx.javafx@default:default,org.eclipse.fx.osgi@default:false,org.eclipse.osgi.services@default:default,org.eclipse.osgi.util@default:default,org.eclipse.osgi@-1:true"/>
+<stringAttribute key="selected_workspace_plugins" value="org.eclipse.fx.core.databinding@default:default,org.eclipse.fx.core@default:default,org.eclipse.fx.demo.fxgraph.osgi@default:default,org.eclipse.fx.osgi.util@default:default,org.eclipse.fx.ui.application@default:default,org.eclipse.fx.ui.databinding@default:default"/>
+<booleanAttribute key="show_selected_only" value="false"/>
+<booleanAttribute key="tracing" value="false"/>
+<booleanAttribute key="useCustomFeatures" value="false"/>
+<booleanAttribute key="useDefaultConfig" value="true"/>
+<booleanAttribute key="useDefaultConfigArea" value="true"/>
+<booleanAttribute key="useProduct" value="true"/>
+<booleanAttribute key="usefeatures" value="false"/>
+</launchConfiguration>
diff --git a/demos/org.eclipse.fx.demo.fxgraph.osgi/IP-TODOS.txt b/demos/org.eclipse.fx.demo.fxgraph.osgi/IP-TODOS.txt
new file mode 100755
index 000000000..53aa2a44d
--- /dev/null
+++ b/demos/org.eclipse.fx.demo.fxgraph.osgi/IP-TODOS.txt
@@ -0,0 +1,8 @@
+Eclipse Icons (EPL):
+--------------------
+icons/alt_about.gif
+icons/alt_launcher.icns
+icons/alt_launcher.ico
+icons/alt_launcher.xpm
+icons/alt_window_16.gif
+icons/alt_window_32.gif \ No newline at end of file
diff --git a/demos/org.eclipse.fx.demo.fxgraph.osgi/META-INF/MANIFEST.MF b/demos/org.eclipse.fx.demo.fxgraph.osgi/META-INF/MANIFEST.MF
new file mode 100755
index 000000000..957a75713
--- /dev/null
+++ b/demos/org.eclipse.fx.demo.fxgraph.osgi/META-INF/MANIFEST.MF
@@ -0,0 +1,40 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %Bundle-Name
+Bundle-SymbolicName: org.eclipse.fx.demo.fxgraph.osgi; singleton:=true
+Bundle-Version: 1.0.0.qualifier
+Bundle-Activator: org.eclipse.fx.demo.fxgraph.osgi.Activator
+Require-Bundle: org.eclipse.core.runtime,
+ org.eclipse.fx.ui.application,
+ org.eclipse.fx.osgi.util
+Bundle-RequiredExecutionEnvironment: JavaSE-1.7
+Import-Package: javafx.animation;version="2.0.0",
+ javafx.application;version="2.0.0",
+ javafx.beans;version="2.0.0",
+ javafx.beans.binding;version="2.0.0",
+ javafx.beans.property;version="2.0.0",
+ javafx.beans.value;version="2.0.0",
+ javafx.collections;version="2.0.0",
+ javafx.concurrent;version="2.0.0",
+ javafx.embed.swing;version="2.0.0",
+ javafx.event;version="2.0.0",
+ javafx.fxml;version="2.0.0",
+ javafx.geometry;version="2.0.0",
+ javafx.scene;version="2.0.0",
+ javafx.scene.chart;version="2.0.0",
+ javafx.scene.control;version="2.0.0",
+ javafx.scene.control.cell;version="2.0.0",
+ javafx.scene.effect;version="2.0.0",
+ javafx.scene.image;version="2.0.0",
+ javafx.scene.input;version="2.0.0",
+ javafx.scene.layout;version="2.0.0",
+ javafx.scene.media;version="2.0.0",
+ javafx.scene.paint;version="2.0.0",
+ javafx.scene.shape;version="2.0.0",
+ javafx.scene.text;version="2.0.0",
+ javafx.scene.transform;version="2.0.0",
+ javafx.scene.web;version="2.0.0",
+ javafx.stage;version="2.0.0",
+ javafx.util;version="2.0.0"
+Bundle-ActivationPolicy: lazy
+Bundle-Vendor: %Bundle-Vendor
diff --git a/demos/org.eclipse.fx.demo.fxgraph.osgi/OSGI-INF/l10n/bundle.properties b/demos/org.eclipse.fx.demo.fxgraph.osgi/OSGI-INF/l10n/bundle.properties
new file mode 100755
index 000000000..72bdc8811
--- /dev/null
+++ b/demos/org.eclipse.fx.demo.fxgraph.osgi/OSGI-INF/l10n/bundle.properties
@@ -0,0 +1,4 @@
+#Properties file for org.eclipse.fx.demo.fxgraph.osgi
+product.name = Hello JavaFXML
+Bundle-Vendor = BestSolution.at
+Bundle-Name = FXGraph OSGi Example \ No newline at end of file
diff --git a/demos/org.eclipse.fx.demo.fxgraph.osgi/about.html b/demos/org.eclipse.fx.demo.fxgraph.osgi/about.html
new file mode 100755
index 000000000..ecd1378e9
--- /dev/null
+++ b/demos/org.eclipse.fx.demo.fxgraph.osgi/about.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+<title>About</title>
+</head>
+<body lang="EN-US">
+<h2>About This Content</h2>
+
+<p>June 2, 2006</p>
+<h3>License</h3>
+
+<p>The BestSolution.at makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise
+indicated below, the Content is provided to you under the terms and conditions of the
+Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available
+at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
+For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
+
+<p>If you did not receive this Content directly from the BestSolution.at, the Content is
+being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may
+apply to your use of any object code in the Content. Check the Redistributor's license that was
+provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
+indicated below, the terms and conditions of the EPL still apply to any source code in the Content
+and such source code may be obtained at <a href="http://www.eclipse.org">http://www.eclipse.org</a>.</p>
+
+</body>
+</html> \ No newline at end of file
diff --git a/demos/org.eclipse.fx.demo.fxgraph.osgi/build.properties b/demos/org.eclipse.fx.demo.fxgraph.osgi/build.properties
new file mode 100755
index 000000000..027c19131
--- /dev/null
+++ b/demos/org.eclipse.fx.demo.fxgraph.osgi/build.properties
@@ -0,0 +1,9 @@
+output.. = bin/
+bin.includes = plugin.xml,\
+ META-INF/,\
+ .,\
+ icons/,\
+ splash.bmp,\
+ about.html,\
+ OSGI-INF/
+source.. = src/,\
diff --git a/demos/org.eclipse.fx.demo.fxgraph.osgi/icons/alt_about.gif b/demos/org.eclipse.fx.demo.fxgraph.osgi/icons/alt_about.gif
new file mode 100755
index 000000000..20d9ad2d9
--- /dev/null
+++ b/demos/org.eclipse.fx.demo.fxgraph.osgi/icons/alt_about.gif
Binary files differ
diff --git a/demos/org.eclipse.fx.demo.fxgraph.osgi/icons/alt_launcher.icns b/demos/org.eclipse.fx.demo.fxgraph.osgi/icons/alt_launcher.icns
new file mode 100755
index 000000000..b77a6a639
--- /dev/null
+++ b/demos/org.eclipse.fx.demo.fxgraph.osgi/icons/alt_launcher.icns
Binary files differ
diff --git a/demos/org.eclipse.fx.demo.fxgraph.osgi/icons/alt_launcher.ico b/demos/org.eclipse.fx.demo.fxgraph.osgi/icons/alt_launcher.ico
new file mode 100755
index 000000000..d548f7109
--- /dev/null
+++ b/demos/org.eclipse.fx.demo.fxgraph.osgi/icons/alt_launcher.ico
Binary files differ
diff --git a/demos/org.eclipse.fx.demo.fxgraph.osgi/icons/alt_launcher.xpm b/demos/org.eclipse.fx.demo.fxgraph.osgi/icons/alt_launcher.xpm
new file mode 100755
index 000000000..b0c139e06
--- /dev/null
+++ b/demos/org.eclipse.fx.demo.fxgraph.osgi/icons/alt_launcher.xpm
@@ -0,0 +1,307 @@
+/* XPM */
+static char * icon48_xpm[] = {
+"48 48 256 2",
+" c #4B4B3B3B9090",
+". c #0D0D0E0E5454",
+"X c #11110E0E5B5B",
+"o c #17170F0F6363",
+"O c #1D1D13136969",
+"+ c #212114146C6C",
+"@ c #252514147171",
+"# c #282811116C6C",
+"$ c #26260D0D6363",
+"% c #22220B0B5E5E",
+"& c #1C1C0B0B5A5A",
+"* c #1C1C0B0B5252",
+"= c #1B1B05055353",
+"- c #161606064D4D",
+"; c #161605054949",
+": c #111104044848",
+"> c #131304044545",
+", c #131305054242",
+"< c #141410105E5E",
+"1 c #2C2C15157373",
+"2 c #2B2B1B1B7575",
+"3 c #343416167272",
+"4 c #313113136E6E",
+"5 c #222209095757",
+"6 c #1B1B06064D4D",
+"7 c #15150B0B4242",
+"8 c #13130C0C5555",
+"9 c #2E2E1B1B7878",
+"0 c #33331F1F7C7C",
+"q c #343418187878",
+"w c #3B3B1C1C7575",
+"e c #2E2E10106767",
+"r c #1B1B07074747",
+"t c #18180B0B4646",
+"y c #151513136262",
+"u c #1A1A15156464",
+"i c #34341F1F7777",
+"p c #40401E1E8080",
+"a c #42421B1B7A7A",
+"s c #3B3B15157474",
+"d c #2B2B0B0B5B5B",
+"f c #222207075252",
+"g c #373727277A7A",
+"h c #474724248484",
+"j c #393915156E6E",
+"k c #373711116A6A",
+"l c #343413136363",
+"z c #232319196E6E",
+"x c #292919197070",
+"c c #3C3C2C2C8282",
+"v c #444431318585",
+"b c #494934348A8A",
+"n c #505026268A8A",
+"m c #3D3D1B1B6E6E",
+"M c #31310E0E5C5C",
+"N c #2B2B0D0D5353",
+"B c #222207074A4A",
+"V c #52523C3C9292",
+"C c #58583C3C9494",
+"Z c #5D5D44449797",
+"A c #5C5C2E2E9292",
+"S c #676733339595",
+"D c #424228287575",
+"F c #29290A0A4F4F",
+"G c #6C6C4A4A9E9E",
+"H c #72725454A7A7",
+"J c #8C8C6D6DB2B2",
+"K c #343424246E6E",
+"L c #3A3A23236A6A",
+"P c #3A3A1C1C6767",
+"I c #24240A0A4B4B",
+"U c #151518186161",
+"Y c #76766F6FA5A5",
+"T c #ADAD9191CCCC",
+"R c #98988989D3D3",
+"E c #45453B3B8686",
+"W c #3C3C35357979",
+"Q c #363631317575",
+"! c #32322D2D6B6B",
+"~ c #323229296363",
+"^ c #30301F1F6262",
+"/ c #323218185E5E",
+"( c #272707074B4B",
+") c #202028286C6C",
+"_ c #1E1E1D1D6868",
+"` c #9A9A8282BBBB",
+"' c #C8C8B3B3D3D3",
+"] c #B3B3AFAFE7E7",
+"[ c #84847272C6C6",
+"{ c #58585757A3A3",
+"} c #3F3F3C3C8A8A",
+"| c #3B3B3A3A8484",
+" . c #414139397D7D",
+".. c #3D3D39397A7A",
+"X. c #37372E2E6E6E",
+"o. c #2C2C21215A5A",
+"O. c #2E2E1B1B5B5B",
+"+. c #F5F5EFEFF5F5",
+"@. c #656566669A9A",
+"#. c #47474B4B8E8E",
+"$. c #3C3C44447B7B",
+"%. c #444442428080",
+"&. c #45453E3E8181",
+"*. c #40403C3C8181",
+"=. c #3D3D33337474",
+"-. c #3B3B30306E6E",
+";. c #38382D2D6969",
+":. c #303026265D5D",
+">. c #2C2C15155A5A",
+",. c #1F1F1C1C7070",
+"<. c #25251E1E7171",
+"1. c #59595C5C9191",
+"2. c #4D4D53538989",
+"3. c #4C4C49498484",
+"4. c #484845458585",
+"5. c #494941418585",
+"6. c #494940408181",
+"7. c #2F2F1C1C5353",
+"8. c #2B2B28287676",
+"9. c #323231317F7F",
+"0. c #545452528B8B",
+"q. c #51514E4E8989",
+"w. c #4E4E4B4B8C8C",
+"e. c #4C4C47478686",
+"r. c #46463D3D7E7E",
+"t. c #434336367A7A",
+"y. c #2B2B13135555",
+"u. c #47473D3D8D8D",
+"i. c #575757578E8E",
+"p. c #48483E3E7F7F",
+"a. c #46463A3A7D7D",
+"s. c #424235357575",
+"d. c #404034347171",
+"f. c #BFBFCBCBFAFA",
+"g. c #B8B8A8A8DDDD",
+"h. c #5E5E60609292",
+"j. c #565655558C8C",
+"k. c #4B4B44448282",
+"l. c #454539397B7B",
+"z. c #434338387878",
+"x. c #3F3F32326D6D",
+"c. c #3D3D30306969",
+"v. c #3A3A2E2E6363",
+"b. c #36362A2A5C5C",
+"n. c #343424245555",
+"m. c #30301E1E4D4D",
+"M. c #49493C3C8282",
+"N. c #5E5E4F4F8C8C",
+"B. c #56563B3B8B8B",
+"V. c #545407078585",
+"C. c #424234347272",
+"Z. c #9797A4A4F7F7",
+"A. c #444436367676",
+"S. c #7D7D7979D5D5",
+"D. c #464640408A8A",
+"F. c #44444B4B8282",
+"G. c #414107077777",
+"H. c #71716161C1C1",
+"J. c #303039397979",
+"K. c #8E8E8E8EE6E6",
+"L. c #404033338B8B",
+"P. c #4A4A45458C8C",
+"I. c #46463A3A8080",
+"U. c #363629295454",
+"Y. c #303022224848",
+"T. c #424237377575",
+"R. c #2E2E1D1D6363",
+"E. c #79798383EAEA",
+"W. c #74747B7BE4E4",
+"Q. c #6D6D7676D6D6",
+"!. c #6A6A7171CECE",
+"~. c #66666969C6C6",
+"^. c #62626565BCBC",
+"/. c #5F5F6060B5B5",
+"(. c #5B5B5B5BACAC",
+"). c #535353539898",
+"_. c #4F4F4F4FA4A4",
+"`. c #54544D4DA4A4",
+"'. c #323204046B6B",
+"]. c #303035357979",
+"[. c #313122224343",
+"{. c #5A5A5B5BB7B7",
+"}. c #484846468080",
+"|. c #454541417575",
+" X c #4B4B31318282",
+".X c #47473C3C8484",
+"XX c #3E3E35356E6E",
+"oX c #2F2F26264040",
+"OX c #2B2B23233A3A",
+"+X c #262619195C5C",
+"@X c #252515155A5A",
+"#X c #55555151B3B3",
+"$X c #3C3C2D2D5D5D",
+"%X c #39392F2F5656",
+"&X c #37372D2D5050",
+"*X c #25251F1F3030",
+"=X c #24241D1D4343",
+"-X c #202013135656",
+";X c #41413B3B6C6C",
+":X c #444442429696",
+">X c #212100005E5E",
+",X c #444436367272",
+"<X c #444436366F6F",
+"1X c #424236366868",
+"2X c #3F3F34346161",
+"3X c #3C3C32325A5A",
+"4X c #34342A2A4A4A",
+"5X c #21211B1B2121",
+"6X c #22221C1C6363",
+"7X c #2D2D01015E5E",
+"8X c #20201B1B2525",
+"9X c #49492F2F7B7B",
+"0X c #434334346C6C",
+"qX c #323229294545",
+"wX c #1C1C10104F4F",
+"eX c #222217176363",
+"rX c #37371E1E6B6B",
+"tX c #424232326E6E",
+"yX c #444433336969",
+"uX c #424233336565",
+"iX c #1E1E1A1A1E1E",
+"pX c #161601014C4C",
+"aX c #1C1C11115454",
+"sX c #252503035B5B",
+"dX c #414131316A6A",
+"fX c #22221F1F7878",
+"gX c #272724246767",
+"hX c #1D1D16165E5E",
+"jX c #131305055151",
+"kX c #40402F2F6464",
+"lX c #111107074E4E",
+"zX c #0C0C05054B4B",
+"xX c #22221E1E5757",
+"cX c #1A1A0D0D4D4D",
+"vX c #16160B0B4D4D",
+"bX c #060604044747",
+"nX c #040403034343",
+"mX c #3B3B27276565",
+"MX c #0E0E03034141",
+"NX c #111106064A4A",
+"BX c #0E0E04044646",
+"VX c #111105053B3B",
+"CX c #0D0D01013A3A",
+"ZX c #030305053F3F",
+"AX c #0F0F0F0F4C4C",
+"SX c #020207073B3B",
+"DX c #0D0D03034646",
+"FX c #0B0B02023F3F",
+"GX c #0D0D02023434",
+"HX c #0A0A0E0E4444",
+"JX c #161614145252",
+"KX c #0B0B04044646",
+"LX c #0A0A03034444",
+"PX c #1D1D21215757",
+"IX c #090910104040",
+"UX c #18181E1E5353",
+" ",
+" . . . . X X o o o o O + + @ @ @ @ @ @ @ # # # # # # $ $ % % & & & & * = - - - ; : > > , , , ",
+" . . X X < < o o O O + @ 1 2 2 1 1 1 1 1 1 1 1 3 4 # # $ $ $ % % % 5 = = 6 6 - ; ; > > , , 7 ",
+" . 8 < < < o O O + @ @ 2 9 9 0 0 q q q q q q q w 3 4 4 e e $ $ $ $ % 5 = = 6 6 6 ; ; > > r t ",
+" . X < y u O O + @ 1 2 i 0 0 p p p p p p p a a p a s 3 4 4 e e e e d 5 5 f f 6 6 6 ; ; r r t ",
+" X < y u O + + @ 2 9 0 g p p h h h h h h h p h h a a s s j k k j l d d 5 5 f f 6 6 r r r r r ",
+" X < y O z x x 9 0 g c v b n n n n n n n n n n n h a a s s j j m l M d d N f f B B B B r r r ",
+" < y u + z 2 0 c c b V C Z C C A A A A A S S S n h D w w m m m m k l M d d N f F F F B r r r ",
+" < y O z z 9 c b V Z G H H H G S G G J J H V v c g g K K K K L P l l l M M N N N N I B B r r ",
+" U u + z x i v C H Y J J J J H J T R H V E W W Q Q Q Q ! ! ! ~ ^ ^ / / M M M M M N ( B B r r ",
+" ) _ z x 9 g b Z Y ` ' ' ' T T ] [ { } | .........W W Q Q X.! ~ ~ o.O./ / / / N F ( B B B r ",
+" ) ) z x i c V G J ' +.+.+.+.] [ @.#.$.%.%.%.&.*. . .....W =.-.X.;.~ :.o.O.^ >.N F ( B B B B ",
+" ) ,.<.2 g v C H J ' +.+.+.+.T Y 1.2.3.4.4.4.5.6.&.&. . ...W =.=.-.;.~ :.o.7.>.N F F ( B I I ",
+" ) ,.<.8.9.b C H J T +.+.+.' J @.1.0.q.q.w.e.4.5.6.&.r. . .t.W =.=.-.;.~ :.o.7.y.N F ( ( I I ",
+" 8.8.8.9.| u.C G J T +.+.' ` Y @.1.i.0.q.q.e.e.5.6.p.r.a. .t.t.s.d.d.-.;.~ :.7.7.y.F F ( I I ",
+" 9.c c c v b A S H ' f.g.` Y @.h.1.i.j.0.q.q.e.k.6.p.r.a.l.t.z.s.s.d.x.c.v.b.n.m.7.N F F F I ",
+" <.g M.N.B.B.n V.J f.R J @.h.h.1.i.i.j.j.0.q.3.k.6.p.r.a.l.l.z.s.C.d.x.x.c.v.b.n.m.y.N F F F ",
+" + x i v B.Z Z G g.Z.[ @.2.i.i.j.j.j.j.j.0.q.3.k.6.p.p.a.l.l.A.s.C.C.d.x.c.v.b.n.m.7.y.N N y. ",
+" O # 3 w p n Z ` f.S.H D.F.q.0.0.0.0.j.0.q.q.3.k.6.p.r.a.a.l.A.s.s.C.d.x.x.c.v.b.n.m.y.y.y.y. ",
+" O # 4 s a G.V.T Z.H.V J.%.e.w.q.0.0.0.0.q.q.e.k.6.p.r.a.a.l.z.A.s.C.d.d.x.c.v.b.n.m.7.>.y.y. ",
+" O # 4 s w G.A f.K.H L...4.P.w.w.w.q.q.q.q.e.e.5.6.M.I.I.a.a.l.z.A.s.d.d.x.c.v.v.U.Y.7.O.>.y. ",
+" $ # 4 3 s G.G f.S.Z 9.*.D.P.P.w.w.w.w.w.e.e.5.5.M.M.I.I.a.a.l.z.T.s.d.d.x.x.c.v.U.Y.m.R.>.>. ",
+" E.E.W.W.W.W.E.Z.E.W.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.!.!.!.!.!.~.~.~.~.~.~.^.^.^.^.^./././.(.{ { )._.`._. ",
+" + # 3 w s '.` f.H.V ].*.D.P.P.P.P.P.P.P.5.5.5.M.M.M.I.I.a.l.z.z.T.T.s.d.d.x.c.v.U.Y.[.^ O.>. ",
+" ~.~.~.~.~.~.K.Z.S.~.{.^.^.^.^.^.^.^.^././././././.(.(.(.(.(.(.{ { { { { ).).).w.w.}.|.P.u.} ",
+" .I.6. X X XT f.H.b ].*.E D.D.D.D.5.5..X.XM.M.I.I.a.a.l.l.z.z.T.T.T.d.XXx.c.v.b.U.oXOXR.+X@X ",
+" E.E.E.W.W.W.K.Z.E.W.Q.Q.Q.Q.Q.Q.Q.Q.!.!.!.!.!.!.~.~.~.~.~.~.^.^.^.^.^./././.(.{ { ).).#X_._. ",
+" & % $ e '.= H f.H.b 8.W *.E E E .X.X.XI.I.I.I.a.a.l.l.z.z.T.T.T.C.XXXXc.v.$X%X&XY.*X=X2 @X-X ",
+" {.{.{.{.{.#X~.Z.W.~.{.{./././././././././.(.(.(.(.(.(.(.{ { { { { { ).).).w.w.3.}.;X%.:X} } ",
+" & & % $ e >XV.f.S.C K X.W t. . .l.l.t.t.t.t.A.A.A.,X,X,X,X,X<X;X1X1X2X3X%X&X4XoX*X5Xo.6X-X-X ",
+" & & % $ $ >X7X` Z.Z D ! =.=.s.t.t.t.A.A.s.A.,X,X,X,X<X<X<X<X;X1X2X2X3X%X&X4XoXOX8X5X<.@X-X-X ",
+" 8 & & $ e K 9XJ f.^. XK X.=.=.s.s.s.s.s.C.C.C.C.<X0X0X0X1X1X1X2X2X3X%X&X4XqXOX*X8X=X<.-X-XwX ",
+" 8 & eXK k.@.M. Xg.E.B.rX~ -.d.d.C.C.C.C.C.tX0X0X0XyXyX1X1XuX2X2X3X%X&X4XqXoXOX8XiX6XeX-X-XwX ",
+" 6XQ h.Y N.K e pXB.f./.9Xo.;.-.x.d.tXtXtXtXtX0X0XyXyXyXuXuX2X2X3X%X&X4XqXoXOX*XiX=X_ aX-XaXwX ",
+" Y Y .R.@X% sX= 7XT Z.V P :.;.c.x.x.x.tXdXdXdXyXyXuXuX2X2X3X3X%X&X4XqXoXOX*X8X*XfXaXaXaXwXwX ",
+" gXhX& * & 5 5 sXjXa ] S.9X/ ~ v.c.dXdXdXdXdXuXuXuXkX2X2X3X%X%X&X4XqXoXOX*X8XiX<.hXwXwXaXwXwX ",
+" 8 lXlXjX= * 5 5 = zX9X] H.D 7.b.v.v.kXc.kXkXkXkXkX2X$X3X%X&X&X4XqXoXOX*X8XiXxXhXwXcXcXwXwXwX ",
+" zXzXlXlXjX= = f f sXD Y ] ~.D 7.n.b.v.v.kXkXkXkX$X$X%X%X&X4XqXoXoXOX*X8X5XgXu cXvXvXcXcXwXwX ",
+" bXbXzXlXlX- = * @XX.h.e D T S.D n.m.b.$X$X$X$X$X%X%X&X&X4XqXoXOX*X8X8X*X<.hXvX; ; vXvXvXcXwX ",
+" nXbXzXzXlXlX- -XX.Y R.pXpXP J K.Z mXm.n.U.U.U.U.U.4X4XY.oXOX*X8X8X8X=X,.aXvX; > > > t t t cX ",
+" nXbXbXzXzXlXaXXXY +Xf = f = 7XtXR R mXn.Y.[.[.[.[.OX*X*X8X5X*X=X,.u vXvX; > > MXMX, 7 t t ",
+" nXnXnXbXzXvX-.Y +XcX6 6 = = = d L B.G H `.X.:.7.m.=X=X=X=X=X6X,.u cXvXNX: BX> MXVXCXVX7 7 7 ",
+" ZXZXnXbXAXgX@.+XvX; - - - - * @XR.>.sX>.R.i 0 x eXeXeXeXO hXaXcXvXNX: BXMXMXMXVXCXCXCXVX7 7 ",
+" SXZXZXAXgXN.aXNX: : NXNXNX- * +X+X* 6 6 6 * * * * * * * vXvX- NX: DXBXMXMXFXCXCXCXCXGXVXVX7 ",
+" SXSXHXgX0.JXKXLXKXKXDX: : NX* @X-X- - - - - - - - - - - NX: DXDXDXMXMXFXFXCXCXCXCXGXGXGXVXVX ",
+" SXHXPX3.JXnXnXnXnXbXLXKXKXNXaX-XvX: : NX: : : : : : : BXDXDXLXMXMXFXFXCXCXCXCXGXGXGXGXGXGXGX ",
+" IXUX$.AXZXZXZXZXnXnXnXLXLXNXJXvXBXDXBXBXBXBXDXDXDXDXLXDXLXLXFXFXFXFXCXCXCXCXGXGXGXGXGXGXGXGX ",
+" "};
diff --git a/demos/org.eclipse.fx.demo.fxgraph.osgi/icons/alt_window_16.gif b/demos/org.eclipse.fx.demo.fxgraph.osgi/icons/alt_window_16.gif
new file mode 100755
index 000000000..05626b17d
--- /dev/null
+++ b/demos/org.eclipse.fx.demo.fxgraph.osgi/icons/alt_window_16.gif
Binary files differ
diff --git a/demos/org.eclipse.fx.demo.fxgraph.osgi/icons/alt_window_32.gif b/demos/org.eclipse.fx.demo.fxgraph.osgi/icons/alt_window_32.gif
new file mode 100755
index 000000000..b432f8833
--- /dev/null
+++ b/demos/org.eclipse.fx.demo.fxgraph.osgi/icons/alt_window_32.gif
Binary files differ
diff --git a/demos/org.eclipse.fx.demo.fxgraph.osgi/plugin.xml b/demos/org.eclipse.fx.demo.fxgraph.osgi/plugin.xml
new file mode 100755
index 000000000..ceaf12fe9
--- /dev/null
+++ b/demos/org.eclipse.fx.demo.fxgraph.osgi/plugin.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+
+ <extension
+ id="application"
+ point="org.eclipse.core.runtime.applications">
+ <application>
+ <run
+ class="org.eclipse.fx.demo.fxgraph.osgi.Application">
+ </run>
+ </application>
+ </extension>
+ <extension
+ id="product"
+ point="org.eclipse.core.runtime.products">
+ <product
+ application="org.eclipse.fx.demo.fxgraph.osgi.application"
+ name="Hello JavaFXML">
+ <property
+ name="windowImages"
+ value="icons/alt_window_16.gif,icons/alt_window_32.gif">
+ </property>
+ <property
+ name="appName"
+ value="Hello JavaFXML">
+ </property>
+ </product>
+ </extension>
+
+</plugin>
diff --git a/demos/org.eclipse.fx.demo.fxgraph.osgi/splash.bmp b/demos/org.eclipse.fx.demo.fxgraph.osgi/splash.bmp
new file mode 100755
index 000000000..d7d2e3032
--- /dev/null
+++ b/demos/org.eclipse.fx.demo.fxgraph.osgi/splash.bmp
Binary files differ
diff --git a/demos/org.eclipse.fx.demo.fxgraph.osgi/src/org/eclipse/fx/demo/fxgraph/osgi/Activator.java b/demos/org.eclipse.fx.demo.fxgraph.osgi/src/org/eclipse/fx/demo/fxgraph/osgi/Activator.java
new file mode 100755
index 000000000..10184f596
--- /dev/null
+++ b/demos/org.eclipse.fx.demo.fxgraph.osgi/src/org/eclipse/fx/demo/fxgraph/osgi/Activator.java
@@ -0,0 +1,30 @@
+package org.eclipse.fx.demo.fxgraph.osgi;
+
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+
+public class Activator implements BundleActivator {
+
+ private static BundleContext context;
+
+ static BundleContext getContext() {
+ return context;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext bundleContext) throws Exception {
+ Activator.context = bundleContext;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext bundleContext) throws Exception {
+ Activator.context = null;
+ }
+
+}
diff --git a/demos/org.eclipse.fx.demo.fxgraph.osgi/src/org/eclipse/fx/demo/fxgraph/osgi/Application.java b/demos/org.eclipse.fx.demo.fxgraph.osgi/src/org/eclipse/fx/demo/fxgraph/osgi/Application.java
new file mode 100755
index 000000000..596ad41f2
--- /dev/null
+++ b/demos/org.eclipse.fx.demo.fxgraph.osgi/src/org/eclipse/fx/demo/fxgraph/osgi/Application.java
@@ -0,0 +1,94 @@
+package org.eclipse.fx.demo.fxgraph.osgi;
+
+import java.util.logging.Level;
+import java.util.logging.Logger;
+
+import org.eclipse.equinox.app.IApplication;
+import org.eclipse.equinox.app.IApplicationContext;
+import org.eclipse.fx.demo.fxgraph.osgi.model.User;
+import org.eclipse.fx.demo.fxgraph.osgi.security.Authenticator;
+import org.eclipse.fx.osgi.util.OSGiFXMLLoader;
+import org.eclipse.fx.ui.application.AbstractJFXApplication;
+
+import javafx.fxml.FXMLLoader;
+import javafx.fxml.JavaFXBuilderFactory;
+import javafx.scene.Scene;
+import javafx.scene.layout.AnchorPane;
+import javafx.stage.Stage;
+
+/**
+ * This class controls all aspects of the JavaFX OSGi application's execution
+ */
+public class Application extends AbstractJFXApplication {
+ private Stage stage;
+ private User loggedUser;
+
+ private static Application instance;
+
+ public Application() {
+ instance = this;
+ }
+
+ public static Application getInstance() {
+ return instance;
+ }
+
+ protected void jfxStart(IApplicationContext context, javafx.application.Application jfxApplication, Stage primaryStage) {
+ try {
+ stage = primaryStage;
+ gotoLogin();
+ primaryStage.show();
+ } catch (Exception ex) {
+ Logger.getLogger(Application.class.getName()).log(Level.SEVERE, null, ex);
+ }
+ }
+
+ public User getLoggedUser() {
+ return loggedUser;
+ }
+
+ public boolean userLogging(String userId, String password){
+ if (Authenticator.validate(userId, password)) {
+ loggedUser = User.of(userId);
+ gotoProfile();
+ return true;
+ } else {
+ return false;
+ }
+ }
+
+ public void userLogout(){
+ loggedUser = null;
+ gotoLogin();
+ }
+
+ private void gotoProfile() {
+ try {
+ replaceSceneContent("profile.fxml");
+ } catch (Exception ex) {
+ Logger.getLogger(Application.class.getName()).log(Level.SEVERE, null, ex);
+ }
+ }
+
+ private void gotoLogin() {
+ try {
+ replaceSceneContent("login.fxml");
+ } catch (Exception ex) {
+ Logger.getLogger(Application.class.getName()).log(Level.SEVERE, null, ex);
+ }
+ }
+
+ private AnchorPane replaceSceneContent(String fxml) throws Exception {
+ AnchorPane page = (AnchorPane) OSGiFXMLLoader.load(getClass(), fxml, null, null);
+ Scene scene = stage.getScene();
+ if (scene == null) {
+ scene = new Scene(page);
+ scene.getStylesheets().add(Application.class.getResource("demo.css").toExternalForm());
+ stage.setScene(scene);
+ } else {
+ stage.getScene().setRoot(page);
+ }
+ stage.sizeToScene();
+ return page;
+ }
+} \ No newline at end of file
diff --git a/demos/org.eclipse.fx.demo.fxgraph.osgi/src/org/eclipse/fx/demo/fxgraph/osgi/LoginController.java b/demos/org.eclipse.fx.demo.fxgraph.osgi/src/org/eclipse/fx/demo/fxgraph/osgi/LoginController.java
new file mode 100755
index 000000000..15bd496d7
--- /dev/null
+++ b/demos/org.eclipse.fx.demo.fxgraph.osgi/src/org/eclipse/fx/demo/fxgraph/osgi/LoginController.java
@@ -0,0 +1,53 @@
+/*
+ * Copyright (c) 2008, 2011 Oracle and/or its affiliates.
+ * All rights reserved. Use is subject to license terms.
+ *
+ * This file is available and licensed under the following license:
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * - Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * - Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the distribution.
+ * - Neither the name of Oracle Corporation nor the names of its
+ * contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+package org.eclipse.fx.demo.fxgraph.osgi;
+
+import javafx.event.ActionEvent;
+import javafx.fxml.FXML;
+import javafx.scene.control.PasswordField;
+import javafx.scene.control.TextField;
+import javafx.scene.control.Label;
+
+/**
+ * Login Controller.
+ */
+public class LoginController {
+ @FXML private TextField userId;
+ @FXML private PasswordField password;
+ @FXML private Label errorMessage;
+
+ @FXML protected void processLogin(ActionEvent event) {
+ if(!Application.getInstance().userLogging(userId.getText(), password.getText())){
+ errorMessage.setText("Invalid username or password: " + userId.getText());
+ }
+ }
+}
diff --git a/demos/org.eclipse.fx.demo.fxgraph.osgi/src/org/eclipse/fx/demo/fxgraph/osgi/ProfileController.java b/demos/org.eclipse.fx.demo.fxgraph.osgi/src/org/eclipse/fx/demo/fxgraph/osgi/ProfileController.java
new file mode 100755
index 000000000..92c7d089d
--- /dev/null
+++ b/demos/org.eclipse.fx.demo.fxgraph.osgi/src/org/eclipse/fx/demo/fxgraph/osgi/ProfileController.java
@@ -0,0 +1,95 @@
+/*
+ * Copyright (c) 2008, 2011 Oracle and/or its affiliates.
+ * All rights reserved. Use is subject to license terms.
+ *
+ * This file is available and licensed under the following license:
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * - Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * - Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the distribution.
+ * - Neither the name of Oracle Corporation nor the names of its
+ * contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+package org.eclipse.fx.demo.fxgraph.osgi;
+
+import java.net.URL;
+import java.util.ResourceBundle;
+
+import org.eclipse.fx.demo.fxgraph.osgi.model.User;
+
+import javafx.animation.FadeTransition;
+import javafx.event.ActionEvent;
+import javafx.fxml.FXML;
+import javafx.fxml.Initializable;
+import javafx.scene.control.CheckBox;
+import javafx.scene.control.Label;
+import javafx.scene.control.TextArea;
+import javafx.scene.control.TextField;
+import javafx.util.Duration;
+
+/**
+ * Java FX FXML Controller.
+ */
+public class ProfileController implements Initializable {
+ @FXML private TextField user;
+ @FXML private TextField phone;
+ @FXML private TextField email;
+ @FXML private TextArea address;
+ @FXML private CheckBox subscribed;
+ @FXML private Label success;
+
+ @Override public void initialize(URL location, ResourceBundle resources) {
+ User loggedUser = Application.getInstance().getLoggedUser();
+ user.setText(loggedUser.getId());
+ if(loggedUser.getEmail() != null) {
+ email.setText(loggedUser.getEmail());
+ }
+ if(loggedUser.getPhone() != null) {
+ phone.setText(loggedUser.getPhone());
+ }
+ if(loggedUser.getAddress() != null) {
+ address.setText(loggedUser.getAddress());
+ }
+ subscribed.setSelected(loggedUser.isSubscribed());
+ success.setOpacity(0);
+ }
+
+ @FXML protected void processLogout(ActionEvent event) {
+ Application.getInstance().userLogout();
+ }
+
+ @FXML protected void processUpdate(ActionEvent event) {
+ User loggedUser = Application.getInstance().getLoggedUser();
+ loggedUser.setEmail(email.getText());
+ loggedUser.setPhone(phone.getText());
+ loggedUser.setSubscribed(subscribed.isSelected());
+ loggedUser.setAddress(address.getText());
+ animateMessage();
+ }
+
+ private void animateMessage() {
+ FadeTransition ft = new FadeTransition(new Duration(3000), success);
+ ft.setFromValue(0.0);
+ ft.setToValue(1);
+ ft.play();
+ }
+}
diff --git a/demos/org.eclipse.fx.demo.fxgraph.osgi/src/org/eclipse/fx/demo/fxgraph/osgi/demo.css b/demos/org.eclipse.fx.demo.fxgraph.osgi/src/org/eclipse/fx/demo/fxgraph/osgi/demo.css
new file mode 100755
index 000000000..fb4753602
--- /dev/null
+++ b/demos/org.eclipse.fx.demo.fxgraph.osgi/src/org/eclipse/fx/demo/fxgraph/osgi/demo.css
@@ -0,0 +1,47 @@
+/*
+ * Copyright (c) 2008, 2011 Oracle and/or its affiliates.
+ * All rights reserved. Use is subject to license terms.
+ *
+ * This file is available and licensed under the following license:
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * - Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * - Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the distribution.
+ * - Neither the name of Oracle Corporation nor the names of its
+ * contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+.login {
+ -fx-background-color:linear-gradient(white,#DDDDDD);
+ -fx-font-size: 1.2em;
+}
+.profile {
+ -fx-background-color:linear-gradient(white,#DDDDDD);
+ -fx-font-size: 1.2em;
+}
+.profile #subscribed {
+ -fx-font-size: 0.8em;
+}
+.profile #message {
+ -fx-font-size: 1.2em;
+ -fx-font-weight: bold;
+}
diff --git a/demos/org.eclipse.fx.demo.fxgraph.osgi/src/org/eclipse/fx/demo/fxgraph/osgi/login.fxgraph b/demos/org.eclipse.fx.demo.fxgraph.osgi/src/org/eclipse/fx/demo/fxgraph/osgi/login.fxgraph
new file mode 100755
index 000000000..18bc37fc1
--- /dev/null
+++ b/demos/org.eclipse.fx.demo.fxgraph.osgi/src/org/eclipse/fx/demo/fxgraph/osgi/login.fxgraph
@@ -0,0 +1,64 @@
+package org.eclipse.fx.demo.fxgraph.osgi
+
+import java.lang.*
+import java.util.*
+import javafx.collections.*
+import javafx.scene.*
+import javafx.scene.control.*
+import javafx.scene.layout.*
+import javafx.scene.paint.*
+import javafx.scene.text.*
+
+component LoginComponent controlledby org.eclipse.fx.demo.fxgraph.osgi.LoginController {
+ AnchorPane id Login {
+ prefHeight : 280.0,
+ prefWidth : 480.0,
+ children : [
+ TextField id userId {
+ layoutX : 68.0,
+ layoutY : 58.0,
+ prefWidth : 126.0,
+ onAction : controllermethod processLogin
+ },
+ PasswordField id password {
+ layoutX : 323.0,
+ layoutY : 58.0,
+ prefWidth : 126.0,
+ onAction : controllermethod processLogin
+ },
+ Label {
+ layoutX : 229.0,
+ layoutY : 61.0,
+ text : "Password"
+ },
+ Label {
+ layoutX : 16.0,
+ layoutY : 61.0,
+ text : "User"
+ },
+ Button id login {
+ layoutX : 200.0,
+ layoutY : 125.0,
+ text : "login",
+ defaultButton : true,
+ onAction : controllermethod processLogin
+ },
+ Label id errorMessage {
+ layoutX : 80.0,
+ layoutY : 200.0,
+ textFill : "RED"
+ }
+ ],
+ styleClass : [
+ String("login")
+ ],
+ properties : {
+ backgroundColor : Color {
+ blue: 1.0,
+ green: 1.0,
+ red: 1.0
+ },
+ elementLockSel : Boolean(true)
+ }
+ }
+} \ No newline at end of file
diff --git a/demos/org.eclipse.fx.demo.fxgraph.osgi/src/org/eclipse/fx/demo/fxgraph/osgi/login.fxml b/demos/org.eclipse.fx.demo.fxgraph.osgi/src/org/eclipse/fx/demo/fxgraph/osgi/login.fxml
new file mode 100755
index 000000000..4e6f46453
--- /dev/null
+++ b/demos/org.eclipse.fx.demo.fxgraph.osgi/src/org/eclipse/fx/demo/fxgraph/osgi/login.fxml
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Do not edit this file it is generated by e(fx)clipse from ../src/org/eclipse/fx/demo/fxgraph/osgi/login.fxgraph
+-->
+
+<?import java.lang.*?>
+<?import javafx.scene.control.Button?>
+<?import javafx.scene.control.Label?>
+<?import javafx.scene.control.PasswordField?>
+<?import javafx.scene.control.TextField?>
+<?import javafx.scene.layout.AnchorPane?>
+<?import javafx.scene.paint.Color?>
+
+<AnchorPane xmlns:fx="http://javafx.com/fxml" fx:id="Login" fx:controller="org.eclipse.fx.demo.fxgraph.osgi.LoginController" prefHeight="280.0" prefWidth="480.0">
+
+ <children>
+ <TextField fx:id="userId" layoutX="68.0" layoutY="58.0" prefWidth="126.0" onAction="#processLogin"/>
+ <PasswordField fx:id="password" layoutX="323.0" layoutY="58.0" prefWidth="126.0" onAction="#processLogin"/>
+ <Label layoutX="229.0" layoutY="61.0" text="Password"/>
+ <Label layoutX="16.0" layoutY="61.0" text="User"/>
+ <Button fx:id="login" layoutX="200.0" layoutY="125.0" text="login" defaultButton="true" onAction="#processLogin"/>
+ <Label fx:id="errorMessage" layoutX="80.0" layoutY="200.0" textFill="RED"/>
+ </children>
+ <styleClass>
+ <String fx:value="login"/>
+ </styleClass>
+ <properties>
+ <backgroundColor>
+ <Color blue="1.0" green="1.0" red="1.0"/>
+ </backgroundColor>
+ <elementLockSel>
+ <Boolean fx:value="true"/>
+ </elementLockSel>
+ </properties>
+</AnchorPane>
diff --git a/demos/org.eclipse.fx.demo.fxgraph.osgi/src/org/eclipse/fx/demo/fxgraph/osgi/model/User.java b/demos/org.eclipse.fx.demo.fxgraph.osgi/src/org/eclipse/fx/demo/fxgraph/osgi/model/User.java
new file mode 100755
index 000000000..34133f206
--- /dev/null
+++ b/demos/org.eclipse.fx.demo.fxgraph.osgi/src/org/eclipse/fx/demo/fxgraph/osgi/model/User.java
@@ -0,0 +1,121 @@
+/*
+ * Copyright (c) 2008, 2011 Oracle and/or its affiliates.
+ * All rights reserved. Use is subject to license terms.
+ *
+ * This file is available and licensed under the following license:
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * - Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * - Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the distribution.
+ * - Neither the name of Oracle Corporation nor the names of its
+ * contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+package org.eclipse.fx.demo.fxgraph.osgi.model;
+
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Data object for a User
+ */
+public class User {
+ private static final Map<String, User> USERS = new HashMap<String, User>();
+
+ private String id;
+ private String email;
+ private String phone;
+ private boolean subscribed;
+ private String address;
+
+ private User(String id) {
+ this.id = id;
+ }
+
+ public static User of(String id) {
+ User user = USERS.get(id);
+ if (user == null) {
+ user = new User(id);
+ USERS.put(id, user);
+ }
+ return user;
+ }
+
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * @return the email
+ */
+ public String getEmail() {
+ return email;
+ }
+
+ /**
+ * @param email the email to set
+ */
+ public void setEmail(String email) {
+ this.email = email;
+ }
+
+ /**
+ * @return the phone
+ */
+ public String getPhone() {
+ return phone;
+ }
+
+ /**
+ * @param phone the phone to set
+ */
+ public void setPhone(String phone) {
+ this.phone = phone;
+ }
+
+ /**
+ * @return the subscribed
+ */
+ public boolean isSubscribed() {
+ return subscribed;
+ }
+
+ /**
+ * @param subscribed the subscribed to set
+ */
+ public void setSubscribed(boolean subscribed) {
+ this.subscribed = subscribed;
+ }
+
+ /**
+ * @return the address
+ */
+ public String getAddress() {
+ return address;
+ }
+
+ /**
+ * @param address the address to set
+ */
+ public void setAddress(String address) {
+ this.address = address;
+ }
+}
diff --git a/demos/org.eclipse.fx.demo.fxgraph.osgi/src/org/eclipse/fx/demo/fxgraph/osgi/profile.fxgraph b/demos/org.eclipse.fx.demo.fxgraph.osgi/src/org/eclipse/fx/demo/fxgraph/osgi/profile.fxgraph
new file mode 100755
index 000000000..bd6b721ff
--- /dev/null
+++ b/demos/org.eclipse.fx.demo.fxgraph.osgi/src/org/eclipse/fx/demo/fxgraph/osgi/profile.fxgraph
@@ -0,0 +1,128 @@
+package org.eclipse.fx.demo.fxgraph.osgi
+
+import java.lang.*
+import javafx.scene.control.*
+import javafx.scene.layout.*
+import javafx.scene.shape.*
+import javafx.scene.text.*
+
+component ProfileComponent controlledby org.eclipse.fx.demo.fxgraph.osgi.ProfileController {
+ AnchorPane id Profile {
+ prefWidth : 650.0,
+ prefHeight : 443.0,
+ children : [
+ Button id update {
+ maxHeight : 2.0,
+ text : "Update",
+ call AnchorPane#bottomAnchor : 15.0,
+ call AnchorPane#rightAnchor : 168.0,
+ onAction : controllermethod processUpdate
+ },
+ Label id message {
+ layoutX : 56.0,
+ layoutY : 77.0,
+ text : "Please review your profile data."
+ },
+ Label {
+ layoutX : 56.0,
+ layoutY : 123.0,
+ text : "User:"
+ },
+ Label {
+ layoutX : 56.0,
+ layoutY : 224.0,
+ text : "Phone:"
+ },
+ Label {
+ layoutX : 56.0,
+ layoutY : 173.0,
+ text : "Email:"
+ },
+ TextField id user {
+ editable : false,
+ layoutX : 149.0,
+ layoutY : 120.0,
+ maxWidth : 2.0,
+ maxHeight : 30.0,
+ minWidth : 215.0,
+ prefWidth : 215.0,
+ prefHeight : 30.0
+ },
+ TextField id email {
+ editable : true,
+ layoutX : 149.0,
+ layoutY : 171,
+ maxWidth : 2.0,
+ minHeight : 30.0,
+ minWidth : 215.0,
+ prefHeight : 30.0,
+ prefWidth : 215.0
+ },
+ TextField id phone {
+ layoutX : 149.0,
+ layoutY : 224,
+ maxWidth : 2.0,
+ minHeight : 30.0,
+ minWidth : 215.0,
+ prefHeight : 30.0,
+ prefWidth : 215.0
+ },
+ CheckBox id subscribed {
+ layoutX : 402,
+ layoutY : 120,
+ text : "Subscribe to Newsletter"
+ },
+ Separator {
+ layoutX : 380,
+ layoutY : 110,
+ prefHeight : 155,
+ orientation : "vertical"
+ },
+ Hyperlink id logout {
+ layoutY : 24.0,
+ text : "logout",
+ call AnchorPane#rightAnchor: 52.0,
+ onAction : controllermethod processLogout
+ },
+ Button id Button {
+ disable : true,
+ maxHeight : 2,
+ maxWidth : 2.0,
+ text : "Continue",
+ defaultButton : true,
+ call AnchorPane#bottomAnchor:15.0,
+ call AnchorPane#rightAnchor: 52.0,
+ onAction : controllermethod processLogout
+ },
+ Label id success {
+ layoutX : 100.0,
+ layoutY : 401.0,
+ opacity : 0.0,
+ text : "Profile successfully updated!"
+ },
+ Label {
+ layoutX : 56.0,
+ layoutY : 284.0,
+ text : "Address:"
+ },
+ TextArea id address {
+ maxHeight : 2.0,
+ maxWidth : 2.0,
+ minHeight : 85.0,
+ minWidth : 448.0,
+ prefHeight : 85.0,
+ prefWidth : 448.0,
+ call AnchorPane#bottomAnchor: 69.0,
+ call AnchorPane#leftAnchor: 149.0,
+ call AnchorPane#rightAnchor: 52.0,
+ call AnchorPane#topAnchor: 289.0
+ }
+ ],
+ styleClass : [
+ String("profile")
+ ],
+ properties : {
+ elementLockSel : Boolean(true)
+ }
+ }
+} \ No newline at end of file
diff --git a/demos/org.eclipse.fx.demo.fxgraph.osgi/src/org/eclipse/fx/demo/fxgraph/osgi/profile.fxml b/demos/org.eclipse.fx.demo.fxgraph.osgi/src/org/eclipse/fx/demo/fxgraph/osgi/profile.fxml
new file mode 100755
index 000000000..81bded1d6
--- /dev/null
+++ b/demos/org.eclipse.fx.demo.fxgraph.osgi/src/org/eclipse/fx/demo/fxgraph/osgi/profile.fxml
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Do not edit this file it is generated by e(fx)clipse from ../src/org/eclipse/fx/demo/fxgraph/osgi/profile.fxgraph
+-->
+
+<?import java.lang.*?>
+<?import javafx.scene.control.Button?>
+<?import javafx.scene.control.CheckBox?>
+<?import javafx.scene.control.Hyperlink?>
+<?import javafx.scene.control.Label?>
+<?import javafx.scene.control.Separator?>
+<?import javafx.scene.control.TextArea?>
+<?import javafx.scene.control.TextField?>
+<?import javafx.scene.layout.AnchorPane?>
+
+<AnchorPane xmlns:fx="http://javafx.com/fxml" fx:id="Profile" fx:controller="org.eclipse.fx.demo.fxgraph.osgi.ProfileController" prefWidth="650.0" prefHeight="443.0">
+
+ <children>
+ <Button fx:id="update" maxHeight="2.0" text="Update" onAction="#processUpdate" AnchorPane.bottomAnchor="15.0" AnchorPane.rightAnchor="168.0"/>
+ <Label fx:id="message" layoutX="56.0" layoutY="77.0" text="Please review your profile data."/>
+ <Label layoutX="56.0" layoutY="123.0" text="User:"/>
+ <Label layoutX="56.0" layoutY="224.0" text="Phone:"/>
+ <Label layoutX="56.0" layoutY="173.0" text="Email:"/>
+ <TextField fx:id="user" editable="false" layoutX="149.0" layoutY="120.0" maxWidth="2.0" maxHeight="30.0" minWidth="215.0" prefWidth="215.0" prefHeight="30.0"/>
+ <TextField fx:id="email" editable="true" layoutX="149.0" layoutY="171" maxWidth="2.0" minHeight="30.0" minWidth="215.0" prefHeight="30.0" prefWidth="215.0"/>
+ <TextField fx:id="phone" layoutX="149.0" layoutY="224" maxWidth="2.0" minHeight="30.0" minWidth="215.0" prefHeight="30.0" prefWidth="215.0"/>
+ <CheckBox fx:id="subscribed" layoutX="402" layoutY="120" text="Subscribe to Newsletter"/>
+ <Separator layoutX="380" layoutY="110" prefHeight="155" orientation="vertical"/>
+ <Hyperlink fx:id="logout" layoutY="24.0" text="logout" onAction="#processLogout" AnchorPane.rightAnchor="52.0"/>
+ <Button fx:id="Button" disable="true" maxHeight="2" maxWidth="2.0" text="Continue" defaultButton="true" onAction="#processLogout" AnchorPane.bottomAnchor="15.0" AnchorPane.rightAnchor="52.0"/>
+ <Label fx:id="success" layoutX="100.0" layoutY="401.0" opacity="0" text="Profile successfully updated!"/>
+ <Label layoutX="56.0" layoutY="284.0" text="Address:"/>
+ <TextArea fx:id="address" maxHeight="2.0" maxWidth="2.0" minHeight="85.0" minWidth="448.0" prefHeight="85.0" prefWidth="448.0" AnchorPane.bottomAnchor="69.0" AnchorPane.leftAnchor="149.0" AnchorPane.rightAnchor="52.0" AnchorPane.topAnchor="289.0"/>
+ </children>
+ <styleClass>
+ <String fx:value="profile"/>
+ </styleClass>
+ <properties>
+ <elementLockSel>
+ <Boolean fx:value="true"/>
+ </elementLockSel>
+ </properties>
+</AnchorPane>
diff --git a/demos/org.eclipse.fx.demo.fxgraph.osgi/src/org/eclipse/fx/demo/fxgraph/osgi/security/Authenticator.java b/demos/org.eclipse.fx.demo.fxgraph.osgi/src/org/eclipse/fx/demo/fxgraph/osgi/security/Authenticator.java
new file mode 100755
index 000000000..7bd605a04
--- /dev/null
+++ b/demos/org.eclipse.fx.demo.fxgraph.osgi/src/org/eclipse/fx/demo/fxgraph/osgi/security/Authenticator.java
@@ -0,0 +1,49 @@
+/*
+ * Copyright (c) 2008, 2011 Oracle and/or its affiliates.
+ * All rights reserved. Use is subject to license terms.
+ *
+ * This file is available and licensed under the following license:
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * - Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * - Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the distribution.
+ * - Neither the name of Oracle Corporation nor the names of its
+ * contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+package org.eclipse.fx.demo.fxgraph.osgi.security;
+
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Simple Authenticator service, that checks user logins
+ */
+public class Authenticator {
+ private static final Map<String, String> USERS = new HashMap<String, String>();
+ static {
+ USERS.put("demo", "demo");
+ }
+ public static boolean validate(String user, String password){
+ String validUserPassword = USERS.get(user);
+ return validUserPassword != null && validUserPassword.equals(password);
+ }
+}

Back to the top