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

Linux verion and About dialog

parent ce9a4cb6
Pipeline #2560 passed with stage
in 8 minutes and 24 seconds
<?xml version="1.0" encoding="UTF-8"?>
<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="src" path="src/"/>
<classpathentry kind="output" path="target/classes"/>
......
......@@ -7,6 +7,18 @@ import org.eclipse.swt.widgets.Shell;
public class AboutHandler {
@Execute
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 @@
<ws>win32</ws>
<arch>x86_64</arch>
</environment>
<!-- environment>
<environment>
<os>linux</os>
<ws>gtk</ws>
<arch>x86_64</arch>
</environment-->
</environment>
<environment>
<os>macosx</os>
<ws>cocoa</ws>
......
......@@ -22,7 +22,7 @@
<configuration>
<formats>
<win32>zip</win32>
<!-- linux>tar.gz</linux -->
<linux>tar.gz</linux>
<macosx>zip</macosx>
</formats>
</configuration>
......
<?xml version="1.0" encoding="UTF-8"?>
<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="output" path="target/classes"/>
</classpath>
Markdown is supported
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