I18n
authorChristian Femers <femers@in.tum.de>
Wed, 1 May 2019 17:50:51 +0000 (19:50 +0200)
committerChristian Femers <femers@in.tum.de>
Wed, 1 May 2019 17:50:51 +0000 (19:50 +0200)
14 files changed:
com.example.e4.rcp.nl1/.classpath [new file with mode: 0644]
com.example.e4.rcp.nl1/.gitignore [new file with mode: 0644]
com.example.e4.rcp.nl1/.project [new file with mode: 0644]
com.example.e4.rcp.nl1/META-INF/MANIFEST.MF [new file with mode: 0644]
com.example.e4.rcp.nl1/OSGI-INF/l10n/bundle_de.properties [new file with mode: 0644]
com.example.e4.rcp.nl1/OSGI-INF/l10n/bundle_en.properties [new file with mode: 0644]
com.example.e4.rcp.nl1/build.properties [new file with mode: 0644]
com.example.e4.rcp/Application.e4xmi
com.example.e4.rcp/META-INF/MANIFEST.MF
com.example.e4.rcp/OSGI-INF/l10n/bundle.properties [new file with mode: 0644]
com.example.e4.rcp/build.properties
com.example.e4.rcp/build_ant.xml [new file with mode: 0644]
com.example.e4.rcp/com.example.e4.rcp.product
com.example.e4.rcp/plugin.xml

diff --git a/com.example.e4.rcp.nl1/.classpath b/com.example.e4.rcp.nl1/.classpath
new file mode 100644 (file)
index 0000000..1fa3e68
--- /dev/null
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+       <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+       <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+       <classpathentry kind="src" path="src"/>
+       <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/com.example.e4.rcp.nl1/.gitignore b/com.example.e4.rcp.nl1/.gitignore
new file mode 100644 (file)
index 0000000..ae3c172
--- /dev/null
@@ -0,0 +1 @@
+/bin/
diff --git a/com.example.e4.rcp.nl1/.project b/com.example.e4.rcp.nl1/.project
new file mode 100644 (file)
index 0000000..2d1a16f
--- /dev/null
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+       <name>com.example.e4.rcp.nl1</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.pde.PluginNature</nature>
+               <nature>org.eclipse.jdt.core.javanature</nature>
+       </natures>
+</projectDescription>
diff --git a/com.example.e4.rcp.nl1/META-INF/MANIFEST.MF b/com.example.e4.rcp.nl1/META-INF/MANIFEST.MF
new file mode 100644 (file)
index 0000000..59bfde3
--- /dev/null
@@ -0,0 +1,7 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: com.example.e4.rcp.nl1 Fragment
+Bundle-SymbolicName: com.example.e4.rcp.nl1
+Bundle-Version: 1.0.0
+Fragment-Host: com.example.e4.rcp;bundle-version="[1.0.0,1.1.0)"
+Automatic-Module-Name: com.example.e4.rcp.nl1
diff --git a/com.example.e4.rcp.nl1/OSGI-INF/l10n/bundle_de.properties b/com.example.e4.rcp.nl1/OSGI-INF/l10n/bundle_de.properties
new file mode 100644 (file)
index 0000000..76d709f
--- /dev/null
@@ -0,0 +1,18 @@
+#Properties file for com.example.e4.rcp
+Bundle-Vendor = ICH
+Bundle-Name = Test RPC Projekt
+product.name = Test RPC Projekt
+trimmedwindow.label.1 = Eclipse 4 RCP Anwendung
+trimmedwindow.tooltip.1 = Hauptfenster
+part.label.1 = Beispiel Part
+part.label.2 = NAnderer Part
+menu.label.1 = Datei
+handledmenuitem.label.1 = Öffnen
+handledmenuitem.label.2 = Speichern
+handledmenuitem.label.3 = Beenden
+menu.label.2 = Hilfe
+handledmenuitem.label.4 = Über
+command.commandname.1 = quitCommand
+command.commandname.2 = openCommand
+command.commandname.3 = saveCommand
+command.commandname.4 = aboutCommand
diff --git a/com.example.e4.rcp.nl1/OSGI-INF/l10n/bundle_en.properties b/com.example.e4.rcp.nl1/OSGI-INF/l10n/bundle_en.properties
new file mode 100644 (file)
index 0000000..f19d5ba
--- /dev/null
@@ -0,0 +1,18 @@
+#Properties file for com.example.e4.rcp
+Bundle-Vendor = ME
+Bundle-Name = Test RPC Project
+product.name = Test RPC Project
+trimmedwindow.label.1 = Eclipse 4 RCP Application
+trimmedwindow.tooltip.1 = Main Window
+part.label.1 = Sample Part
+part.label.2 = Nother Part
+menu.label.1 = File
+handledmenuitem.label.1 = Open
+handledmenuitem.label.2 = Save
+handledmenuitem.label.3 = Quit
+menu.label.2 = Help
+handledmenuitem.label.4 = About
+command.commandname.1 = quitCommand
+command.commandname.2 = openCommand
+command.commandname.3 = saveCommand
+command.commandname.4 = aboutCommand
diff --git a/com.example.e4.rcp.nl1/build.properties b/com.example.e4.rcp.nl1/build.properties
new file mode 100644 (file)
index 0000000..c0b5d73
--- /dev/null
@@ -0,0 +1,6 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+               .,\
+               nl/,\
+               OSGI-INF/
index fbcb8a1..c8bb639 100644 (file)
@@ -1,22 +1,22 @@
 <?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: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="_6wlLcMgZEeSyMNYR5xypkQ" elementId="com.example.e4.rcp.application" bindingContexts="_6wlLecgZEeSyMNYR5xypkQ">
-  <children xsi:type="basic:TrimmedWindow" xmi:id="_6wlLccgZEeSyMNYR5xypkQ" elementId="com.example.e4.rcp.window.main" selectedElement="_6wlLksgZEeSyMNYR5xypkQ" label="Eclipse 4 RCP Application" iconURI="platform:/plugin/com.example.e4.rcp/icons/TestERPC16.png" tooltip="Hauptfenster" width="500" height="400">
+  <children xsi:type="basic:TrimmedWindow" xmi:id="_6wlLccgZEeSyMNYR5xypkQ" elementId="com.example.e4.rcp.window.main" selectedElement="_6wlLksgZEeSyMNYR5xypkQ" label="%trimmedwindow.label.1" iconURI="platform:/plugin/com.example.e4.rcp/icons/TestERPC16.png" tooltip="%trimmedwindow.tooltip.1" width="500" height="400">
     <children xsi:type="basic:PartSashContainer" xmi:id="_6wlLksgZEeSyMNYR5xypkQ" elementId="com.example.e4.rcp.partsashcontainer.sample">
       <children xsi:type="basic:PartStack" xmi:id="_6wlLk8gZEeSyMNYR5xypkQ" elementId="com.example.e4.rcp.partstack.sample">
-        <children xsi:type="basic:Part" xmi:id="_6wlLlMgZEeSyMNYR5xypkQ" elementId="com.example.e4.rcp.part.sample" contributionURI="bundleclass://com.example.e4.rcp/com.example.e4.rcp.parts.SamplePart" label="Sample Part" iconURI="platform:/plugin/com.example.e4.rcp/icons/home.png"/>
+        <children xsi:type="basic:Part" xmi:id="_6wlLlMgZEeSyMNYR5xypkQ" elementId="com.example.e4.rcp.part.sample" contributionURI="bundleclass://com.example.e4.rcp/com.example.e4.rcp.parts.SamplePart" label="%part.label.1" iconURI="platform:/plugin/com.example.e4.rcp/icons/home.png"/>
       </children>
       <children xsi:type="basic:PartStack" xmi:id="_IcuwAGpsEemMm_uKcWEHow" elementId="com.example.e4.rcp.partstack.0">
-        <children xsi:type="basic:Part" xmi:id="_HdzpoGpsEemMm_uKcWEHow" elementId="com.example.e4.rcp.part.notherpart" contributionURI="bundleclass://com.example.e4.rcp/com.example.e4.rcp.parts.NPart" label="Nother Part" iconURI="platform:/plugin/com.example.e4.rcp/icons/debug_view.png" closeable="true"/>
+        <children xsi:type="basic:Part" xmi:id="_HdzpoGpsEemMm_uKcWEHow" elementId="com.example.e4.rcp.part.notherpart" contributionURI="bundleclass://com.example.e4.rcp/com.example.e4.rcp.parts.NPart" label="%part.label.2" iconURI="platform:/plugin/com.example.e4.rcp/icons/debug_view.png" closeable="true"/>
       </children>
     </children>
     <mainMenu xmi:id="_6wlLicgZEeSyMNYR5xypkQ" elementId="org.eclipse.ui.main.menu">
-      <children xsi:type="menu:Menu" xmi:id="_6wlLisgZEeSyMNYR5xypkQ" elementId="file" label="File">
-        <children xsi:type="menu:HandledMenuItem" xmi:id="_6wlLi8gZEeSyMNYR5xypkQ" elementId="com.example.e4.rcp.handleditem.file.open" label="Open" iconURI="platform:/plugin/com.example.e4.rcp/icons/open_in_app.png" command="_6wlLgMgZEeSyMNYR5xypkQ"/>
-        <children xsi:type="menu:HandledMenuItem" xmi:id="_6wlLjMgZEeSyMNYR5xypkQ" elementId="com.example.e4.rcp.handleditem.save" label="Save" iconURI="platform:/plugin/com.example.e4.rcp/icons/save_edit.png" command="_6wlLg8gZEeSyMNYR5xypkQ"/>
-        <children xsi:type="menu:HandledMenuItem" xmi:id="_6wlLjcgZEeSyMNYR5xypkQ" elementId="com.example.e4.rcp.handleditem.quit" label="Quit" command="_6wlLfMgZEeSyMNYR5xypkQ"/>
+      <children xsi:type="menu:Menu" xmi:id="_6wlLisgZEeSyMNYR5xypkQ" elementId="file" label="%menu.label.1">
+        <children xsi:type="menu:HandledMenuItem" xmi:id="_6wlLi8gZEeSyMNYR5xypkQ" elementId="com.example.e4.rcp.handleditem.file.open" label="%handledmenuitem.label.1" iconURI="platform:/plugin/com.example.e4.rcp/icons/open_in_app.png" command="_6wlLgMgZEeSyMNYR5xypkQ"/>
+        <children xsi:type="menu:HandledMenuItem" xmi:id="_6wlLjMgZEeSyMNYR5xypkQ" elementId="com.example.e4.rcp.handleditem.save" label="%handledmenuitem.label.2" iconURI="platform:/plugin/com.example.e4.rcp/icons/save_edit.png" command="_6wlLg8gZEeSyMNYR5xypkQ"/>
+        <children xsi:type="menu:HandledMenuItem" xmi:id="_6wlLjcgZEeSyMNYR5xypkQ" elementId="com.example.e4.rcp.handleditem.quit" label="%handledmenuitem.label.3" command="_6wlLfMgZEeSyMNYR5xypkQ"/>
       </children>
-      <children xsi:type="menu:Menu" xmi:id="_6wlLjsgZEeSyMNYR5xypkQ" elementId="help" label="Help">
-        <children xsi:type="menu:HandledMenuItem" xmi:id="_6wlLj8gZEeSyMNYR5xypkQ" elementId="com.example.e4.rcp.handleditem.about" label="About" command="_6wlLhsgZEeSyMNYR5xypkQ"/>
+      <children xsi:type="menu:Menu" xmi:id="_6wlLjsgZEeSyMNYR5xypkQ" elementId="help" label="%menu.label.2">
+        <children xsi:type="menu:HandledMenuItem" xmi:id="_6wlLj8gZEeSyMNYR5xypkQ" elementId="com.example.e4.rcp.handleditem.about" label="%handledmenuitem.label.4" command="_6wlLhsgZEeSyMNYR5xypkQ"/>
       </children>
     </mainMenu>
     <trimBars xmi:id="_6wlLlcgZEeSyMNYR5xypkQ" elementId="com.example.e4.rcp.trimbar.top">
     <children xmi:id="_6wlLesgZEeSyMNYR5xypkQ" elementId="org.eclipse.ui.contexts.window" name="In Windows"/>
     <children xmi:id="_6wlLe8gZEeSyMNYR5xypkQ" elementId="org.eclipse.ui.contexts.dialog" name="In Dialogs"/>
   </rootContext>
-  <commands xmi:id="_6wlLfMgZEeSyMNYR5xypkQ" elementId="org.eclipse.ui.file.exit" commandName="quitCommand"/>
-  <commands xmi:id="_6wlLgMgZEeSyMNYR5xypkQ" elementId="org.eclipse.ui.file.open" commandName="openCommand"/>
-  <commands xmi:id="_6wlLg8gZEeSyMNYR5xypkQ" elementId="org.eclipse.ui.file.save" commandName="saveCommand"/>
-  <commands xmi:id="_6wlLhsgZEeSyMNYR5xypkQ" elementId="org.eclipse.ui.help.aboutAction" commandName="aboutCommand"/>
+  <commands xmi:id="_6wlLfMgZEeSyMNYR5xypkQ" elementId="org.eclipse.ui.file.exit" commandName="%command.commandname.1"/>
+  <commands xmi:id="_6wlLgMgZEeSyMNYR5xypkQ" elementId="org.eclipse.ui.file.open" commandName="%command.commandname.2"/>
+  <commands xmi:id="_6wlLg8gZEeSyMNYR5xypkQ" elementId="org.eclipse.ui.file.save" commandName="%command.commandname.3"/>
+  <commands xmi:id="_6wlLhsgZEeSyMNYR5xypkQ" elementId="org.eclipse.ui.help.aboutAction" commandName="%command.commandname.4"/>
   <addons xmi:id="_6wlLcsgZEeSyMNYR5xypkQ" elementId="org.eclipse.e4.core.commands.service" contributionURI="bundleclass://org.eclipse.e4.core.commands/org.eclipse.e4.core.commands.CommandServiceAddon"/>
   <addons xmi:id="_6wlLc8gZEeSyMNYR5xypkQ" elementId="org.eclipse.e4.ui.contexts.service" contributionURI="bundleclass://org.eclipse.e4.ui.services/org.eclipse.e4.ui.services.ContextServiceAddon"/>
   <addons xmi:id="_6wlLdMgZEeSyMNYR5xypkQ" elementId="org.eclipse.e4.ui.bindings.service" contributionURI="bundleclass://org.eclipse.e4.ui.bindings/org.eclipse.e4.ui.bindings.BindingServiceAddon"/>
index ae7ce58..f2f1214 100644 (file)
@@ -1,9 +1,9 @@
 Manifest-Version: 1.0
 Bundle-ManifestVersion: 2
-Bundle-Name: Rcp
+Bundle-Name: %Bundle-Name
 Bundle-SymbolicName: com.example.e4.rcp;singleton:=true
 Bundle-Version: 1.0.0.qualifier
-Bundle-Vendor: EXAMPLE
+Bundle-Vendor: %Bundle-Vendor
 Require-Bundle: javax.inject;bundle-version="0.0.0",
  org.eclipse.core.runtime;bundle-version="0.0.0",
  org.eclipse.swt;bundle-version="0.0.0",
@@ -15,6 +15,9 @@ Require-Bundle: javax.inject;bundle-version="0.0.0",
  org.eclipse.e4.ui.di;bundle-version="0.0.0",
  org.eclipse.e4.core.contexts;bundle-version="0.0.0"
 Bundle-RequiredExecutionEnvironment: JavaSE-11
+Bundle-Localization: OSGI-INF/l10n/bundle
 Import-Package: javax.annotation;version="1.0.0";resolution:=optional,
  javax.inject;version="1.0.0"
 Automatic-Module-Name: com.example.e4.rcp
+Export-Package: com.example.e4.rcp.handlers,
+ com.example.e4.rcp.parts
diff --git a/com.example.e4.rcp/OSGI-INF/l10n/bundle.properties b/com.example.e4.rcp/OSGI-INF/l10n/bundle.properties
new file mode 100644 (file)
index 0000000..c63e7c3
--- /dev/null
@@ -0,0 +1,18 @@
+#Properties file for com.example.e4.rcp
+Bundle-Vendor = EXAMPLE
+Bundle-Name = Rcp
+product.name = com.example.e4.rcp
+trimmedwindow.label.1 = Eclipse 4 RCP Application
+trimmedwindow.tooltip.1 = Hauptfenster
+part.label.1 = Sample Part
+part.label.2 = Nother Part
+menu.label.1 = File
+handledmenuitem.label.1 = Open
+handledmenuitem.label.2 = Save
+handledmenuitem.label.3 = Quit
+menu.label.2 = Help
+handledmenuitem.label.4 = About
+command.commandname.1 = quitCommand
+command.commandname.2 = openCommand
+command.commandname.3 = saveCommand
+command.commandname.4 = aboutCommand
index 04ab1e9..79d31e0 100644 (file)
@@ -4,5 +4,15 @@ bin.includes = plugin.xml,\
                META-INF/,\
                .,\
                icons/,\
-               css/default.css,\
-               Application.e4xmi
+               Application.e4xmi,\
+               OSGI-INF/,\
+               css/
+src.includes = src/,\
+               icons/,\
+               css/,\
+               com.example.e4.rcp.product,\
+               plugin.xml,\
+               Application.e4xmi,\
+               META-INF/,\
+               OSGI-INF/,\
+               build.properties
diff --git a/com.example.e4.rcp/build_ant.xml b/com.example.e4.rcp/build_ant.xml
new file mode 100644 (file)
index 0000000..12c6706
--- /dev/null
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project default="plugin_export" name="build">
+       <target name="plugin_export">
+               <pde.exportPlugins destination="K:\Java-Programme und Einstellungen\testERPC" exportSource="false" exportType="directory" plugins="com.example.e4.rcp" qualifier="201905011926" useJARFormat="true"/>
+       </target>
+</project>
index 4cd26aa..0baacac 100644 (file)
@@ -14,7 +14,7 @@
    </configIni>
 
    <launcherArgs>
-      <programArgs>-clearPersistedState
+      <programArgs>-clearPersistedState -nl de
       </programArgs>
       <vmArgsMac>-XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts
       </vmArgsMac>
 
    <plugins>
       <plugin id="com.example.e4.rcp"/>
+      <plugin id="com.example.e4.rcp.nl1" fragment="true"/>
       <plugin id="com.ibm.icu"/>
       <plugin id="javax.annotation"/>
       <plugin id="javax.inject"/>
+      <plugin id="javax.xml"/>
       <plugin id="org.apache.batik.constants"/>
       <plugin id="org.apache.batik.css"/>
       <plugin id="org.apache.batik.i18n"/>
@@ -91,6 +93,7 @@
       <plugin id="org.eclipse.equinox.event"/>
       <plugin id="org.eclipse.equinox.preferences"/>
       <plugin id="org.eclipse.equinox.registry"/>
+      <plugin id="org.eclipse.fx.osgi" fragment="true"/>
       <plugin id="org.eclipse.jface"/>
       <plugin id="org.eclipse.jface.databinding"/>
       <plugin id="org.eclipse.osgi"/>
index 0c2671b..06bfca9 100644 (file)
@@ -8,14 +8,22 @@
       <product
             application="org.eclipse.e4.ui.workbench.swt.E4Application"
             name="com.example.e4.rcp">
-         <property
-               name="applicationCSS"
-               value="platform:/plugin/com.example.e4.rcp/css/default.css">
-         </property>
          <property
                name="appName"
                value="com.example.e4.rcp">
          </property>
+         <property
+               name="aboutImage"
+               value="icons/TestERPC.png">
+         </property>
+         <property
+               name="aboutText"
+               value="kjhgjkhgjk">
+         </property>
+         <property
+               name="windowImages"
+               value="icons/TestERPC16.png,icons/TestERPC32.png,icons/TestERPC64.png,icons/TestERPC128.png">
+         </property>
       </product>
    </extension>