Commit 7b0a99a4 authored by Kai-Holger Brassel's avatar Kai-Holger Brassel
Browse files

Linux verion and About dialog

parent ce9a4cb6
No related merge requests found
Pipeline #2560 passed with stage
in 8 minutes and 24 seconds
Showing with 18 additions and 6 deletions
+18 -6
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<classpath> <classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-15"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src/"/> <classpathentry kind="src" path="src/"/>
<classpathentry kind="output" path="target/classes"/> <classpathentry kind="output" path="target/classes"/>
......
...@@ -7,6 +7,18 @@ import org.eclipse.swt.widgets.Shell; ...@@ -7,6 +7,18 @@ import org.eclipse.swt.widgets.Shell;
public class AboutHandler { public class AboutHandler {
@Execute @Execute
public void execute(Shell shell) { public void execute(Shell shell) {
MessageDialog.openInformation(shell, "About", "Energy Components Catalog"); String txt = """
Energy Components Catalog by Verena Weiler, Stuttgart, is licensed under CC BY-NC-ND 4.0
This work is supported by projects “SimStadt 2.0” [grant number 03ET1459A] and
”NEQModPlus” [grant number 03ET1618B] by the BMWi (German Federal Ministry of Economic Affairs and Energy).
Java version: %s
Java vendor: %s
java.vm.version: %s
java.version.date: %s""";
MessageDialog.openInformation(shell, "About",
txt.formatted(System.getProperty("java.version"), System.getProperty("java.vendor"),
System.getProperty("java.vm.version"), System.getProperty("java.version.date")));
} }
} }
...@@ -48,11 +48,11 @@ ...@@ -48,11 +48,11 @@
<ws>win32</ws> <ws>win32</ws>
<arch>x86_64</arch> <arch>x86_64</arch>
</environment> </environment>
<!-- environment> <environment>
<os>linux</os> <os>linux</os>
<ws>gtk</ws> <ws>gtk</ws>
<arch>x86_64</arch> <arch>x86_64</arch>
</environment--> </environment>
<environment> <environment>
<os>macosx</os> <os>macosx</os>
<ws>cocoa</ws> <ws>cocoa</ws>
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<configuration> <configuration>
<formats> <formats>
<win32>zip</win32> <win32>zip</win32>
<!-- linux>tar.gz</linux --> <linux>tar.gz</linux>
<macosx>zip</macosx> <macosx>zip</macosx>
</formats> </formats>
</configuration> </configuration>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<classpath> <classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-15"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="output" path="target/classes"/> <classpathentry kind="output" path="target/classes"/>
</classpath> </classpath>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment