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