Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
4 years ago
by
Kai-Holger Brassel
Browse files
Options
Download
Email Patches
Plain Diff
About dialog with Java version info
parent
0953347d
master
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
de.hftstuttgart.buildingphysics.application/src/de/hftstuttgart/buildingphysics/application/handlers/AboutHandler.java
+10
-9
...rt/buildingphysics/application/handlers/AboutHandler.java
de.hftstuttgart.buildingphysics.application/src/de/hftstuttgart/buildingphysics/application/parts/CatalogPart.java
+0
-1
...ttgart/buildingphysics/application/parts/CatalogPart.java
with
10 additions
and
10 deletions
+10
-10
de.hftstuttgart.buildingphysics.application/src/de/hftstuttgart/buildingphysics/application/handlers/AboutHandler.java
+
10
-
9
View file @
57e03ac1
package
de.hftstuttgart.buildingphysics.application.handlers
;
package
de.hftstuttgart.buildingphysics.application.handlers
;
import
org.eclipse.core.runtime.Platform
;
import
org.eclipse.e4.core.di.annotations.Execute
;
import
org.eclipse.e4.core.di.annotations.Execute
;
import
org.eclipse.jface.dialogs.MessageDialog
;
import
org.eclipse.jface.dialogs.MessageDialog
;
import
org.eclipse.swt.widgets.Shell
;
import
org.eclipse.swt.widgets.Shell
;
...
@@ -9,13 +8,15 @@ public class AboutHandler {
...
@@ -9,13 +8,15 @@ public class AboutHandler {
@Execute
@Execute
public
void
execute
(
Shell
shell
)
{
public
void
execute
(
Shell
shell
)
{
String
txt
=
"""
String
txt
=
"""
HfT Stuttgart - Building Physics Catalog
HfT Stuttgart - Building Physics Catalog
----------------------------------------
----------------------------------------
Workspace allowsDefault: %s
Java version: %s
Workspace getDefault: %s"""
;
Java vendor: %s
MessageDialog
.
openInformation
(
shell
,
"About"
,
String
.
format
(
txt
,
java.vm.version: %s
Platform
.
getInstanceLocation
().
allowsDefault
(),
java.version.date: %s"""
;
Platform
.
getInstanceLocation
().
getDefault
()));
MessageDialog
.
openInformation
(
shell
,
"About"
,
txt
.
formatted
(
System
.
getProperty
(
"java.version"
),
System
.
getProperty
(
"java.vendor"
),
System
.
getProperty
(
"java.vm.version"
),
System
.
getProperty
(
"java.version.date"
)));
}
}
}
}
This diff is collapsed.
Click to expand it.
de.hftstuttgart.buildingphysics.application/src/de/hftstuttgart/buildingphysics/application/parts/CatalogPart.java
+
0
-
1
View file @
57e03ac1
...
@@ -13,7 +13,6 @@ import org.eclipse.emf.ecp.ui.view.swt.ECPSWTViewRenderer;
...
@@ -13,7 +13,6 @@ import org.eclipse.emf.ecp.ui.view.swt.ECPSWTViewRenderer;
import
org.eclipse.jface.layout.GridLayoutFactory
;
import
org.eclipse.jface.layout.GridLayoutFactory
;
import
org.eclipse.swt.SWT
;
import
org.eclipse.swt.SWT
;
import
org.eclipse.swt.widgets.Composite
;
import
org.eclipse.swt.widgets.Composite
;
import
org.eclipse.swt.widgets.Dialog
;
/**
/**
* Part for displaying a Forms Editor for a Building Physics Catalog.
* Part for displaying a Forms Editor for a Building Physics Catalog.
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets