Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
NeqModPlus
Building Physics
Building Physics Catalog Editor
Commits
57e03ac1
Commit
57e03ac1
authored
Mar 16, 2021
by
Kai-Holger Brassel
Browse files
About dialog with Java version info
parent
0953347d
Changes
2
Hide whitespace changes
Inline
Side-by-side
de.hftstuttgart.buildingphysics.application/src/de/hftstuttgart/buildingphysics/application/handlers/AboutHandler.java
View file @
57e03ac1
package
de.hftstuttgart.buildingphysics.application.handlers
;
import
org.eclipse.core.runtime.Platform
;
import
org.eclipse.e4.core.di.annotations.Execute
;
import
org.eclipse.jface.dialogs.MessageDialog
;
import
org.eclipse.swt.widgets.Shell
;
...
...
@@ -9,13 +8,15 @@ public class AboutHandler {
@Execute
public
void
execute
(
Shell
shell
)
{
String
txt
=
"""
HfT Stuttgart - Building Physics Catalog
----------------------------------------
Workspace allowsDefault: %s
Workspace getDefault: %s"""
;
MessageDialog
.
openInformation
(
shell
,
"About"
,
String
.
format
(
txt
,
Platform
.
getInstanceLocation
().
allowsDefault
(),
Platform
.
getInstanceLocation
().
getDefault
()));
HfT Stuttgart - Building Physics Catalog
----------------------------------------
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"
)));
}
}
de.hftstuttgart.buildingphysics.application/src/de/hftstuttgart/buildingphysics/application/parts/CatalogPart.java
View file @
57e03ac1
...
...
@@ -13,7 +13,6 @@ import org.eclipse.emf.ecp.ui.view.swt.ECPSWTViewRenderer;
import
org.eclipse.jface.layout.GridLayoutFactory
;
import
org.eclipse.swt.SWT
;
import
org.eclipse.swt.widgets.Composite
;
import
org.eclipse.swt.widgets.Dialog
;
/**
* Part for displaying a Forms Editor for a Building Physics Catalog.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment