Commits (5)
...@@ -14,75 +14,58 @@ _UI_PropertyDescriptor_description = The {0} of the {1} ...@@ -14,75 +14,58 @@ _UI_PropertyDescriptor_description = The {0} of the {1}
_UI_BuildingPhysicsCatalog_type = Catalog _UI_BuildingPhysicsCatalog_type = Catalog
_UI_WindowType_type = Window Type _UI_WindowType_type = Window Type
_UI_Catalog_type = Catalog _UI_WindowCategory_type = Windows
_UI_WindowCatalog_type = Windows _UI_MaterialCategory_type = Material Category
_UI_MaterialCatalog_type = Materials and Constructions
_UI_MaterialCategory_type =
_UI_Material_type = Material _UI_Material_type = Material
_UI_ConstructionCategory_type = Construction Category
_UI_Construction_type = Construction
_UI_Layer_type = Layer
_UI_Unknown_type = Object _UI_Unknown_type = Object
_UI_Unknown_datatype= Value _UI_Unknown_datatype= Value
_UI_BuildingPhysicsCatalog_author_feature = Author _UI_BuildingPhysicsCatalog_author_feature = Author
_UI_BuildingPhysicsCatalog_windowCatalog_feature = Window Catalog _UI_BuildingPhysicsCatalog_windows_feature = Windows
_UI_BuildingPhysicsCatalog_materialCatalog_feature = Material Catalog _UI_BuildingPhysicsCatalog_name_feature = Name
_UI_WindowType_id_feature = Id _UI_BuildingPhysicsCatalog_description_feature = Description
_UI_BuildingPhysicsCatalog_source_feature = Source
_UI_BuildingPhysicsCatalog_constructionCategories_feature = Construction Categories
_UI_BuildingPhysicsCatalog_materialCategories_feature = Material Categories
_UI_WindowType_windowTypeId_feature = Window Type Id
_UI_WindowType_name_feature = Name _UI_WindowType_name_feature = Name
_UI_WindowType_uValue_feature = UValue _UI_WindowType_uValue_feature = UValue
_UI_WindowType_gValue_feature = GValue _UI_WindowType_gValue_feature = GValue
_UI_WindowType_glazingNumber_feature = Glazing Number _UI_WindowType_glazingNumber_feature = Glazing Number
_UI_WindowType_frameRatio_feature = Frame Ratio _UI_WindowType_frameRatio_feature = Frame Ratio
_UI_Catalog_name_feature = Name
_UI_Catalog_description_feature = Description
_UI_Catalog_source_feature = Source
_UI_WindowCatalog_windowTypes_feature = Window Types
_UI_MaterialCatalog_materialCategories_feature = Material Categories
_UI_MaterialCategory_material_feature = Material
_UI_MaterialCategory_name_feature = Category
_UI_Material_id_feature = Id
_UI_Material_name_feature = Material
_UI_Material_density_feature = Density
_UI_Material_heatCapacity_feature = Heat Capacity
_UI_Material_conductivity_feature = Conductivity
_UI_Unknown_feature = Unspecified
_UI_LifeCycle_type = Life Cycle
_UI_WindowType_lifeCycle_feature = Life Cycle
_UI_LifeCycle_embodiedEnergy_feature = Embodied Energy
_UI_LifeCycle_embodiedCarbon_feature = Embodied Carbon
_UI_LifeCycle_constructionDescription_feature = Construction Description
_UI_LifeCycle_disposalEnergy_feature = Disposal Energy
_UI_LifeCycle_disposalCarbon_feature = Disposal Carbon
_UI_LifeCycle_disposalDescription_feature = Disposal Description
_UI_WindowType__feature = Window Type
_UI_LifeCycle__feature = Life Cycle
_UI_LifeCycle_type_feature = Type
_UI_WindowType_embodiedEnergy_feature = Embodied Energy _UI_WindowType_embodiedEnergy_feature = Embodied Energy
_UI_WindowType_embodiedCarbon_feature = Embodied Carbon _UI_WindowType_embodiedCarbon_feature = Embodied Carbon
_UI_WindowType_constructionDescription_feature = Construction Description _UI_WindowType_constructionDescription_feature = Construction Description
_UI_WindowType_disposalEnergy_feature = Disposal Energy _UI_WindowType_disposalEnergy_feature = Disposal Energy
_UI_WindowType_disposalCarbon_feature = Disposal Carbon _UI_WindowType_disposalCarbon_feature = Disposal Carbon
_UI_WindowType_disposalDescription_feature = Disposal Description _UI_WindowType_disposalDescription_feature = Disposal Description
_UI_WindowCategory_windowTypes_feature = Window Types
_UI_MaterialCategory_materials_feature = Materials
_UI_MaterialCategory_name_feature = Category
_UI_MaterialCategory_name_description = Name of material category
_UI_Material_materialId_feature = Material Id
_UI_Material_name_feature = Material
_UI_Material_name_description = Name of material
_UI_Material_density_feature = Density
_UI_Material_heatCapacity_feature = Heat Capacity
_UI_Material_conductivity_feature = Conductivity
_UI_Material_embodiedEnergy_feature = Embodied Energy _UI_Material_embodiedEnergy_feature = Embodied Energy
_UI_Material_embodiedCarbon_feature = Embodied Carbon _UI_Material_embodiedCarbon_feature = Embodied Carbon
_UI_Material_constructionDescription_feature = Construction Description _UI_Material_constructionDescription_feature = Construction Description
_UI_Material_disposalEnergy_feature = Disposal Energy _UI_Material_disposalEnergy_feature = Disposal Energy
_UI_Material_disposalCarbon_feature = Disposal Carbon _UI_Material_disposalCarbon_feature = Disposal Carbon
_UI_Material_disposalDescription_feature = Disposal Description _UI_Material_disposalDescription_feature = Disposal Description
_UI_ConstructionCategory_type = Constructions _UI_Material_category_feature = Category
_UI_Mounting_type = Mounting _UI_ConstructionCategory_name_feature = Name
_UI_Layer_type = Layer _UI_ConstructionCategory_constructions_feature = Constructions
_UI_MaterialCatalog_constructionCategories_feature = Constructions _UI_Construction_constructionId_feature = Construction Id
_UI_ConstructionCategory_name_feature = Construction Category _UI_Construction_name_feature = Name
_UI_ConstructionCategory_mountings_feature = Mountings _UI_Construction_layers_feature = Layers
_UI_Mounting_id_feature = Id
_UI_Mounting_name_feature = Name
_UI_Mounting_layers_feature = Layers
_UI_Layer_material_feature = Material _UI_Layer_material_feature = Material
_UI_Layer_thickness_feature = Thickness _UI_Layer_thickness_feature = Thickness
_UI_MaterialCategory_materials_feature = Materials _UI_Unknown_feature = Unspecified
_UI_WindowType_windowTypeId_feature = Window Type Id
_UI_Material_materialId_feature = Material Id
_UI_Mounting_mountingId_feature = Mounting Id
_UI_Layer__feature = Layer
_UI_Material_category_feature = Category
...@@ -56,27 +56,95 @@ public class BuildingPhysicsCatalogItemProvider extends ItemProviderAdapter impl ...@@ -56,27 +56,95 @@ public class BuildingPhysicsCatalogItemProvider extends ItemProviderAdapter impl
if (itemPropertyDescriptors == null) { if (itemPropertyDescriptors == null) {
super.getPropertyDescriptors(object); super.getPropertyDescriptors(object);
addAuthorPropertyDescriptor(object); addNamePropertyDescriptor(object);
addDescriptionPropertyDescriptor(object);
addSourcePropertyDescriptor(object);
addMaterialCategoriesPropertyDescriptor(object);
addConstructionCategoriesPropertyDescriptor(object);
} }
return itemPropertyDescriptors; return itemPropertyDescriptors;
} }
/** /**
* This adds a property descriptor for the Author feature. * This adds a property descriptor for the Name feature.
* <!-- begin-user-doc --> * <!-- begin-user-doc -->
* <!-- end-user-doc --> * <!-- end-user-doc -->
* @generated * @generated
*/ */
protected void addAuthorPropertyDescriptor(Object object) { protected void addNamePropertyDescriptor(Object object) {
itemPropertyDescriptors itemPropertyDescriptors
.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
getResourceLocator(), getString("_UI_BuildingPhysicsCatalog_author_feature"), getResourceLocator(), getString("_UI_BuildingPhysicsCatalog_name_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_BuildingPhysicsCatalog_author_feature", getString("_UI_PropertyDescriptor_description", "_UI_BuildingPhysicsCatalog_name_feature",
"_UI_BuildingPhysicsCatalog_type"), "_UI_BuildingPhysicsCatalog_type"),
BuildingPhysicsPackage.Literals.BUILDING_PHYSICS_CATALOG__AUTHOR, true, false, false, BuildingPhysicsPackage.Literals.BUILDING_PHYSICS_CATALOG__NAME, true, false, false,
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
} }
/**
* This adds a property descriptor for the Description feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addDescriptionPropertyDescriptor(Object object) {
itemPropertyDescriptors
.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
getResourceLocator(), getString("_UI_BuildingPhysicsCatalog_description_feature"),
getString("_UI_PropertyDescriptor_description",
"_UI_BuildingPhysicsCatalog_description_feature", "_UI_BuildingPhysicsCatalog_type"),
BuildingPhysicsPackage.Literals.BUILDING_PHYSICS_CATALOG__DESCRIPTION, true, true, false,
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
}
/**
* This adds a property descriptor for the Source feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addSourcePropertyDescriptor(Object object) {
itemPropertyDescriptors
.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
getResourceLocator(), getString("_UI_BuildingPhysicsCatalog_source_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_BuildingPhysicsCatalog_source_feature",
"_UI_BuildingPhysicsCatalog_type"),
BuildingPhysicsPackage.Literals.BUILDING_PHYSICS_CATALOG__SOURCE, true, false, false,
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
}
/**
* This adds a property descriptor for the Construction Categories feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addConstructionCategoriesPropertyDescriptor(Object object) {
itemPropertyDescriptors.add(createItemPropertyDescriptor(
((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
getString("_UI_BuildingPhysicsCatalog_constructionCategories_feature"),
getString("_UI_PropertyDescriptor_description",
"_UI_BuildingPhysicsCatalog_constructionCategories_feature", "_UI_BuildingPhysicsCatalog_type"),
BuildingPhysicsPackage.Literals.BUILDING_PHYSICS_CATALOG__CONSTRUCTION_CATEGORIES, true, false, true,
null, null, null));
}
/**
* This adds a property descriptor for the Material Categories feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addMaterialCategoriesPropertyDescriptor(Object object) {
itemPropertyDescriptors.add(createItemPropertyDescriptor(
((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
getString("_UI_BuildingPhysicsCatalog_materialCategories_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_BuildingPhysicsCatalog_materialCategories_feature",
"_UI_BuildingPhysicsCatalog_type"),
BuildingPhysicsPackage.Literals.BUILDING_PHYSICS_CATALOG__MATERIAL_CATEGORIES, true, false, true, null,
null, null));
}
/** /**
* This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
* {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
...@@ -89,8 +157,9 @@ public class BuildingPhysicsCatalogItemProvider extends ItemProviderAdapter impl ...@@ -89,8 +157,9 @@ public class BuildingPhysicsCatalogItemProvider extends ItemProviderAdapter impl
public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) { public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
if (childrenFeatures == null) { if (childrenFeatures == null) {
super.getChildrenFeatures(object); super.getChildrenFeatures(object);
childrenFeatures.add(BuildingPhysicsPackage.Literals.BUILDING_PHYSICS_CATALOG__WINDOW_CATALOG); childrenFeatures.add(BuildingPhysicsPackage.Literals.BUILDING_PHYSICS_CATALOG__WINDOWS);
childrenFeatures.add(BuildingPhysicsPackage.Literals.BUILDING_PHYSICS_CATALOG__MATERIAL_CATALOG); childrenFeatures.add(BuildingPhysicsPackage.Literals.BUILDING_PHYSICS_CATALOG__MATERIAL_CATEGORIES);
childrenFeatures.add(BuildingPhysicsPackage.Literals.BUILDING_PHYSICS_CATALOG__CONSTRUCTION_CATEGORIES);
} }
return childrenFeatures; return childrenFeatures;
} }
...@@ -137,7 +206,7 @@ public class BuildingPhysicsCatalogItemProvider extends ItemProviderAdapter impl ...@@ -137,7 +206,7 @@ public class BuildingPhysicsCatalogItemProvider extends ItemProviderAdapter impl
*/ */
@Override @Override
public String getText(Object object) { public String getText(Object object) {
String label = ((BuildingPhysicsCatalog) object).getAuthor(); String label = ((BuildingPhysicsCatalog) object).getName();
return label == null || label.length() == 0 ? getString("_UI_BuildingPhysicsCatalog_type") return label == null || label.length() == 0 ? getString("_UI_BuildingPhysicsCatalog_type")
: getString("_UI_BuildingPhysicsCatalog_type") + " " + label; : getString("_UI_BuildingPhysicsCatalog_type") + " " + label;
} }
...@@ -154,11 +223,14 @@ public class BuildingPhysicsCatalogItemProvider extends ItemProviderAdapter impl ...@@ -154,11 +223,14 @@ public class BuildingPhysicsCatalogItemProvider extends ItemProviderAdapter impl
updateChildren(notification); updateChildren(notification);
switch (notification.getFeatureID(BuildingPhysicsCatalog.class)) { switch (notification.getFeatureID(BuildingPhysicsCatalog.class)) {
case BuildingPhysicsPackage.BUILDING_PHYSICS_CATALOG__AUTHOR: case BuildingPhysicsPackage.BUILDING_PHYSICS_CATALOG__NAME:
case BuildingPhysicsPackage.BUILDING_PHYSICS_CATALOG__DESCRIPTION:
case BuildingPhysicsPackage.BUILDING_PHYSICS_CATALOG__SOURCE:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
return; return;
case BuildingPhysicsPackage.BUILDING_PHYSICS_CATALOG__WINDOW_CATALOG: case BuildingPhysicsPackage.BUILDING_PHYSICS_CATALOG__WINDOWS:
case BuildingPhysicsPackage.BUILDING_PHYSICS_CATALOG__MATERIAL_CATALOG: case BuildingPhysicsPackage.BUILDING_PHYSICS_CATALOG__MATERIAL_CATEGORIES:
case BuildingPhysicsPackage.BUILDING_PHYSICS_CATALOG__CONSTRUCTION_CATEGORIES:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
return; return;
} }
...@@ -176,13 +248,16 @@ public class BuildingPhysicsCatalogItemProvider extends ItemProviderAdapter impl ...@@ -176,13 +248,16 @@ public class BuildingPhysicsCatalogItemProvider extends ItemProviderAdapter impl
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
super.collectNewChildDescriptors(newChildDescriptors, object); super.collectNewChildDescriptors(newChildDescriptors, object);
newChildDescriptors newChildDescriptors.add(createChildParameter(BuildingPhysicsPackage.Literals.BUILDING_PHYSICS_CATALOG__WINDOWS,
.add(createChildParameter(BuildingPhysicsPackage.Literals.BUILDING_PHYSICS_CATALOG__WINDOW_CATALOG, BuildingPhysicsFactory.eINSTANCE.createWindowCategory()));
BuildingPhysicsFactory.eINSTANCE.createWindowCatalog()));
newChildDescriptors newChildDescriptors
.add(createChildParameter(BuildingPhysicsPackage.Literals.BUILDING_PHYSICS_CATALOG__MATERIAL_CATALOG, .add(createChildParameter(BuildingPhysicsPackage.Literals.BUILDING_PHYSICS_CATALOG__MATERIAL_CATEGORIES,
BuildingPhysicsFactory.eINSTANCE.createMaterialCatalog())); BuildingPhysicsFactory.eINSTANCE.createMaterialCategory()));
newChildDescriptors.add(
createChildParameter(BuildingPhysicsPackage.Literals.BUILDING_PHYSICS_CATALOG__CONSTRUCTION_CATEGORIES,
BuildingPhysicsFactory.eINSTANCE.createConstructionCategory()));
} }
/** /**
......
...@@ -119,49 +119,26 @@ public class BuildingPhysicsItemProviderAdapterFactory extends BuildingPhysicsAd ...@@ -119,49 +119,26 @@ public class BuildingPhysicsItemProviderAdapterFactory extends BuildingPhysicsAd
} }
/** /**
* This keeps track of the one adapter used for all {@link de.hftstuttgart.buildingphysics.WindowCatalog} instances. * This keeps track of the one adapter used for all {@link de.hftstuttgart.buildingphysics.WindowCategory} instances.
* <!-- begin-user-doc --> * <!-- begin-user-doc -->
* <!-- end-user-doc --> * <!-- end-user-doc -->
* @generated * @generated
*/ */
protected WindowCatalogItemProvider windowCatalogItemProvider; protected WindowCategoryItemProvider windowCategoryItemProvider;
/** /**
* This creates an adapter for a {@link de.hftstuttgart.buildingphysics.WindowCatalog}. * This creates an adapter for a {@link de.hftstuttgart.buildingphysics.WindowCategory}.
* <!-- begin-user-doc --> * <!-- begin-user-doc -->
* <!-- end-user-doc --> * <!-- end-user-doc -->
* @generated * @generated
*/ */
@Override @Override
public Adapter createWindowCatalogAdapter() { public Adapter createWindowCategoryAdapter() {
if (windowCatalogItemProvider == null) { if (windowCategoryItemProvider == null) {
windowCatalogItemProvider = new WindowCatalogItemProvider(this); windowCategoryItemProvider = new WindowCategoryItemProvider(this);
} }
return windowCatalogItemProvider; return windowCategoryItemProvider;
}
/**
* This keeps track of the one adapter used for all {@link de.hftstuttgart.buildingphysics.MaterialCatalog} instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected MaterialCatalogItemProvider materialCatalogItemProvider;
/**
* This creates an adapter for a {@link de.hftstuttgart.buildingphysics.MaterialCatalog}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Adapter createMaterialCatalogAdapter() {
if (materialCatalogItemProvider == null) {
materialCatalogItemProvider = new MaterialCatalogItemProvider(this);
}
return materialCatalogItemProvider;
} }
/** /**
...@@ -234,26 +211,26 @@ public class BuildingPhysicsItemProviderAdapterFactory extends BuildingPhysicsAd ...@@ -234,26 +211,26 @@ public class BuildingPhysicsItemProviderAdapterFactory extends BuildingPhysicsAd
} }
/** /**
* This keeps track of the one adapter used for all {@link de.hftstuttgart.buildingphysics.Mounting} instances. * This keeps track of the one adapter used for all {@link de.hftstuttgart.buildingphysics.Construction} instances.
* <!-- begin-user-doc --> * <!-- begin-user-doc -->
* <!-- end-user-doc --> * <!-- end-user-doc -->
* @generated * @generated
*/ */
protected MountingItemProvider mountingItemProvider; protected ConstructionItemProvider constructionItemProvider;
/** /**
* This creates an adapter for a {@link de.hftstuttgart.buildingphysics.Mounting}. * This creates an adapter for a {@link de.hftstuttgart.buildingphysics.Construction}.
* <!-- begin-user-doc --> * <!-- begin-user-doc -->
* <!-- end-user-doc --> * <!-- end-user-doc -->
* @generated * @generated
*/ */
@Override @Override
public Adapter createMountingAdapter() { public Adapter createConstructionAdapter() {
if (mountingItemProvider == null) { if (constructionItemProvider == null) {
mountingItemProvider = new MountingItemProvider(this); constructionItemProvider = new ConstructionItemProvider(this);
} }
return mountingItemProvider; return constructionItemProvider;
} }
/** /**
...@@ -388,18 +365,16 @@ public class BuildingPhysicsItemProviderAdapterFactory extends BuildingPhysicsAd ...@@ -388,18 +365,16 @@ public class BuildingPhysicsItemProviderAdapterFactory extends BuildingPhysicsAd
buildingPhysicsCatalogItemProvider.dispose(); buildingPhysicsCatalogItemProvider.dispose();
if (windowTypeItemProvider != null) if (windowTypeItemProvider != null)
windowTypeItemProvider.dispose(); windowTypeItemProvider.dispose();
if (windowCatalogItemProvider != null) if (windowCategoryItemProvider != null)
windowCatalogItemProvider.dispose(); windowCategoryItemProvider.dispose();
if (materialCatalogItemProvider != null)
materialCatalogItemProvider.dispose();
if (materialCategoryItemProvider != null) if (materialCategoryItemProvider != null)
materialCategoryItemProvider.dispose(); materialCategoryItemProvider.dispose();
if (materialItemProvider != null) if (materialItemProvider != null)
materialItemProvider.dispose(); materialItemProvider.dispose();
if (constructionCategoryItemProvider != null) if (constructionCategoryItemProvider != null)
constructionCategoryItemProvider.dispose(); constructionCategoryItemProvider.dispose();
if (mountingItemProvider != null) if (constructionItemProvider != null)
mountingItemProvider.dispose(); constructionItemProvider.dispose();
if (layerItemProvider != null) if (layerItemProvider != null)
layerItemProvider.dispose(); layerItemProvider.dispose();
} }
......
/**
*/
package de.hftstuttgart.buildingphysics.provider;
import de.hftstuttgart.buildingphysics.BuildingPhysicsPackage;
import de.hftstuttgart.buildingphysics.Catalog;
import java.util.Collection;
import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.util.ResourceLocator;
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.IItemPropertySource;
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
/**
* This is the item provider adapter for a {@link de.hftstuttgart.buildingphysics.Catalog} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public class CatalogItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
/**
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public CatalogItemProvider(AdapterFactory adapterFactory) {
super(adapterFactory);
}
/**
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
if (itemPropertyDescriptors == null) {
super.getPropertyDescriptors(object);
addNamePropertyDescriptor(object);
addDescriptionPropertyDescriptor(object);
addSourcePropertyDescriptor(object);
}
return itemPropertyDescriptors;
}
/**
* This adds a property descriptor for the Name feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addNamePropertyDescriptor(Object object) {
itemPropertyDescriptors
.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
getResourceLocator(), getString("_UI_Catalog_name_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_Catalog_name_feature", "_UI_Catalog_type"),
BuildingPhysicsPackage.Literals.CATALOG__NAME, true, false, false,
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
}
/**
* This adds a property descriptor for the Description feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addDescriptionPropertyDescriptor(Object object) {
itemPropertyDescriptors
.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
getResourceLocator(), getString("_UI_Catalog_description_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_Catalog_description_feature",
"_UI_Catalog_type"),
BuildingPhysicsPackage.Literals.CATALOG__DESCRIPTION, true, true, false,
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
}
/**
* This adds a property descriptor for the Source feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addSourcePropertyDescriptor(Object object) {
itemPropertyDescriptors
.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
getResourceLocator(), getString("_UI_Catalog_source_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_Catalog_source_feature",
"_UI_Catalog_type"),
BuildingPhysicsPackage.Literals.CATALOG__SOURCE, true, false, false,
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected boolean shouldComposeCreationImage() {
return true;
}
/**
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getText(Object object) {
String label = ((Catalog) object).getName();
return label == null || label.length() == 0 ? getString("_UI_Catalog_type")
: getString("_UI_Catalog_type") + " " + label;
}
/**
* This handles model notifications by calling {@link #updateChildren} to update any cached
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void notifyChanged(Notification notification) {
updateChildren(notification);
switch (notification.getFeatureID(Catalog.class)) {
case BuildingPhysicsPackage.CATALOG__NAME:
case BuildingPhysicsPackage.CATALOG__DESCRIPTION:
case BuildingPhysicsPackage.CATALOG__SOURCE:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
return;
}
super.notifyChanged(notification);
}
/**
* This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
super.collectNewChildDescriptors(newChildDescriptors, object);
}
/**
* Return the resource locator for this item provider's resources.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public ResourceLocator getResourceLocator() {
return BuildingPhysicsEditPlugin.INSTANCE;
}
}
...@@ -12,6 +12,7 @@ import org.eclipse.emf.common.notify.AdapterFactory; ...@@ -12,6 +12,7 @@ import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.util.ResourceLocator; import org.eclipse.emf.common.util.ResourceLocator;
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider; import org.eclipse.emf.edit.provider.IItemLabelProvider;
...@@ -120,7 +121,7 @@ public class ConstructionCategoryItemProvider extends ItemProviderAdapter implem ...@@ -120,7 +121,7 @@ public class ConstructionCategoryItemProvider extends ItemProviderAdapter implem
switch (notification.getFeatureID(ConstructionCategory.class)) { switch (notification.getFeatureID(ConstructionCategory.class)) {
case BuildingPhysicsPackage.CONSTRUCTION_CATEGORY__NAME: case BuildingPhysicsPackage.CONSTRUCTION_CATEGORY__NAME:
case BuildingPhysicsPackage.CONSTRUCTION_CATEGORY__MOUNTINGS: case BuildingPhysicsPackage.CONSTRUCTION_CATEGORY__CONSTRUCTIONS:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
return; return;
} }
......
...@@ -4,7 +4,7 @@ package de.hftstuttgart.buildingphysics.provider; ...@@ -4,7 +4,7 @@ package de.hftstuttgart.buildingphysics.provider;
import de.hftstuttgart.buildingphysics.BuildingPhysicsFactory; import de.hftstuttgart.buildingphysics.BuildingPhysicsFactory;
import de.hftstuttgart.buildingphysics.BuildingPhysicsPackage; import de.hftstuttgart.buildingphysics.BuildingPhysicsPackage;
import de.hftstuttgart.buildingphysics.Mounting; import de.hftstuttgart.buildingphysics.Construction;
import java.util.Collection; import java.util.Collection;
import java.util.List; import java.util.List;
...@@ -28,12 +28,12 @@ import org.eclipse.emf.edit.provider.ItemProviderAdapter; ...@@ -28,12 +28,12 @@ import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification; import org.eclipse.emf.edit.provider.ViewerNotification;
/** /**
* This is the item provider adapter for a {@link de.hftstuttgart.buildingphysics.Mounting} object. * This is the item provider adapter for a {@link de.hftstuttgart.buildingphysics.Construction} object.
* <!-- begin-user-doc --> * <!-- begin-user-doc -->
* <!-- end-user-doc --> * <!-- end-user-doc -->
* @generated * @generated
*/ */
public class MountingItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, public class ConstructionItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
/** /**
* This constructs an instance from a factory and a notifier. * This constructs an instance from a factory and a notifier.
...@@ -41,7 +41,7 @@ public class MountingItemProvider extends ItemProviderAdapter implements IEditin ...@@ -41,7 +41,7 @@ public class MountingItemProvider extends ItemProviderAdapter implements IEditin
* <!-- end-user-doc --> * <!-- end-user-doc -->
* @generated * @generated
*/ */
public MountingItemProvider(AdapterFactory adapterFactory) { public ConstructionItemProvider(AdapterFactory adapterFactory) {
super(adapterFactory); super(adapterFactory);
} }
...@@ -56,25 +56,25 @@ public class MountingItemProvider extends ItemProviderAdapter implements IEditin ...@@ -56,25 +56,25 @@ public class MountingItemProvider extends ItemProviderAdapter implements IEditin
if (itemPropertyDescriptors == null) { if (itemPropertyDescriptors == null) {
super.getPropertyDescriptors(object); super.getPropertyDescriptors(object);
addMountingIdPropertyDescriptor(object); addConstructionIdPropertyDescriptor(object);
addNamePropertyDescriptor(object); addNamePropertyDescriptor(object);
} }
return itemPropertyDescriptors; return itemPropertyDescriptors;
} }
/** /**
* This adds a property descriptor for the Mounting Id feature. * This adds a property descriptor for the Construction Id feature.
* <!-- begin-user-doc --> * <!-- begin-user-doc -->
* <!-- end-user-doc --> * <!-- end-user-doc -->
* @generated * @generated
*/ */
protected void addMountingIdPropertyDescriptor(Object object) { protected void addConstructionIdPropertyDescriptor(Object object) {
itemPropertyDescriptors itemPropertyDescriptors
.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
getResourceLocator(), getString("_UI_Mounting_mountingId_feature"), getResourceLocator(), getString("_UI_Construction_constructionId_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_Mounting_mountingId_feature", getString("_UI_PropertyDescriptor_description", "_UI_Construction_constructionId_feature",
"_UI_Mounting_type"), "_UI_Construction_type"),
BuildingPhysicsPackage.Literals.MOUNTING__MOUNTING_ID, true, false, false, BuildingPhysicsPackage.Literals.CONSTRUCTION__CONSTRUCTION_ID, true, false, false,
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
} }
...@@ -87,10 +87,10 @@ public class MountingItemProvider extends ItemProviderAdapter implements IEditin ...@@ -87,10 +87,10 @@ public class MountingItemProvider extends ItemProviderAdapter implements IEditin
protected void addNamePropertyDescriptor(Object object) { protected void addNamePropertyDescriptor(Object object) {
itemPropertyDescriptors itemPropertyDescriptors
.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
getResourceLocator(), getString("_UI_Mounting_name_feature"), getResourceLocator(), getString("_UI_Construction_name_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_Mounting_name_feature", getString("_UI_PropertyDescriptor_description", "_UI_Construction_name_feature",
"_UI_Mounting_type"), "_UI_Construction_type"),
BuildingPhysicsPackage.Literals.MOUNTING__NAME, true, false, false, BuildingPhysicsPackage.Literals.CONSTRUCTION__NAME, true, false, false,
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
} }
...@@ -106,7 +106,7 @@ public class MountingItemProvider extends ItemProviderAdapter implements IEditin ...@@ -106,7 +106,7 @@ public class MountingItemProvider extends ItemProviderAdapter implements IEditin
public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) { public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
if (childrenFeatures == null) { if (childrenFeatures == null) {
super.getChildrenFeatures(object); super.getChildrenFeatures(object);
childrenFeatures.add(BuildingPhysicsPackage.Literals.MOUNTING__LAYERS); childrenFeatures.add(BuildingPhysicsPackage.Literals.CONSTRUCTION__LAYERS);
} }
return childrenFeatures; return childrenFeatures;
} }
...@@ -142,9 +142,9 @@ public class MountingItemProvider extends ItemProviderAdapter implements IEditin ...@@ -142,9 +142,9 @@ public class MountingItemProvider extends ItemProviderAdapter implements IEditin
*/ */
@Override @Override
public String getText(Object object) { public String getText(Object object) {
String label = ((Mounting) object).getName(); String label = ((Construction) object).getName();
return label == null || label.length() == 0 ? getString("_UI_Mounting_type") return label == null || label.length() == 0 ? getString("_UI_Construction_type")
: getString("_UI_Mounting_type") + " " + label; : getString("_UI_Construction_type") + " " + label;
} }
/** /**
...@@ -158,12 +158,12 @@ public class MountingItemProvider extends ItemProviderAdapter implements IEditin ...@@ -158,12 +158,12 @@ public class MountingItemProvider extends ItemProviderAdapter implements IEditin
public void notifyChanged(Notification notification) { public void notifyChanged(Notification notification) {
updateChildren(notification); updateChildren(notification);
switch (notification.getFeatureID(Mounting.class)) { switch (notification.getFeatureID(Construction.class)) {
case BuildingPhysicsPackage.MOUNTING__MOUNTING_ID: case BuildingPhysicsPackage.CONSTRUCTION__CONSTRUCTION_ID:
case BuildingPhysicsPackage.MOUNTING__NAME: case BuildingPhysicsPackage.CONSTRUCTION__NAME:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
return; return;
case BuildingPhysicsPackage.MOUNTING__LAYERS: case BuildingPhysicsPackage.CONSTRUCTION__LAYERS:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
return; return;
} }
...@@ -181,7 +181,7 @@ public class MountingItemProvider extends ItemProviderAdapter implements IEditin ...@@ -181,7 +181,7 @@ public class MountingItemProvider extends ItemProviderAdapter implements IEditin
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
super.collectNewChildDescriptors(newChildDescriptors, object); super.collectNewChildDescriptors(newChildDescriptors, object);
newChildDescriptors.add(createChildParameter(BuildingPhysicsPackage.Literals.MOUNTING__LAYERS, newChildDescriptors.add(createChildParameter(BuildingPhysicsPackage.Literals.CONSTRUCTION__LAYERS,
BuildingPhysicsFactory.eINSTANCE.createLayer())); BuildingPhysicsFactory.eINSTANCE.createLayer()));
} }
......
/**
*/
package de.hftstuttgart.buildingphysics.provider;
import de.hftstuttgart.buildingphysics.BuildingPhysicsPackage;
import de.hftstuttgart.buildingphysics.MaterialCatalog;
import java.util.Collection;
import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ViewerNotification;
/**
* This is the item provider adapter for a {@link de.hftstuttgart.buildingphysics.MaterialCatalog} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public class MaterialCatalogItemProvider extends CatalogItemProvider {
/**
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public MaterialCatalogItemProvider(AdapterFactory adapterFactory) {
super(adapterFactory);
}
/**
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
if (itemPropertyDescriptors == null) {
super.getPropertyDescriptors(object);
}
return itemPropertyDescriptors;
}
/**
* This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
* {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
* {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
if (childrenFeatures == null) {
super.getChildrenFeatures(object);
childrenFeatures.add(BuildingPhysicsPackage.Literals.MATERIAL_CATALOG__MATERIAL_CATEGORIES);
childrenFeatures.add(BuildingPhysicsPackage.Literals.MATERIAL_CATALOG__CONSTRUCTION_CATEGORIES);
}
return childrenFeatures;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EStructuralFeature getChildFeature(Object object, Object child) {
// Check the type of the specified child object and return the proper feature to use for
// adding (see {@link AddCommand}) it as a child.
return super.getChildFeature(object, child);
}
/**
* This returns MaterialCatalog.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object getImage(Object object) {
return overlayImage(object, getResourceLocator().getImage("full/obj16/MaterialCatalog"));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected boolean shouldComposeCreationImage() {
return true;
}
/**
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated NOT
*/
@Override
public String getText(Object object) {
return getString("_UI_MaterialCatalog_type");
}
/**
* This handles model notifications by calling {@link #updateChildren} to update any cached
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void notifyChanged(Notification notification) {
updateChildren(notification);
switch (notification.getFeatureID(MaterialCatalog.class)) {
case BuildingPhysicsPackage.MATERIAL_CATALOG__MATERIAL_CATEGORIES:
case BuildingPhysicsPackage.MATERIAL_CATALOG__CONSTRUCTION_CATEGORIES:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
return;
}
super.notifyChanged(notification);
}
/**
* This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
super.collectNewChildDescriptors(newChildDescriptors, object);
}
}
...@@ -12,6 +12,7 @@ import org.eclipse.emf.common.notify.AdapterFactory; ...@@ -12,6 +12,7 @@ import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.util.ResourceLocator; import org.eclipse.emf.common.util.ResourceLocator;
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider; import org.eclipse.emf.edit.provider.IItemLabelProvider;
...@@ -64,13 +65,11 @@ public class MaterialCategoryItemProvider extends ItemProviderAdapter implements ...@@ -64,13 +65,11 @@ public class MaterialCategoryItemProvider extends ItemProviderAdapter implements
* @generated * @generated
*/ */
protected void addNamePropertyDescriptor(Object object) { protected void addNamePropertyDescriptor(Object object) {
itemPropertyDescriptors itemPropertyDescriptors.add(createItemPropertyDescriptor(
.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
getResourceLocator(), getString("_UI_MaterialCategory_name_feature"), getString("_UI_MaterialCategory_name_feature"), getString("_UI_MaterialCategory_name_description"),
getString("_UI_PropertyDescriptor_description", "_UI_MaterialCategory_name_feature", BuildingPhysicsPackage.Literals.MATERIAL_CATEGORY__NAME, true, false, false,
"_UI_MaterialCategory_type"), ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
BuildingPhysicsPackage.Literals.MATERIAL_CATEGORY__NAME, true, false, false,
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
} }
/** /**
......
...@@ -3,31 +3,40 @@ ...@@ -3,31 +3,40 @@
package de.hftstuttgart.buildingphysics.provider; package de.hftstuttgart.buildingphysics.provider;
import de.hftstuttgart.buildingphysics.BuildingPhysicsPackage; import de.hftstuttgart.buildingphysics.BuildingPhysicsPackage;
import de.hftstuttgart.buildingphysics.WindowCatalog; import de.hftstuttgart.buildingphysics.WindowCategory;
import java.util.Collection; import java.util.Collection;
import java.util.List; import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory; import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.emf.common.util.ResourceLocator;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.IItemPropertySource;
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification; import org.eclipse.emf.edit.provider.ViewerNotification;
/** /**
* This is the item provider adapter for a {@link de.hftstuttgart.buildingphysics.WindowCatalog} object. * This is the item provider adapter for a {@link de.hftstuttgart.buildingphysics.WindowCategory} object.
* <!-- begin-user-doc --> * <!-- begin-user-doc -->
* <!-- end-user-doc --> * <!-- end-user-doc -->
* @generated * @generated
*/ */
public class WindowCatalogItemProvider extends CatalogItemProvider { public class WindowCategoryItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
/** /**
* This constructs an instance from a factory and a notifier. * This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc --> * <!-- begin-user-doc -->
* <!-- end-user-doc --> * <!-- end-user-doc -->
* @generated * @generated
*/ */
public WindowCatalogItemProvider(AdapterFactory adapterFactory) { public WindowCategoryItemProvider(AdapterFactory adapterFactory) {
super(adapterFactory); super(adapterFactory);
} }
...@@ -47,44 +56,14 @@ public class WindowCatalogItemProvider extends CatalogItemProvider { ...@@ -47,44 +56,14 @@ public class WindowCatalogItemProvider extends CatalogItemProvider {
} }
/** /**
* This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an * This returns WindowCategory.gif.
* {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
* {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
if (childrenFeatures == null) {
super.getChildrenFeatures(object);
childrenFeatures.add(BuildingPhysicsPackage.Literals.WINDOW_CATALOG__WINDOW_TYPES);
}
return childrenFeatures;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EStructuralFeature getChildFeature(Object object, Object child) {
// Check the type of the specified child object and return the proper feature to use for
// adding (see {@link AddCommand}) it as a child.
return super.getChildFeature(object, child);
}
/**
* This returns WindowCatalog.gif.
* <!-- begin-user-doc --> * <!-- begin-user-doc -->
* <!-- end-user-doc --> * <!-- end-user-doc -->
* @generated * @generated
*/ */
@Override @Override
public Object getImage(Object object) { public Object getImage(Object object) {
return overlayImage(object, getResourceLocator().getImage("full/obj16/WindowCatalog")); return overlayImage(object, getResourceLocator().getImage("full/obj16/WindowCategory"));
} }
/** /**
...@@ -101,11 +80,11 @@ public class WindowCatalogItemProvider extends CatalogItemProvider { ...@@ -101,11 +80,11 @@ public class WindowCatalogItemProvider extends CatalogItemProvider {
* This returns the label text for the adapted class. * This returns the label text for the adapted class.
* <!-- begin-user-doc --> * <!-- begin-user-doc -->
* <!-- end-user-doc --> * <!-- end-user-doc -->
* @generated NOT * @generated
*/ */
@Override @Override
public String getText(Object object) { public String getText(Object object) {
return getString("_UI_WindowCatalog_type"); return getString("_UI_WindowCategory_type");
} }
/** /**
...@@ -119,9 +98,9 @@ public class WindowCatalogItemProvider extends CatalogItemProvider { ...@@ -119,9 +98,9 @@ public class WindowCatalogItemProvider extends CatalogItemProvider {
public void notifyChanged(Notification notification) { public void notifyChanged(Notification notification) {
updateChildren(notification); updateChildren(notification);
switch (notification.getFeatureID(WindowCatalog.class)) { switch (notification.getFeatureID(WindowCategory.class)) {
case BuildingPhysicsPackage.WINDOW_CATALOG__WINDOW_TYPES: case BuildingPhysicsPackage.WINDOW_CATEGORY__WINDOW_TYPES:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
return; return;
} }
super.notifyChanged(notification); super.notifyChanged(notification);
...@@ -139,4 +118,15 @@ public class WindowCatalogItemProvider extends CatalogItemProvider { ...@@ -139,4 +118,15 @@ public class WindowCatalogItemProvider extends CatalogItemProvider {
super.collectNewChildDescriptors(newChildDescriptors, object); super.collectNewChildDescriptors(newChildDescriptors, object);
} }
/**
* Return the resource locator for this item provider's resources.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public ResourceLocator getResourceLocator() {
return BuildingPhysicsEditPlugin.INSTANCE;
}
} }
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
<launcherArgs> <launcherArgs>
<programArgs>-clearPersistedState <programArgs>-clearPersistedState
-debugEMFForms
</programArgs> </programArgs>
<vmArgsMac>-XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts <vmArgsMac>-XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts
</vmArgsMac> </vmArgsMac>
......
...@@ -2,16 +2,13 @@ ...@@ -2,16 +2,13 @@
<?eclipse version="3.4"?> <?eclipse version="3.4"?>
<plugin> <plugin>
<extension point="org.eclipse.emf.ecp.view.model.provider.xmi.file"> <extension point="org.eclipse.emf.ecp.view.model.provider.xmi.file">
<file filePath="viewmodels/Mounting.view"/> <file filePath="viewmodels/WindowCategory.view"/>
<file filePath="viewmodels/ConstructionCategory.view"/>
<file filePath="viewmodels/MaterialCatalog.view"/>
<file filePath="viewmodels/Material.view"/>
<file filePath="viewmodels/WindowType.view"/>
<file filePath="viewmodels/Construction.view"/>
<file filePath="viewmodels/ConstructionCategory.view"/>
<file filePath="viewmodels/Material.view"/>
<file filePath="viewmodels/WindowType.view"/>
<file filePath="viewmodels/BuildingPhysicsCatalog.view"/> <file filePath="viewmodels/BuildingPhysicsCatalog.view"/>
<file filePath="viewmodels/BuildingPhysicsCatalog_Detail.view"> <file filePath="viewmodels/BuildingPhysicsCatalog_Detail.view">
<filter key="detail" value="true"/> <filter key="detail" value="true"/>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<org.eclipse.emf.ecp.view.model:View xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:org.eclipse.emf.ecp.view.model="http://org/eclipse/emf/ecp/view/model/1180" xmi:id="_1unhEK12Eeuda6ijj1ILcQ" name="BuildingPhysicsCatalog"> <org.eclipse.emf.ecp.view.model:View xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:org.eclipse.emf.ecp.view.model="http://org/eclipse/emf/ecp/view/model/1180" xmi:id="_1unhEK12Eeuda6ijj1ILcQ" name="BuildingPhysicsCatalog">
<rootEClass href="http://www.hftstuttgart.de/buildingphysics#//BuildingPhysicsCatalog"/> <rootEClass href="http://www.hftstuttgart.de/buildingphysics#//BuildingPhysicsCatalog"/>
<children xsi:type="org.eclipse.emf.ecp.view.model:Control" xmi:id="_1uqkYK12Eeuda6ijj1ILcQ" name="Control author"> <children xsi:type="org.eclipse.emf.ecp.view.model:Control" xmi:id="_P1mDgMBbEeuIHZm4y-I19A" name="Control name">
<domainModelReference xsi:type="org.eclipse.emf.ecp.view.model:FeaturePathDomainModelReference" xmi:id="_1uqkYa12Eeuda6ijj1ILcQ"> <domainModelReference xsi:type="org.eclipse.emf.ecp.view.model:FeaturePathDomainModelReference" xmi:id="_P1mDgcBbEeuIHZm4y-I19A">
<domainModelEFeature xsi:type="ecore:EAttribute" href="http://www.hftstuttgart.de/buildingphysics#//BuildingPhysicsCatalog/author"/> <domainModelEFeature xsi:type="ecore:EAttribute" href="http://www.hftstuttgart.de/buildingphysics#//BuildingPhysicsCatalog/name"/>
</domainModelReference>
</children>
<children xsi:type="org.eclipse.emf.ecp.view.model:Control" xmi:id="_P1mqkMBbEeuIHZm4y-I19A" name="Control description">
<domainModelReference xsi:type="org.eclipse.emf.ecp.view.model:FeaturePathDomainModelReference" xmi:id="_P1mqkcBbEeuIHZm4y-I19A">
<domainModelEFeature xsi:type="ecore:EAttribute" href="http://www.hftstuttgart.de/buildingphysics#//BuildingPhysicsCatalog/description"/>
</domainModelReference>
</children>
<children xsi:type="org.eclipse.emf.ecp.view.model:Control" xmi:id="_P1mqksBbEeuIHZm4y-I19A" name="Control source">
<domainModelReference xsi:type="org.eclipse.emf.ecp.view.model:FeaturePathDomainModelReference" xmi:id="_P1mqk8BbEeuIHZm4y-I19A">
<domainModelEFeature xsi:type="ecore:EAttribute" href="http://www.hftstuttgart.de/buildingphysics#//BuildingPhysicsCatalog/source"/>
</domainModelReference> </domainModelReference>
</children> </children>
<ecorePaths>/de.hftstuttgart.buildingphysics/model/buildingphysics.ecore</ecorePaths> <ecorePaths>/de.hftstuttgart.buildingphysics/model/buildingphysics.ecore</ecorePaths>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<org.eclipse.emf.ecp.view.model:View xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:org.eclipse.emf.ecp.view.model="http://org/eclipse/emf/ecp/view/model/1180" xmlns:org.eclipse.emf.ecp.view.table.model="http://org/eclipse/emf/ecp/view/table/model/150" xmi:id="_Hd11YLPZEeup29SeaUMpQQ" name="Mounting"> <org.eclipse.emf.ecp.view.model:View xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:org.eclipse.emf.ecp.view.model="http://org/eclipse/emf/ecp/view/model/1180" xmlns:org.eclipse.emf.ecp.view.table.model="http://org/eclipse/emf/ecp/view/table/model/150" xmi:id="_Hd11YLPZEeup29SeaUMpQQ" name="Construction">
<rootEClass href="http://www.hftstuttgart.de/buildingphysics#//Mounting"/> <rootEClass href="http://www.hftstuttgart.de/buildingphysics#//Construction"/>
<children xsi:type="org.eclipse.emf.ecp.view.model:Control" xmi:id="_Hd2ccLPZEeup29SeaUMpQQ" name="Control mountingId"> <children xsi:type="org.eclipse.emf.ecp.view.model:Control" xmi:id="_Hd2ccLPZEeup29SeaUMpQQ" name="Control constructionId">
<domainModelReference xsi:type="org.eclipse.emf.ecp.view.model:FeaturePathDomainModelReference" xmi:id="_Hd2ccbPZEeup29SeaUMpQQ"> <domainModelReference xsi:type="org.eclipse.emf.ecp.view.model:FeaturePathDomainModelReference" xmi:id="_Hd2ccbPZEeup29SeaUMpQQ">
<domainModelEFeature xsi:type="ecore:EAttribute" href="http://www.hftstuttgart.de/buildingphysics#//Mounting/mountingId"/> <domainModelEFeature xsi:type="ecore:EAttribute" href="http://www.hftstuttgart.de/buildingphysics#//Construction/constructionId"/>
</domainModelReference> </domainModelReference>
</children> </children>
<children xsi:type="org.eclipse.emf.ecp.view.model:Control" xmi:id="_Hd2ccrPZEeup29SeaUMpQQ" name="Control name"> <children xsi:type="org.eclipse.emf.ecp.view.model:Control" xmi:id="_Hd2ccrPZEeup29SeaUMpQQ" name="Control name">
<domainModelReference xsi:type="org.eclipse.emf.ecp.view.model:FeaturePathDomainModelReference" xmi:id="_Hd2cc7PZEeup29SeaUMpQQ"> <domainModelReference xsi:type="org.eclipse.emf.ecp.view.model:FeaturePathDomainModelReference" xmi:id="_Hd2cc7PZEeup29SeaUMpQQ">
<domainModelEFeature xsi:type="ecore:EAttribute" href="http://www.hftstuttgart.de/buildingphysics#//Mounting/name"/> <domainModelEFeature xsi:type="ecore:EAttribute" href="http://www.hftstuttgart.de/buildingphysics#//Construction/name"/>
</domainModelReference> </domainModelReference>
</children> </children>
<children xsi:type="org.eclipse.emf.ecp.view.table.model:TableControl" xmi:id="_J63RcLPZEeup29SeaUMpQQ" moveUpDownDisabled="false" detailEditing="WithPanel"> <children xsi:type="org.eclipse.emf.ecp.view.table.model:TableControl" xmi:id="_J63RcLPZEeup29SeaUMpQQ" moveUpDownDisabled="false" detailEditing="WithPanel">
...@@ -26,11 +26,11 @@ ...@@ -26,11 +26,11 @@
<domainModelEReferencePath href="http://www.hftstuttgart.de/buildingphysics#//Material/category"/> <domainModelEReferencePath href="http://www.hftstuttgart.de/buildingphysics#//Material/category"/>
</columnDomainModelReferences> </columnDomainModelReferences>
<domainModelReference xsi:type="org.eclipse.emf.ecp.view.model:FeaturePathDomainModelReference" xmi:id="_MkYRYbPZEeup29SeaUMpQQ"> <domainModelReference xsi:type="org.eclipse.emf.ecp.view.model:FeaturePathDomainModelReference" xmi:id="_MkYRYbPZEeup29SeaUMpQQ">
<domainModelEFeature xsi:type="ecore:EReference" href="http://www.hftstuttgart.de/buildingphysics#//Mounting/layers"/> <domainModelEFeature xsi:type="ecore:EReference" href="http://www.hftstuttgart.de/buildingphysics#//Construction/layers"/>
</domainModelReference> </domainModelReference>
</domainModelReference> </domainModelReference>
<columnConfigurations xsi:type="org.eclipse.emf.ecp.view.table.model:ReadOnlyColumnConfiguration" xmi:id="_rCf9QL44EeuIHZm4y-I19A" columnDomainReferences="_123AEL4qEeuIHZm4y-I19A _6c1I0L4uEeuIHZm4y-I19A"/>
<columnConfigurations xsi:type="org.eclipse.emf.ecp.view.table.model:WidthConfiguration" xmi:id="_d7H2QL8HEeuIHZm4y-I19A" columnDomainReference="_QnRfELPZEeup29SeaUMpQQ" weight="30" minWidth="65"/> <columnConfigurations xsi:type="org.eclipse.emf.ecp.view.table.model:WidthConfiguration" xmi:id="_d7H2QL8HEeuIHZm4y-I19A" columnDomainReference="_QnRfELPZEeup29SeaUMpQQ" weight="30" minWidth="65"/>
<columnConfigurations xsi:type="org.eclipse.emf.ecp.view.table.model:ReadOnlyColumnConfiguration" xmi:id="__DSvkL-MEeuIHZm4y-I19A" columnDomainReferences="_123AEL4qEeuIHZm4y-I19A _6c1I0L4uEeuIHZm4y-I19A"/>
</children> </children>
<ecorePaths>/de.hftstuttgart.buildingphysics/model/buildingphysics.ecore</ecorePaths> <ecorePaths>/de.hftstuttgart.buildingphysics/model/buildingphysics.ecore</ecorePaths>
</org.eclipse.emf.ecp.view.model:View> </org.eclipse.emf.ecp.view.model:View>
...@@ -7,11 +7,18 @@ ...@@ -7,11 +7,18 @@
</domainModelReference> </domainModelReference>
</children> </children>
<children xsi:type="org.eclipse.emf.ecp.view.table.model:TableControl" xmi:id="_vgicgLeuEeu0KumwacCHxQ" detailEditing="WithPanel"> <children xsi:type="org.eclipse.emf.ecp.view.table.model:TableControl" xmi:id="_vgicgLeuEeu0KumwacCHxQ" detailEditing="WithPanel">
<domainModelReference xsi:type="org.eclipse.emf.ecp.view.table.model:TableDomainModelReference" xmi:id="_yN_hQLeuEeu0KumwacCHxQ"> <domainModelReference xsi:type="org.eclipse.emf.ecp.view.table.model:TableDomainModelReference" xmi:id="_UOehkMBWEeuIHZm4y-I19A">
<domainModelReference xsi:type="org.eclipse.emf.ecp.view.model:FeaturePathDomainModelReference" xmi:id="_yN_hQbeuEeu0KumwacCHxQ"> <columnDomainModelReferences xsi:type="org.eclipse.emf.ecp.view.model:FeaturePathDomainModelReference" xmi:id="_XzxNQMBWEeuIHZm4y-I19A">
<domainModelEFeature xsi:type="ecore:EReference" href="http://www.hftstuttgart.de/buildingphysics#//ConstructionCategory/mountings"/> <domainModelEFeature xsi:type="ecore:EAttribute" href="http://www.hftstuttgart.de/buildingphysics#//Construction/constructionId"/>
</columnDomainModelReferences>
<columnDomainModelReferences xsi:type="org.eclipse.emf.ecp.view.model:FeaturePathDomainModelReference" xmi:id="_XzxNQcBWEeuIHZm4y-I19A">
<domainModelEFeature xsi:type="ecore:EAttribute" href="http://www.hftstuttgart.de/buildingphysics#//Construction/name"/>
</columnDomainModelReferences>
<domainModelReference xsi:type="org.eclipse.emf.ecp.view.model:FeaturePathDomainModelReference" xmi:id="_UOehkcBWEeuIHZm4y-I19A">
<domainModelEFeature xsi:type="ecore:EReference" href="http://www.hftstuttgart.de/buildingphysics#//ConstructionCategory/constructions"/>
</domainModelReference> </domainModelReference>
</domainModelReference> </domainModelReference>
<columnConfigurations xsi:type="org.eclipse.emf.ecp.view.table.model:ReadOnlyColumnConfiguration" xmi:id="_2MtCAL-PEeuIHZm4y-I19A"/>
</children> </children>
<ecorePaths>/de.hftstuttgart.buildingphysics/model/buildingphysics.ecore</ecorePaths> <ecorePaths>/de.hftstuttgart.buildingphysics/model/buildingphysics.ecore</ecorePaths>
</org.eclipse.emf.ecp.view.model:View> </org.eclipse.emf.ecp.view.model:View>
<?xml version="1.0" encoding="UTF-8"?>
<org.eclipse.emf.ecp.view.model:View xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:org.eclipse.emf.ecp.view.model="http://org/eclipse/emf/ecp/view/model/1180" xmi:id="_cFVTQLPYEeup29SeaUMpQQ" name="MaterialCatalog">
<rootEClass href="http://www.hftstuttgart.de/buildingphysics#//MaterialCatalog"/>
<children xsi:type="org.eclipse.emf.ecp.view.model:Control" xmi:id="_cFWhYLPYEeup29SeaUMpQQ" name="Control name">
<domainModelReference xsi:type="org.eclipse.emf.ecp.view.model:FeaturePathDomainModelReference" xmi:id="_cFWhYbPYEeup29SeaUMpQQ">
<domainModelEFeature xsi:type="ecore:EAttribute" href="http://www.hftstuttgart.de/buildingphysics#//Catalog/name"/>
</domainModelReference>
</children>
<children xsi:type="org.eclipse.emf.ecp.view.model:Control" xmi:id="_cFWhYrPYEeup29SeaUMpQQ" name="Control description">
<domainModelReference xsi:type="org.eclipse.emf.ecp.view.model:FeaturePathDomainModelReference" xmi:id="_cFWhY7PYEeup29SeaUMpQQ">
<domainModelEFeature xsi:type="ecore:EAttribute" href="http://www.hftstuttgart.de/buildingphysics#//Catalog/description"/>
</domainModelReference>
</children>
<children xsi:type="org.eclipse.emf.ecp.view.model:Control" xmi:id="_cFWhZLPYEeup29SeaUMpQQ" name="Control source">
<domainModelReference xsi:type="org.eclipse.emf.ecp.view.model:FeaturePathDomainModelReference" xmi:id="_cFWhZbPYEeup29SeaUMpQQ">
<domainModelEFeature xsi:type="ecore:EAttribute" href="http://www.hftstuttgart.de/buildingphysics#//Catalog/source"/>
</domainModelReference>
</children>
<ecorePaths>/de.hftstuttgart.buildingphysics/model/buildingphysics.ecore</ecorePaths>
</org.eclipse.emf.ecp.view.model:View>
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
<domainModelEFeature xsi:type="ecore:EReference" href="http://www.hftstuttgart.de/buildingphysics#//MaterialCategory/materials"/> <domainModelEFeature xsi:type="ecore:EReference" href="http://www.hftstuttgart.de/buildingphysics#//MaterialCategory/materials"/>
</domainModelReference> </domainModelReference>
</domainModelReference> </domainModelReference>
<columnConfigurations xsi:type="org.eclipse.emf.ecp.view.table.model:ReadOnlyColumnConfiguration" xmi:id="_q0L1IL-QEeuIHZm4y-I19A" columnDomainReferences="_g8iSwbPYEeup29SeaUMpQQ _g8iSwrPYEeup29SeaUMpQQ _g8iSw7PYEeup29SeaUMpQQ _g8iSxLPYEeup29SeaUMpQQ _g8iSwLPYEeup29SeaUMpQQ"/>
</children> </children>
<ecorePaths>/de.hftstuttgart.buildingphysics/model/buildingphysics.ecore</ecorePaths> <ecorePaths>/de.hftstuttgart.buildingphysics/model/buildingphysics.ecore</ecorePaths>
</org.eclipse.emf.ecp.view.model:View> </org.eclipse.emf.ecp.view.model:View>
<?xml version="1.0" encoding="UTF-8"?>
<org.eclipse.emf.ecp.view.model:View xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:org.eclipse.emf.ecp.view.model="http://org/eclipse/emf/ecp/view/model/1180" xmlns:org.eclipse.emf.ecp.view.table.model="http://org/eclipse/emf/ecp/view/table/model/150" xmi:id="_gPK1kK15Eeuda6ijj1ILcQ" name="WindowCatalog">
<rootEClass href="http://www.hftstuttgart.de/buildingphysics#//WindowCatalog"/>
<children xsi:type="org.eclipse.emf.ecp.view.model:Control" xmi:id="_gPMDsK15Eeuda6ijj1ILcQ" name="Control name">
<domainModelReference xsi:type="org.eclipse.emf.ecp.view.model:FeaturePathDomainModelReference" xmi:id="_gPMDsa15Eeuda6ijj1ILcQ">
<domainModelEFeature xsi:type="ecore:EAttribute" href="http://www.hftstuttgart.de/buildingphysics#//Catalog/name"/>
</domainModelReference>
</children>
<children xsi:type="org.eclipse.emf.ecp.view.model:Control" xmi:id="_gPMDsq15Eeuda6ijj1ILcQ" name="Control description">
<domainModelReference xsi:type="org.eclipse.emf.ecp.view.model:FeaturePathDomainModelReference" xmi:id="_gPMDs615Eeuda6ijj1ILcQ">
<domainModelEFeature xsi:type="ecore:EAttribute" href="http://www.hftstuttgart.de/buildingphysics#//Catalog/description"/>
</domainModelReference>
</children>
<children xsi:type="org.eclipse.emf.ecp.view.model:Control" xmi:id="_gPMDtK15Eeuda6ijj1ILcQ" name="Control source">
<domainModelReference xsi:type="org.eclipse.emf.ecp.view.model:FeaturePathDomainModelReference" xmi:id="_gPMDta15Eeuda6ijj1ILcQ">
<domainModelEFeature xsi:type="ecore:EAttribute" href="http://www.hftstuttgart.de/buildingphysics#//Catalog/source"/>
</domainModelReference>
</children>
<children xsi:type="org.eclipse.emf.ecp.view.table.model:TableControl" xmi:id="_jQX8wK15Eeuda6ijj1ILcQ" detailEditing="WithPanel">
<domainModelReference xsi:type="org.eclipse.emf.ecp.view.table.model:TableDomainModelReference" xmi:id="_v8IfcLfGEeu0KumwacCHxQ">
<domainModelReference xsi:type="org.eclipse.emf.ecp.view.model:FeaturePathDomainModelReference" xmi:id="_v8IfcbfGEeu0KumwacCHxQ">
<domainModelEFeature xsi:type="ecore:EReference" href="http://www.hftstuttgart.de/buildingphysics#//WindowCatalog/windowTypes"/>
</domainModelReference>
</domainModelReference>
</children>
<ecorePaths>/de.hftstuttgart.buildingphysics/model/buildingphysics.ecore</ecorePaths>
</org.eclipse.emf.ecp.view.model:View>
<?xml version="1.0" encoding="UTF-8"?>
<org.eclipse.emf.ecp.view.model:View xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:org.eclipse.emf.ecp.view.model="http://org/eclipse/emf/ecp/view/model/1180" xmlns:org.eclipse.emf.ecp.view.table.model="http://org/eclipse/emf/ecp/view/table/model/150" xmi:id="_g2A3kMBbEeuIHZm4y-I19A" name="WindowCategory">
<rootEClass href="http://www.hftstuttgart.de/buildingphysics#//WindowCategory"/>
<children xsi:type="org.eclipse.emf.ecp.view.table.model:TableControl" xmi:id="_jclRMMBbEeuIHZm4y-I19A" detailEditing="WithPanel">
<domainModelReference xsi:type="org.eclipse.emf.ecp.view.table.model:TableDomainModelReference" xmi:id="_mCVLcMBbEeuIHZm4y-I19A">
<columnDomainModelReferences xsi:type="org.eclipse.emf.ecp.view.model:FeaturePathDomainModelReference" xmi:id="_6R9BMMExEeuIHZm4y-I19A">
<domainModelEFeature xsi:type="ecore:EAttribute" href="http://www.hftstuttgart.de/buildingphysics#//WindowType/windowTypeId"/>
</columnDomainModelReferences>
<columnDomainModelReferences xsi:type="org.eclipse.emf.ecp.view.model:FeaturePathDomainModelReference" xmi:id="_6R9BMcExEeuIHZm4y-I19A">
<domainModelEFeature xsi:type="ecore:EAttribute" href="http://www.hftstuttgart.de/buildingphysics#//WindowType/name"/>
</columnDomainModelReferences>
<columnDomainModelReferences xsi:type="org.eclipse.emf.ecp.view.model:FeaturePathDomainModelReference" xmi:id="_6R9BMsExEeuIHZm4y-I19A">
<domainModelEFeature xsi:type="ecore:EAttribute" href="http://www.hftstuttgart.de/buildingphysics#//WindowType/uValue"/>
</columnDomainModelReferences>
<columnDomainModelReferences xsi:type="org.eclipse.emf.ecp.view.model:FeaturePathDomainModelReference" xmi:id="_6R9BM8ExEeuIHZm4y-I19A">
<domainModelEFeature xsi:type="ecore:EAttribute" href="http://www.hftstuttgart.de/buildingphysics#//WindowType/gValue"/>
</columnDomainModelReferences>
<columnDomainModelReferences xsi:type="org.eclipse.emf.ecp.view.model:FeaturePathDomainModelReference" xmi:id="_6R9BNMExEeuIHZm4y-I19A">
<domainModelEFeature xsi:type="ecore:EAttribute" href="http://www.hftstuttgart.de/buildingphysics#//WindowType/glazingNumber"/>
</columnDomainModelReferences>
<columnDomainModelReferences xsi:type="org.eclipse.emf.ecp.view.model:FeaturePathDomainModelReference" xmi:id="_6R9BNcExEeuIHZm4y-I19A">
<domainModelEFeature xsi:type="ecore:EAttribute" href="http://www.hftstuttgart.de/buildingphysics#//WindowType/frameRatio"/>
</columnDomainModelReferences>
<domainModelReference xsi:type="org.eclipse.emf.ecp.view.model:FeaturePathDomainModelReference" xmi:id="_mCVLccBbEeuIHZm4y-I19A">
<domainModelEFeature xsi:type="ecore:EReference" href="http://www.hftstuttgart.de/buildingphysics#//WindowCategory/windowTypes"/>
</domainModelReference>
</domainModelReference>
<columnConfigurations xsi:type="org.eclipse.emf.ecp.view.table.model:ReadOnlyColumnConfiguration" xmi:id="_8ZWLgMExEeuIHZm4y-I19A" columnDomainReferences="_6R9BMcExEeuIHZm4y-I19A _6R9BMsExEeuIHZm4y-I19A _6R9BNMExEeuIHZm4y-I19A _6R9BNcExEeuIHZm4y-I19A _6R9BM8ExEeuIHZm4y-I19A _6R9BMMExEeuIHZm4y-I19A"/>
</children>
<ecorePaths>/de.hftstuttgart.buildingphysics/model/buildingphysics.ecore</ecorePaths>
</org.eclipse.emf.ecp.view.model:View>