AboutHandler.java 666 Bytes
Newer Older
1
2
package de.hftstuttgart.buildingphysics.application.handlers;

Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
3
import org.eclipse.core.runtime.Platform;
4
5
6
7
8
9
10
import org.eclipse.e4.core.di.annotations.Execute;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.swt.widgets.Shell;

public class AboutHandler {
	@Execute
	public void execute(Shell shell) {
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
11
12
13
14
15
16
17
18
19
		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()));
20
21
	}
}