Skip to main content
summaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorTom Schindl2014-10-29 11:51:13 -0400
committerTom Schindl2014-10-29 11:51:13 -0400
commit29b3d10e939c0eb2142b6aad89d0f0c68a4e4c57 (patch)
tree970db399bf0c87bdea03aedab1b68df3df7d87e0 /demos
parenta9c3370e352cef1f41b668f0be6c2fc11444649c (diff)
downloadorg.eclipse.efxclipse-29b3d10e939c0eb2142b6aad89d0f0c68a4e4c57.tar.gz
org.eclipse.efxclipse-29b3d10e939c0eb2142b6aad89d0f0c68a4e4c57.tar.xz
org.eclipse.efxclipse-29b3d10e939c0eb2142b6aad89d0f0c68a4e4c57.zip
adding sample for language flip
Diffstat (limited to 'demos')
-rw-r--r--demos/org.eclipse.fx.testcases.l10n.app.feature/.project17
-rw-r--r--demos/org.eclipse.fx.testcases.l10n.app.feature/build.properties1
-rw-r--r--demos/org.eclipse.fx.testcases.l10n.app.feature/feature.xml89
-rw-r--r--demos/org.eclipse.fx.testcases.l10n.app.feature/pom.xml16
-rw-r--r--demos/org.eclipse.fx.testcases.l10n.app.product/.project11
-rw-r--r--demos/org.eclipse.fx.testcases.l10n.app.product/org.eclipse.fx.testcases.l10n.app.product.product25
-rw-r--r--demos/org.eclipse.fx.testcases.l10n.app.product/org.eclipse.fx.testcases.l10n.app.product.product.launch37
-rw-r--r--demos/org.eclipse.fx.testcases.l10n.app.product/pom.xml40
-rw-r--r--demos/org.eclipse.fx.testcases.l10n.app.releng/.project11
-rw-r--r--demos/org.eclipse.fx.testcases.l10n.app.releng/build.xml51
-rw-r--r--demos/org.eclipse.fx.testcases.l10n.app.releng/org.eclipse.fx.ide.ant.jarbin0 -> 10140 bytes
-rw-r--r--demos/org.eclipse.fx.testcases.l10n.app.releng/pom.xml154
-rw-r--r--demos/org.eclipse.fx.testcases.l10n.app/.classpath7
-rw-r--r--demos/org.eclipse.fx.testcases.l10n.app/.project28
-rw-r--r--demos/org.eclipse.fx.testcases.l10n.app/Application.e4xmi27
-rw-r--r--demos/org.eclipse.fx.testcases.l10n.app/META-INF/MANIFEST.MF52
-rw-r--r--demos/org.eclipse.fx.testcases.l10n.app/OSGI-INF/l10n/bundle.properties6
-rw-r--r--demos/org.eclipse.fx.testcases.l10n.app/OSGI-INF/l10n/bundle_de.properties4
-rw-r--r--demos/org.eclipse.fx.testcases.l10n.app/bin/.gitignore1
-rw-r--r--demos/org.eclipse.fx.testcases.l10n.app/build.properties7
-rw-r--r--demos/org.eclipse.fx.testcases.l10n.app/css/default.css1
-rw-r--r--demos/org.eclipse.fx.testcases.l10n.app/plugin.xml19
-rw-r--r--demos/org.eclipse.fx.testcases.l10n.app/pom.xml33
-rw-r--r--demos/org.eclipse.fx.testcases.l10n.app/src/org/eclipse/fx/testcases/l10n/app/SamplePart.java13
-rw-r--r--demos/org.eclipse.fx.testcases.l10n.app/src/org/eclipse/fx/testcases/l10n/app/SwitchLang.java20
25 files changed, 670 insertions, 0 deletions
diff --git a/demos/org.eclipse.fx.testcases.l10n.app.feature/.project b/demos/org.eclipse.fx.testcases.l10n.app.feature/.project
new file mode 100644
index 000000000..d0c5eabb9
--- /dev/null
+++ b/demos/org.eclipse.fx.testcases.l10n.app.feature/.project
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.fx.testcases.l10n.app.feature</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.pde.FeatureBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.FeatureNature</nature>
+ </natures>
+</projectDescription>
diff --git a/demos/org.eclipse.fx.testcases.l10n.app.feature/build.properties b/demos/org.eclipse.fx.testcases.l10n.app.feature/build.properties
new file mode 100644
index 000000000..b045d3976
--- /dev/null
+++ b/demos/org.eclipse.fx.testcases.l10n.app.feature/build.properties
@@ -0,0 +1 @@
+bin.includes = feature.xml \ No newline at end of file
diff --git a/demos/org.eclipse.fx.testcases.l10n.app.feature/feature.xml b/demos/org.eclipse.fx.testcases.l10n.app.feature/feature.xml
new file mode 100644
index 000000000..e87262d8f
--- /dev/null
+++ b/demos/org.eclipse.fx.testcases.l10n.app.feature/feature.xml
@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feature
+ id="org.eclipse.fx.testcases.l10n.app.feature"
+ label="L10n Application Feature"
+ version="1.0.0.qualifier"
+ provider-name="${BundleProject_bundleVendor}"
+ >
+ <description url="http://www.efxclipse.org">
+ TODO FILL WITH CONTENT
+ </description>
+
+ <copyright url="http://www.efxclipse.org">
+ TODO FILL WITH CONTENT
+ </copyright>
+
+ <license url="http://www.efxclipse.org">
+ TODO FILL WITH CONTENT
+ </license>
+
+ <plugin id="org.eclipse.fx.testcases.l10n.app" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.fx.ui.keybindings" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.fx.ui.keybindings.e4" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.fx.ui.keybindings.generic" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.fx.core.databinding" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.fx.ui.databinding" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.fx.core" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.fx.core.fxml" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.fx.ui.di" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.fx.ui.dialogs" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.fx.javafx" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.fx.osgi" install-size="0" version="0.0.0" unpack="false" fragment="true"/>
+ <plugin id="org.eclipse.fx.osgi.util" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.fx.ui.panes" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.fx.ui.controls" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.fx.ui.services" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.fx.ui.theme" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.fx.ui.workbench.base" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.fx.ui.workbench.fx" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.fx.ui.workbench.renderers.base" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.fx.ui.workbench.renderers.fx" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.fx.ui.workbench.services" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="com.ibm.icu" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="javax.annotation" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="javax.inject" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="javax.xml" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.apache.commons.logging" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.apache.commons.lang" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.core.commands" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.core.contenttype" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.core.databinding" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.core.databinding.observable" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.core.databinding.property" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.core.expressions" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.core.filesystem" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.core.jobs" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.core.resources" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.core.runtime" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.e4.core.commands" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.e4.core.contexts" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.e4.core.di" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.e4.core.di.extensions" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.e4.core.services" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.e4.ui.di" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.e4.ui.model.workbench" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.e4.ui.services" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.e4.ui.workbench" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.emf.common" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.emf.databinding" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.emf.ecore" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.emf.ecore.change" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.emf.ecore.xmi" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.equinox.app" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.equinox.common" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.equinox.concurrent" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.equinox.ds" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.equinox.event" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.equinox.launcher" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.equinox.preferences" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.equinox.registry" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.equinox.util" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.osgi" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.osgi.services" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.eclipse.equinox.console" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.apache.felix.gogo.command" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.apache.felix.gogo.runtime" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.apache.felix.gogo.shell" install-size="0" version="0.0.0" unpack="false" />
+
+
+</feature>
diff --git a/demos/org.eclipse.fx.testcases.l10n.app.feature/pom.xml b/demos/org.eclipse.fx.testcases.l10n.app.feature/pom.xml
new file mode 100644
index 000000000..01cafafe1
--- /dev/null
+++ b/demos/org.eclipse.fx.testcases.l10n.app.feature/pom.xml
@@ -0,0 +1,16 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <name>L10n - application feature</name>
+ <groupId>org.eclipse.fx.testcases.l10n</groupId>
+ <artifactId>org.eclipse.fx.testcases.l10n.app.feature</artifactId>
+ <packaging>eclipse-feature</packaging>
+
+ <parent>
+ <groupId>org.eclipse.fx.testcases.l10n</groupId>
+ <artifactId>org.eclipse.fx.testcases.l10n.app.releng</artifactId>
+ <relativePath>../org.eclipse.fx.testcases.l10n.app.releng/pom.xml</relativePath>
+ <version>1.0.0-SNAPSHOT</version>
+ </parent>
+
+</project> \ No newline at end of file
diff --git a/demos/org.eclipse.fx.testcases.l10n.app.product/.project b/demos/org.eclipse.fx.testcases.l10n.app.product/.project
new file mode 100644
index 000000000..e7917008a
--- /dev/null
+++ b/demos/org.eclipse.fx.testcases.l10n.app.product/.project
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.fx.testcases.l10n.app.product</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ </buildSpec>
+ <natures>
+ </natures>
+</projectDescription>
diff --git a/demos/org.eclipse.fx.testcases.l10n.app.product/org.eclipse.fx.testcases.l10n.app.product.product b/demos/org.eclipse.fx.testcases.l10n.app.product/org.eclipse.fx.testcases.l10n.app.product.product
new file mode 100644
index 000000000..2b42398de
--- /dev/null
+++ b/demos/org.eclipse.fx.testcases.l10n.app.product/org.eclipse.fx.testcases.l10n.app.product.product
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?pde version="3.5"?>
+
+<product name="L10n" uid="org.eclipse.fx.testcases.l10n.app.product" id="org.eclipse.fx.testcases.l10n.app.product" application="org.eclipse.fx.ui.workbench.fx.application" version="1.0.0" useFeatures="true" includeLaunchers="false">
+
+ <configIni use="default">
+ </configIni>
+ <launcherArgs>
+ <programArgs>-nosplash</programArgs>
+ <vmArgs>-Dosgi.framework.extensions=org.eclipse.fx.osgi</vmArgs>
+ </launcherArgs>
+
+ <windowImages/>
+
+ <features>
+ <feature id="org.eclipse.fx.testcases.l10n.app.feature" version="1.0.0.qualifier"/>
+ </features>
+ <configurations>
+ <plugin id="org.eclipse.core.runtime" autoStart="true" startLevel="0" />
+ <plugin id="org.eclipse.equinox.common" autoStart="true" startLevel="2" />
+ <plugin id="org.eclipse.equinox.ds" autoStart="true" startLevel="1" />
+ <plugin id="org.eclipse.osgi" autoStart="true" startLevel="-1" />
+ </configurations>
+</product>
+
diff --git a/demos/org.eclipse.fx.testcases.l10n.app.product/org.eclipse.fx.testcases.l10n.app.product.product.launch b/demos/org.eclipse.fx.testcases.l10n.app.product/org.eclipse.fx.testcases.l10n.app.product.product.launch
new file mode 100644
index 000000000..35ccaf8f1
--- /dev/null
+++ b/demos/org.eclipse.fx.testcases.l10n.app.product/org.eclipse.fx.testcases.l10n.app.product.product.launch
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.pde.ui.RuntimeWorkbench">
+<setAttribute key="additional_plugins"/>
+<booleanAttribute key="append.args" value="true"/>
+<booleanAttribute key="askclear" value="false"/>
+<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="true"/>
+<booleanAttribute key="clearwslog" value="false"/>
+<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/org.eclipse.fx.testcases.l10n.app.product.product"/>
+<booleanAttribute key="default" value="false"/>
+<stringAttribute key="featureDefaultLocation" value="workspace"/>
+<stringAttribute key="featurePluginResolution" value="workspace"/>
+<booleanAttribute key="includeOptional" value="true"/>
+<stringAttribute key="location" value="${workspace_loc}/../runtime-org.eclipse.fx.testcases.l10n.app.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.8"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-nl ${target.nl} -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.testcases.l10n.app.product"/>
+<stringAttribute key="productFile" value="/org.eclipse.fx.testcases.l10n.app.product/org.eclipse.fx.testcases.l10n.app.product.product"/>
+<setAttribute key="selected_features">
+<setEntry value="org.eclipse.fx.testcases.l10n.app.feature:default"/>
+</setAttribute>
+<booleanAttribute key="show_selected_only" value="false"/>
+<booleanAttribute key="tracing" value="false"/>
+<booleanAttribute key="useCustomFeatures" value="true"/>
+<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.testcases.l10n.app.product/pom.xml b/demos/org.eclipse.fx.testcases.l10n.app.product/pom.xml
new file mode 100644
index 000000000..b40bad314
--- /dev/null
+++ b/demos/org.eclipse.fx.testcases.l10n.app.product/pom.xml
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <name>L10n - application product</name>
+ <groupId>org.eclipse.fx.testcases.l10n</groupId>
+ <artifactId>org.eclipse.fx.testcases.l10n.app.product</artifactId>
+ <packaging>eclipse-repository</packaging>
+
+ <parent>
+ <groupId>org.eclipse.fx.testcases.l10n</groupId>
+ <artifactId>org.eclipse.fx.testcases.l10n.app.releng</artifactId>
+ <relativePath>../org.eclipse.fx.testcases.l10n.app.releng/pom.xml</relativePath>
+ <version>1.0.0-SNAPSHOT</version>
+ </parent>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-p2-director-plugin</artifactId>
+ <version>${tycho-version}</version>
+ <executions>
+ <execution>
+ <id>materialize-products</id>
+ <goals>
+ <goal>materialize-products</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>archive-products</id>
+ <goals>
+ <goal>archive-products</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project> \ No newline at end of file
diff --git a/demos/org.eclipse.fx.testcases.l10n.app.releng/.project b/demos/org.eclipse.fx.testcases.l10n.app.releng/.project
new file mode 100644
index 000000000..74619041c
--- /dev/null
+++ b/demos/org.eclipse.fx.testcases.l10n.app.releng/.project
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.fx.testcases.l10n.app.releng</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ </buildSpec>
+ <natures>
+ </natures>
+</projectDescription>
diff --git a/demos/org.eclipse.fx.testcases.l10n.app.releng/build.xml b/demos/org.eclipse.fx.testcases.l10n.app.releng/build.xml
new file mode 100644
index 000000000..c1b9523bb
--- /dev/null
+++ b/demos/org.eclipse.fx.testcases.l10n.app.releng/build.xml
@@ -0,0 +1,51 @@
+<project name="native-build" default="do-deploy" basedir="." xmlns:fx="javafx:com.sun.javafx.tools.ant">
+ <property name="eclipse-app-dir" value="../org.eclipse.fx.testcases.l10n.app.product/target/products/org.eclipse.fx.testcases.l10n.app.product/noenv/noenv/noenv" />
+
+ <target name="init-fx-tasks">
+ <taskdef name="fxosgilauncher" classpath="org.eclipse.fx.ide.ant.jar" classname="org.eclipse.fx.ide.ant.FXOsgiLaunchTask" />
+ <path id="fxant">
+ <filelist>
+ <file name="${java.home}\..\lib\ant-javafx.jar"/>
+ <file name="${java.home}\lib\ant-jfxrt.jar"/>
+ </filelist>
+ </path>
+ <taskdef resource="com/sun/javafx/tools/ant/antlib.xml"
+ uri="javafx:com.sun.javafx.tools.ant"
+ classpathref="fxant"/>
+ </target>
+
+ <target name="do-deploy" depends="init-fx-tasks">
+ <fileset id="equinox-launcher" dir="../org.eclipse.fx.testcases.l10n.app.product/target/products/org.eclipse.fx.testcases.l10n.app.product/noenv/noenv/noenv">
+ <filename name="plugins/org.eclipse.equinox.launcher_*.jar"/>
+ </fileset>
+ <fxosgilauncher classpathref="fxant" equinoxlauncherjarref="equinox-launcher"/>
+
+ <fx:resources id="appRes">
+ <fx:fileset dir="." includes="fx-osgi-launch.jar"/>
+ <fx:fileset dir="${eclipse-app-dir}" includes="**/*"/>
+ </fx:resources>
+
+ <fx:application id="fxApplication"
+ name="L10n"
+ mainClass="org.eclipse.equinox.launcher.Main"
+ toolkit="swing"
+
+ />
+
+ <fx:deploy
+ embedJNLP="false"
+ extension="false"
+ includeDT="false"
+ offlineAllowed="true"
+ outdir="${basedir}/deploy"
+ outfile="fix-ide"
+ nativeBundles="all"
+ updatemode="background"
+ >
+
+ <fx:info title="L10n" vendor=""/>
+ <fx:application refid="fxApplication"/>
+ <fx:resources refid="appRes"/>
+ </fx:deploy>
+ </target>
+</project> \ No newline at end of file
diff --git a/demos/org.eclipse.fx.testcases.l10n.app.releng/org.eclipse.fx.ide.ant.jar b/demos/org.eclipse.fx.testcases.l10n.app.releng/org.eclipse.fx.ide.ant.jar
new file mode 100644
index 000000000..b58f8d436
--- /dev/null
+++ b/demos/org.eclipse.fx.testcases.l10n.app.releng/org.eclipse.fx.ide.ant.jar
Binary files differ
diff --git a/demos/org.eclipse.fx.testcases.l10n.app.releng/pom.xml b/demos/org.eclipse.fx.testcases.l10n.app.releng/pom.xml
new file mode 100644
index 000000000..e951a0075
--- /dev/null
+++ b/demos/org.eclipse.fx.testcases.l10n.app.releng/pom.xml
@@ -0,0 +1,154 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
+ xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <name>L10n - releng</name>
+
+ <prerequisites>
+ <maven>3.0</maven>
+ </prerequisites>
+
+ <groupId>org.eclipse.fx.testcases.l10n</groupId>
+ <artifactId>org.eclipse.fx.testcases.l10n.app.releng</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <packaging>pom</packaging>
+ <properties>
+ <tycho-version>0.18.0</tycho-version>
+ <junit-version>4.8.1</junit-version>
+ <mockito-version>1.8.4</mockito-version>
+ <platform-version>4.2</platform-version>
+ <efx-version>0.9.0</efx-version>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ </properties>
+
+ <modules>
+ <module>../org.eclipse.fx.testcases.l10n.app</module>
+ <module>../org.eclipse.fx.testcases.l10n.app.feature</module>
+ <module>../org.eclipse.fx.testcases.l10n.app.product</module>
+ </modules>
+
+ <repositories>
+ <repository>
+ <id>efxclipse-repo</id>
+ <layout>p2</layout>
+ <url>http://download.eclipse.org/efxclipse/runtime-nightly/site</url>
+ </repository>
+ <repository>
+ <id>efxclipse-addons</id>
+ <layout>p2</layout>
+ <url>http://downloads.efxclipse.org/efxclipse.bestsolution.at/p2-repos/addons/nightly/site/</url>
+ </repository>
+
+ </repositories>
+
+ <pluginRepositories>
+ <pluginRepository>
+ <id>tycho</id>
+ <url>http://repository.sonatype.org/content/groups/sonatype-public-grid</url>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </pluginRepository>
+ </pluginRepositories>
+
+ <build>
+
+ <!-- build plugins -->
+ <plugins>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-maven-plugin</artifactId>
+ <version>${tycho-version}</version>
+ <extensions>true</extensions>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>target-platform-configuration</artifactId>
+ <version>${tycho-version}</version>
+ <configuration>
+ <resolver>p2</resolver>
+ <pomDependencies>consider</pomDependencies>
+ <environments>
+ <environment>
+ <os>noenv</os>
+ <ws>noenv</ws>
+ <arch>noenv</arch>
+ </environment>
+ </environments>
+ </configuration>
+ </plugin>
+ </plugins>
+
+
+ <!-- defines the default settings for the used plugins -->
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-compiler-plugin</artifactId>
+ <version>${tycho-version}</version>
+ <configuration>
+ <encoding>UTF-8</encoding>
+ <source>1.7</source>
+ <target>1.7</target>
+ <extraClasspathElements>
+ <extraClasspathElement>
+ <groupId>javafx</groupId>
+ <artifactId>javafx.mvn</artifactId>
+ <version>2.2.0-SNAPSHOT</version>
+ </extraClasspathElement>
+ </extraClasspathElements>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-source-plugin</artifactId>
+ <version>${tycho-version}</version>
+ <executions>
+ <execution>
+ <id>plugin-source</id>
+ <goals>
+ <goal>plugin-source</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-packaging-plugin</artifactId>
+ <version>${tycho-version}</version>
+ <configuration>
+ <archiveSite>true</archiveSite>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>${junit-version}</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.mockito</groupId>
+ <artifactId>mockito-core</artifactId>
+ <version>${mockito-version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+</project> \ No newline at end of file
diff --git a/demos/org.eclipse.fx.testcases.l10n.app/.classpath b/demos/org.eclipse.fx.testcases.l10n.app/.classpath
new file mode 100644
index 000000000..3bc247511
--- /dev/null
+++ b/demos/org.eclipse.fx.testcases.l10n.app/.classpath
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <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="output" path="bin"/>
+</classpath>
diff --git a/demos/org.eclipse.fx.testcases.l10n.app/.project b/demos/org.eclipse.fx.testcases.l10n.app/.project
new file mode 100644
index 000000000..1b4de8e2d
--- /dev/null
+++ b/demos/org.eclipse.fx.testcases.l10n.app/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.fx.testcases.l10n.app</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>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ </natures>
+</projectDescription>
diff --git a/demos/org.eclipse.fx.testcases.l10n.app/Application.e4xmi b/demos/org.eclipse.fx.testcases.l10n.app/Application.e4xmi
new file mode 100644
index 000000000..7d8eb6662
--- /dev/null
+++ b/demos/org.eclipse.fx.testcases.l10n.app/Application.e4xmi
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<application:Application xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:advanced="http://www.eclipse.org/ui/2010/UIModel/application/ui/advanced" xmlns:application="http://www.eclipse.org/ui/2010/UIModel/application" xmlns:basic="http://www.eclipse.org/ui/2010/UIModel/application/ui/basic" xmlns:menu="http://www.eclipse.org/ui/2010/UIModel/application/ui/menu" xmi:id="_UsTVQVr7EeS5TKc3qjGXdA" elementId="org.eclipse.e4.application" bindingContexts="_UsTVQFr7EeS5TKc3qjGXdA">
+ <children xsi:type="basic:TrimmedWindow" xmi:id="_a94oEFr7EeS5TKc3qjGXdA" elementId="org.eclipse.fx.testcases.l10n.app.trimmedwindow.0" label="%trimmedwindow.label.1" x="10" y="10" width="800" height="600">
+ <children xsi:type="basic:PartStack" xmi:id="_vIvX0Fr7EeS5TKc3qjGXdA" elementId="org.eclipse.fx.testcases.l10n.app.partstack.0">
+ <children xsi:type="basic:Part" xmi:id="_viJWUFr7EeS5TKc3qjGXdA" elementId="org.eclipse.fx.testcases.l10n.app.part.1" contributionURI="bundleclass://org.eclipse.fx.testcases.l10n.app/org.eclipse.fx.testcases.l10n.app.SamplePart" label="%part.label.1"/>
+ <children xsi:type="advanced:Placeholder" xmi:id="_ysqKgFr7EeS5TKc3qjGXdA" elementId="org.eclipse.fx.testcases.l10n.app.placeholder.0" ref="_hE97EFr7EeS5TKc3qjGXdA"/>
+ <children xsi:type="basic:Part" xmi:id="_1OaKAFsFEeS5TKc3qjGXdA" elementId="org.eclipse.fx.testcases.l10n.app.part.2" label="%part.label.1"/>
+ </children>
+ <sharedElements xsi:type="basic:Part" xmi:id="_hE97EFr7EeS5TKc3qjGXdA" elementId="org.eclipse.fx.testcases.l10n.app.part.0" contributionURI="bundleclass://org.eclipse.fx.testcases.l10n.app/org.eclipse.fx.testcases.l10n.app.SamplePart" label="%part.label.2"/>
+ <trimBars xmi:id="_MGpRkFr8EeS5TKc3qjGXdA" elementId="org.eclipse.fx.testcases.l10n.app.trimbar.0">
+ <children xsi:type="menu:ToolBar" xmi:id="_Mmuf0Fr8EeS5TKc3qjGXdA" elementId="org.eclipse.fx.testcases.l10n.app.toolbar.0">
+ <children xsi:type="menu:DirectToolItem" xmi:id="_POnvIFr8EeS5TKc3qjGXdA" elementId="org.eclipse.fx.testcases.l10n.app.directtoolitem.0" label="%directtoolitem.label.1" contributionURI="bundleclass://org.eclipse.fx.testcases.l10n.app/org.eclipse.fx.testcases.l10n.app.SwitchLang"/>
+ </children>
+ </trimBars>
+ </children>
+ <rootContext xmi:id="_UsTVQFr7EeS5TKc3qjGXdA" elementId="org.eclipse.ui.contexts.dialogAndWindow" name="In Dialog and Windows">
+ <children xmi:id="_UsTVQlr7EeS5TKc3qjGXdA" elementId="org.eclipse.ui.contexts.window" name="In Windows"/>
+ <children xmi:id="_UsTVQ1r7EeS5TKc3qjGXdA" elementId="org.eclipse.ui.contexts.dialog" name="In Dialogs"/>
+ </rootContext>
+ <addons xmi:id="_UsTVRFr7EeS5TKc3qjGXdA" elementId="org.eclipse.e4.core.commands.service" contributionURI="bundleclass://org.eclipse.e4.core.commands/org.eclipse.e4.core.commands.CommandServiceAddon"/>
+ <addons xmi:id="_UsTVRVr7EeS5TKc3qjGXdA" elementId="org.eclipse.e4.ui.contexts.service" contributionURI="bundleclass://org.eclipse.e4.ui.services/org.eclipse.e4.ui.services.ContextServiceAddon"/>
+ <addons xmi:id="_UsTVRlr7EeS5TKc3qjGXdA" elementId="org.eclipse.fx.ui.keybindings.e4.service" contributionURI="bundleclass://org.eclipse.fx.ui.keybindings.e4/org.eclipse.fx.ui.keybindings.e4.BindingServiceAddon"/>
+ <addons xmi:id="_UsTVR1r7EeS5TKc3qjGXdA" elementId="org.eclipse.e4.ui.workbench.commands.model" contributionURI="bundleclass://org.eclipse.e4.ui.workbench/org.eclipse.e4.ui.internal.workbench.addons.CommandProcessingAddon"/>
+ <addons xmi:id="_UsTVSFr7EeS5TKc3qjGXdA" elementId="org.eclipse.e4.ui.workbench.contexts.model" contributionURI="bundleclass://org.eclipse.e4.ui.workbench/org.eclipse.e4.ui.internal.workbench.addons.ContextProcessingAddon"/>
+ <addons xmi:id="_UsTVSVr7EeS5TKc3qjGXdA" elementId="org.eclipse.fx.ui.keybindings.e4.model" contributionURI="bundleclass://org.eclipse.fx.ui.keybindings.e4/org.eclipse.fx.ui.keybindings.e4.BindingProcessingAddon"/>
+ <addons xmi:id="_UsTVSlr7EeS5TKc3qjGXdA" elementId="org.eclipse.e4.ui.workbench.addons.HandlerProcessingAddon" contributionURI="bundleclass://org.eclipse.e4.ui.workbench/org.eclipse.e4.ui.internal.workbench.addons.HandlerProcessingAddon"/>
+</application:Application>
diff --git a/demos/org.eclipse.fx.testcases.l10n.app/META-INF/MANIFEST.MF b/demos/org.eclipse.fx.testcases.l10n.app/META-INF/MANIFEST.MF
new file mode 100644
index 000000000..f4c59385f
--- /dev/null
+++ b/demos/org.eclipse.fx.testcases.l10n.app/META-INF/MANIFEST.MF
@@ -0,0 +1,52 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: My Sample App
+Bundle-SymbolicName: org.eclipse.fx.testcases.l10n.app;singleton:=true
+Bundle-Version: 1.0.0.qualifier
+Require-Bundle: org.eclipse.fx.ui.workbench.fx,
+ org.eclipse.e4.ui.model.workbench,
+ org.eclipse.e4.core.services,
+ org.eclipse.e4.core.di,
+ org.eclipse.e4.ui.di,
+ org.eclipse.e4.core.di.extensions,
+ org.eclipse.fx.ui.theme,
+ org.eclipse.fx.ui.di,
+ org.eclipse.e4.core.contexts,
+ org.eclipse.fx.core.databinding,
+ org.eclipse.fx.ui.databinding,
+ org.eclipse.core.databinding,
+ org.eclipse.core.databinding.observable,
+ org.eclipse.core.databinding.property,
+ org.eclipse.e4.ui.workbench,
+ org.eclipse.e4.ui.services,
+ javax.inject
+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.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",
+ javax.annotation;version="1.0.0",
+ javax.inject;version="1.0.0"
+Bundle-RequiredExecutionEnvironment: JavaSE-1.7
diff --git a/demos/org.eclipse.fx.testcases.l10n.app/OSGI-INF/l10n/bundle.properties b/demos/org.eclipse.fx.testcases.l10n.app/OSGI-INF/l10n/bundle.properties
new file mode 100644
index 000000000..a5dea773c
--- /dev/null
+++ b/demos/org.eclipse.fx.testcases.l10n.app/OSGI-INF/l10n/bundle.properties
@@ -0,0 +1,6 @@
+
+trimmedwindow.label.1 = Test l10n app
+part.label.1 = Sample
+part.label.2 = Shared Sample
+
+directtoolitem.label.1 = Flip
diff --git a/demos/org.eclipse.fx.testcases.l10n.app/OSGI-INF/l10n/bundle_de.properties b/demos/org.eclipse.fx.testcases.l10n.app/OSGI-INF/l10n/bundle_de.properties
new file mode 100644
index 000000000..b1e573b90
--- /dev/null
+++ b/demos/org.eclipse.fx.testcases.l10n.app/OSGI-INF/l10n/bundle_de.properties
@@ -0,0 +1,4 @@
+trimmedwindow.label.1 = Test l10n Anwendung
+part.label.1 = Beispiel
+part.label.2 = Shared Beispiel
+directtoolitem.label.1 = Umschalten
diff --git a/demos/org.eclipse.fx.testcases.l10n.app/bin/.gitignore b/demos/org.eclipse.fx.testcases.l10n.app/bin/.gitignore
new file mode 100644
index 000000000..cf1db2eed
--- /dev/null
+++ b/demos/org.eclipse.fx.testcases.l10n.app/bin/.gitignore
@@ -0,0 +1 @@
+/org/
diff --git a/demos/org.eclipse.fx.testcases.l10n.app/build.properties b/demos/org.eclipse.fx.testcases.l10n.app/build.properties
new file mode 100644
index 000000000..db411bb01
--- /dev/null
+++ b/demos/org.eclipse.fx.testcases.l10n.app/build.properties
@@ -0,0 +1,7 @@
+bin.includes = .,\
+ META-INF/,\
+ plugin.xml,\
+css/,\
+ Application.e4xmi
+
+source.. = src/
diff --git a/demos/org.eclipse.fx.testcases.l10n.app/css/default.css b/demos/org.eclipse.fx.testcases.l10n.app/css/default.css
new file mode 100644
index 000000000..a38730ef4
--- /dev/null
+++ b/demos/org.eclipse.fx.testcases.l10n.app/css/default.css
@@ -0,0 +1 @@
+/* Main CSS-File */ \ No newline at end of file
diff --git a/demos/org.eclipse.fx.testcases.l10n.app/plugin.xml b/demos/org.eclipse.fx.testcases.l10n.app/plugin.xml
new file mode 100644
index 000000000..28974b70b
--- /dev/null
+++ b/demos/org.eclipse.fx.testcases.l10n.app/plugin.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.0"?>
+<plugin>
+<extension id="product" point="org.eclipse.core.runtime.products">
+ <product name="L10n" application="org.eclipse.fx.ui.workbench.fx.application" >
+ <property name="appName" value="L10n" />
+
+ <property name="applicationXMI" value="org.eclipse.fx.testcases.l10n.app/Application.e4xmi" />
+
+ <property name="cssTheme" value="theme.default" />
+
+ </product>
+
+</extension>
+<extension point="org.eclipse.fx.ui.theme">
+ <theme id="theme.default" basestylesheet="css/default.css" />
+
+</extension>
+</plugin>
diff --git a/demos/org.eclipse.fx.testcases.l10n.app/pom.xml b/demos/org.eclipse.fx.testcases.l10n.app/pom.xml
new file mode 100644
index 000000000..c2e51e43e
--- /dev/null
+++ b/demos/org.eclipse.fx.testcases.l10n.app/pom.xml
@@ -0,0 +1,33 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <name>L10n - application bundle</name>
+ <groupId>org.eclipse.fx.testcases.l10n</groupId>
+ <artifactId>org.eclipse.fx.testcases.l10n.app</artifactId>
+ <packaging>eclipse-plugin</packaging>
+
+ <parent>
+ <groupId>org.eclipse.fx.testcases.l10n</groupId>
+ <artifactId>org.eclipse.fx.testcases.l10n.app.releng</artifactId>
+ <relativePath>../org.eclipse.fx.testcases.l10n.app.releng/pom.xml</relativePath>
+ <version>1.0.0-SNAPSHOT</version>
+ </parent>
+
+ <build>
+ <resources>
+ <resource>
+ <directory>.</directory>
+ <includes>
+ <include>META-INF/</include>
+ </includes>
+ </resource>
+ </resources>
+ <plugins>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-source-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
diff --git a/demos/org.eclipse.fx.testcases.l10n.app/src/org/eclipse/fx/testcases/l10n/app/SamplePart.java b/demos/org.eclipse.fx.testcases.l10n.app/src/org/eclipse/fx/testcases/l10n/app/SamplePart.java
new file mode 100644
index 000000000..ff21d3223
--- /dev/null
+++ b/demos/org.eclipse.fx.testcases.l10n.app/src/org/eclipse/fx/testcases/l10n/app/SamplePart.java
@@ -0,0 +1,13 @@
+package org.eclipse.fx.testcases.l10n.app;
+
+import javafx.scene.control.Label;
+import javafx.scene.layout.BorderPane;
+
+import javax.annotation.PostConstruct;
+
+public class SamplePart {
+ @PostConstruct
+ void init(BorderPane parent) {
+ parent.setCenter(new Label("Hello World"));
+ }
+}
diff --git a/demos/org.eclipse.fx.testcases.l10n.app/src/org/eclipse/fx/testcases/l10n/app/SwitchLang.java b/demos/org.eclipse.fx.testcases.l10n.app/src/org/eclipse/fx/testcases/l10n/app/SwitchLang.java
new file mode 100644
index 000000000..458a00e0c
--- /dev/null
+++ b/demos/org.eclipse.fx.testcases.l10n.app/src/org/eclipse/fx/testcases/l10n/app/SwitchLang.java
@@ -0,0 +1,20 @@
+
+package org.eclipse.fx.testcases.l10n.app;
+
+import javax.inject.Named;
+
+import org.eclipse.e4.core.di.annotations.Execute;
+import org.eclipse.e4.core.services.nls.ILocaleChangeService;
+import org.eclipse.e4.core.services.translation.TranslationService;
+
+public class SwitchLang {
+ @Execute
+ public void execute(ILocaleChangeService s, @Named(TranslationService.LOCALE) String locale) {
+ if( "en".equals(locale) ) {
+ s.changeApplicationLocale("de");
+ } else {
+ s.changeApplicationLocale("en");
+ }
+ }
+
+} \ No newline at end of file

Back to the top