Commit 56780a88 authored by Kai-Holger Brassel's avatar Kai-Holger Brassel
Browse files

Project setup

parent 4d9f0230
......@@ -15,7 +15,9 @@ Require-Bundle: javax.inject;bundle-version="0.0.0",
org.eclipse.e4.core.contexts;bundle-version="0.0.0",
org.eclipse.emf.ecore,
org.eclipse.emf.edit,
org.eclipse.emf.ecp.ui.view.swt
org.eclipse.emf.ecp.ui.view.swt,
de.hftstuttgart.cityunits.model;bundle-version="1.0.0",
de.hftstuttgart.cityunits.ui.renderer;bundle-version="1.0.0"
Import-Package: de.hftstuttgart.buildingphysics,
javax.annotation;version="0.0.0"
javax.annotation;version="1.3.5"
Automatic-Module-Name: de.hftstuttgart.buildingphysics.application
source.. = src/
output.. = bin/
bin.includes = plugin.xml,\
META-INF/,\
.,\
......
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;
......@@ -7,6 +8,14 @@ import org.eclipse.swt.widgets.Shell;
public class AboutHandler {
@Execute
public void execute(Shell shell) {
MessageDialog.openInformation(shell, "About", "HfT Stuttgart - Building Physics Catalog");
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()));
}
}
......@@ -13,6 +13,7 @@ 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.
......
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src-gen/"/>
<classpathentry kind="src" path="src/"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
......@@ -8,7 +8,6 @@ Bundle-ClassPath: .
Bundle-Activator: de.hftstuttgart.buildingphysics.provider.BuildingPhysicsEditPlugin$Implementation
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Export-Package: de.hftstuttgart.buildingphysics.provider
Require-Bundle: org.eclipse.core.runtime,
de.hftstuttgart.buildingphysics;visibility:=reexport,
......
......@@ -6,5 +6,4 @@ bin.includes = .,\
plugin.xml,\
plugin.properties
jars.compile.order = .
source.. = src-gen/
output.. = bin/
source.. = src/
......@@ -46,3 +46,4 @@ _UI_Material_heatCapacity_feature = Heat Capacity
_UI_Material_conductivity_feature = Conductivity
_UI_Unknown_feature = Unspecified
_UI_Catalog_xxx_feature = Xxx
......@@ -216,6 +216,7 @@ public class BuildingPhysicsItemProviderAdapterFactory extends BuildingPhysicsAd
* <!-- end-user-doc -->
* @generated
*/
@Override
public ComposeableAdapterFactory getRootAdapterFactory() {
return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();
}
......@@ -226,6 +227,7 @@ public class BuildingPhysicsItemProviderAdapterFactory extends BuildingPhysicsAd
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) {
this.parentAdapterFactory = parentAdapterFactory;
}
......@@ -274,6 +276,7 @@ public class BuildingPhysicsItemProviderAdapterFactory extends BuildingPhysicsAd
* <!-- end-user-doc -->
* @generated
*/
@Override
public void addListener(INotifyChangedListener notifyChangedListener) {
changeNotifier.addListener(notifyChangedListener);
}
......@@ -284,6 +287,7 @@ public class BuildingPhysicsItemProviderAdapterFactory extends BuildingPhysicsAd
* <!-- end-user-doc -->
* @generated
*/
@Override
public void removeListener(INotifyChangedListener notifyChangedListener) {
changeNotifier.removeListener(notifyChangedListener);
}
......@@ -294,6 +298,7 @@ public class BuildingPhysicsItemProviderAdapterFactory extends BuildingPhysicsAd
* <!-- end-user-doc -->
* @generated
*/
@Override
public void fireNotifyChanged(Notification notification) {
changeNotifier.fireNotifyChanged(notification);
......@@ -308,6 +313,7 @@ public class BuildingPhysicsItemProviderAdapterFactory extends BuildingPhysicsAd
* <!-- end-user-doc -->
* @generated
*/
@Override
public void dispose() {
if (buildingPhysicsCatalogItemProvider != null)
buildingPhysicsCatalogItemProvider.dispose();
......
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