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
d0dabe59
Commit
d0dabe59
authored
3 years ago
by
Kai-Holger Brassel
Browse files
Options
Download
Email Patches
Plain Diff
Make table columns read only
parent
46db403e
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
de.hftstuttgart.buildingphysics.edit/plugin.properties
+2
-0
de.hftstuttgart.buildingphysics.edit/plugin.properties
de.hftstuttgart.buildingphysics.edit/src/de/hftstuttgart/buildingphysics/provider/MaterialCategoryItemProvider.java
+5
-7
...uildingphysics/provider/MaterialCategoryItemProvider.java
de.hftstuttgart.buildingphysics.viewmodel/plugin.xml
+6
-11
de.hftstuttgart.buildingphysics.viewmodel/plugin.xml
de.hftstuttgart.buildingphysics.viewmodel/viewmodels/ConstructionCategory.view
+7
-0
...ingphysics.viewmodel/viewmodels/ConstructionCategory.view
de.hftstuttgart.buildingphysics.viewmodel/viewmodels/MaterialCategory.view
+1
-0
...uildingphysics.viewmodel/viewmodels/MaterialCategory.view
de.hftstuttgart.buildingphysics.viewmodel/viewmodels/Mounting.view
+1
-1
...ttgart.buildingphysics.viewmodel/viewmodels/Mounting.view
de.hftstuttgart.buildingphysics.viewmodel/viewmodels/WindowCatalog.view
+19
-0
...t.buildingphysics.viewmodel/viewmodels/WindowCatalog.view
de.hftstuttgart.buildingphysics/model/buildingphysics.genmodel
+3
-2
...tstuttgart.buildingphysics/model/buildingphysics.genmodel
with
44 additions
and
21 deletions
+44
-21
de.hftstuttgart.buildingphysics.edit/plugin.properties
+
2
-
0
View file @
d0dabe59
...
@@ -86,3 +86,5 @@ _UI_Material_materialId_feature = Material Id
...
@@ -86,3 +86,5 @@ _UI_Material_materialId_feature = Material Id
_UI_Mounting_mountingId_feature
=
Mounting Id
_UI_Mounting_mountingId_feature
=
Mounting Id
_UI_Layer__feature
=
Layer
_UI_Layer__feature
=
Layer
_UI_Material_category_feature
=
Category
_UI_Material_category_feature
=
Category
_UI_MaterialCategory_name_description
=
Name of material category
_UI_Material_name_description
=
Name of material
This diff is collapsed.
Click to expand it.
de.hftstuttgart.buildingphysics.edit/src/de/hftstuttgart/buildingphysics/provider/MaterialCategoryItemProvider.java
+
5
-
7
View file @
d0dabe59
...
@@ -64,11 +64,9 @@ public class MaterialCategoryItemProvider extends ItemProviderAdapter implements
...
@@ -64,11 +64,9 @@ 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"
,
"_UI_MaterialCategory_type"
),
BuildingPhysicsPackage
.
Literals
.
MATERIAL_CATEGORY__NAME
,
true
,
false
,
false
,
BuildingPhysicsPackage
.
Literals
.
MATERIAL_CATEGORY__NAME
,
true
,
false
,
false
,
ItemPropertyDescriptor
.
GENERIC_VALUE_IMAGE
,
null
,
null
));
ItemPropertyDescriptor
.
GENERIC_VALUE_IMAGE
,
null
,
null
));
}
}
...
...
This diff is collapsed.
Click to expand it.
de.hftstuttgart.buildingphysics.viewmodel/plugin.xml
+
6
-
11
View file @
d0dabe59
...
@@ -2,16 +2,11 @@
...
@@ -2,16 +2,11 @@
<?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/Mounting.view"
/>
<file
filePath=
"viewmodels/ConstructionCategory.view"
/>
<file
filePath=
"viewmodels/ConstructionCategory.view"
/>
<file
filePath=
"viewmodels/MaterialCatalog.view"
/>
<file
filePath=
"viewmodels/Material.view"
/>
<file
filePath=
"viewmodels/MaterialCatalog.view"
/>
<file
filePath=
"viewmodels/WindowType.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"
/>
...
...
This diff is collapsed.
Click to expand it.
de.hftstuttgart.buildingphysics.viewmodel/viewmodels/ConstructionCategory.view
+
7
-
0
View file @
d0dabe59
...
@@ -8,10 +8,17 @@
...
@@ -8,10 +8,17 @@
</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=
"_yN_hQLeuEeu0KumwacCHxQ"
>
<columnDomainModelReferences
xsi:type=
"org.eclipse.emf.ecp.view.model:FeaturePathDomainModelReference"
xmi:id=
"_IHsn8L-QEeuIHZm4y-I19A"
>
<domainModelEFeature
xsi:type=
"ecore:EAttribute"
href=
"http://www.hftstuttgart.de/buildingphysics#//Mounting/mountingId"
/>
</columnDomainModelReferences>
<columnDomainModelReferences
xsi:type=
"org.eclipse.emf.ecp.view.model:FeaturePathDomainModelReference"
xmi:id=
"_IHsn8b-QEeuIHZm4y-I19A"
>
<domainModelEFeature
xsi:type=
"ecore:EAttribute"
href=
"http://www.hftstuttgart.de/buildingphysics#//Mounting/name"
/>
</columnDomainModelReferences>
<domainModelReference
xsi:type=
"org.eclipse.emf.ecp.view.model:FeaturePathDomainModelReference"
xmi:id=
"_yN_hQbeuEeu0KumwacCHxQ"
>
<domainModelReference
xsi:type=
"org.eclipse.emf.ecp.view.model:FeaturePathDomainModelReference"
xmi:id=
"_yN_hQbeuEeu0KumwacCHxQ"
>
<domainModelEFeature
xsi:type=
"ecore:EReference"
href=
"http://www.hftstuttgart.de/buildingphysics#//ConstructionCategory/mountings"
/>
<domainModelEFeature
xsi:type=
"ecore:EReference"
href=
"http://www.hftstuttgart.de/buildingphysics#//ConstructionCategory/mountings"
/>
</domainModelReference>
</domainModelReference>
</domainModelReference>
</domainModelReference>
<columnConfigurations
xsi:type=
"org.eclipse.emf.ecp.view.table.model:ReadOnlyColumnConfiguration"
xmi:id=
"_2MtCAL-PEeuIHZm4y-I19A"
columnDomainReferences=
"_IHsn8b-QEeuIHZm4y-I19A _IHsn8L-QEeuIHZm4y-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>
This diff is collapsed.
Click to expand it.
de.hftstuttgart.buildingphysics.viewmodel/viewmodels/MaterialCategory.view
+
1
-
0
View file @
d0dabe59
...
@@ -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>
This diff is collapsed.
Click to expand it.
de.hftstuttgart.buildingphysics.viewmodel/viewmodels/Mounting.view
+
1
-
1
View file @
d0dabe59
...
@@ -29,8 +29,8 @@
...
@@ -29,8 +29,8 @@
<domainModelEFeature
xsi:type=
"ecore:EReference"
href=
"http://www.hftstuttgart.de/buildingphysics#//Mounting/layers"
/>
<domainModelEFeature
xsi:type=
"ecore:EReference"
href=
"http://www.hftstuttgart.de/buildingphysics#//Mounting/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>
This diff is collapsed.
Click to expand it.
de.hftstuttgart.buildingphysics.viewmodel/viewmodels/WindowCatalog.view
+
19
-
0
View file @
d0dabe59
...
@@ -18,10 +18,29 @@
...
@@ -18,10 +18,29 @@
</children>
</children>
<children
xsi:type=
"org.eclipse.emf.ecp.view.table.model:TableControl"
xmi:id=
"_jQX8wK15Eeuda6ijj1ILcQ"
detailEditing=
"WithPanel"
>
<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.table.model:TableDomainModelReference"
xmi:id=
"_v8IfcLfGEeu0KumwacCHxQ"
>
<columnDomainModelReferences
xsi:type=
"org.eclipse.emf.ecp.view.model:FeaturePathDomainModelReference"
xmi:id=
"_yjrQYL-QEeuIHZm4y-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=
"_yjrQYb-QEeuIHZm4y-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=
"_yjrQYr-QEeuIHZm4y-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=
"_yjrQY7-QEeuIHZm4y-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=
"_yjrQZL-QEeuIHZm4y-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=
"_yjrQZb-QEeuIHZm4y-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=
"_v8IfcbfGEeu0KumwacCHxQ"
>
<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"
/>
<domainModelEFeature
xsi:type=
"ecore:EReference"
href=
"http://www.hftstuttgart.de/buildingphysics#//WindowCatalog/windowTypes"
/>
</domainModelReference>
</domainModelReference>
</domainModelReference>
</domainModelReference>
<columnConfigurations
xsi:type=
"org.eclipse.emf.ecp.view.table.model:ReadOnlyColumnConfiguration"
xmi:id=
"_28IeYL-QEeuIHZm4y-I19A"
columnDomainReferences=
"_yjrQZL-QEeuIHZm4y-I19A _yjrQY7-QEeuIHZm4y-I19A _yjrQYL-QEeuIHZm4y-I19A _yjrQYb-QEeuIHZm4y-I19A _yjrQYr-QEeuIHZm4y-I19A _yjrQZb-QEeuIHZm4y-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>
This diff is collapsed.
Click to expand it.
de.hftstuttgart.buildingphysics/model/buildingphysics.genmodel
+
3
-
2
View file @
d0dabe59
...
@@ -44,11 +44,12 @@
...
@@ -44,11 +44,12 @@
</genClasses>
</genClasses>
<genClasses
ecoreClass=
"buildingphysics.ecore#//MaterialCategory"
>
<genClasses
ecoreClass=
"buildingphysics.ecore#//MaterialCategory"
>
<genFeatures
property=
"None"
createChild=
"false"
ecoreFeature=
"ecore:EReference buildingphysics.ecore#//MaterialCategory/materials"
/>
<genFeatures
property=
"None"
createChild=
"false"
ecoreFeature=
"ecore:EReference buildingphysics.ecore#//MaterialCategory/materials"
/>
<genFeatures
createChild=
"false"
ecoreFeature=
"ecore:EAttribute buildingphysics.ecore#//MaterialCategory/name"
/>
<genFeatures
createChild=
"false"
propertyDescription=
"Name of material category"
ecoreFeature=
"ecore:EAttribute buildingphysics.ecore#//MaterialCategory/name"
/>
</genClasses>
</genClasses>
<genClasses
image=
"false"
ecoreClass=
"buildingphysics.ecore#//Material"
>
<genClasses
image=
"false"
ecoreClass=
"buildingphysics.ecore#//Material"
>
<genFeatures
createChild=
"false"
ecoreFeature=
"ecore:EAttribute buildingphysics.ecore#//Material/materialId"
/>
<genFeatures
createChild=
"false"
ecoreFeature=
"ecore:EAttribute buildingphysics.ecore#//Material/materialId"
/>
<genFeatures
createChild=
"false"
propertyDescription=
"
Bla Blub
"
ecoreFeature=
"ecore:EAttribute buildingphysics.ecore#//Material/name"
/>
<genFeatures
createChild=
"false"
propertyDescription=
"
Name of material
"
ecoreFeature=
"ecore:EAttribute buildingphysics.ecore#//Material/name"
/>
<genFeatures
createChild=
"false"
ecoreFeature=
"ecore:EAttribute buildingphysics.ecore#//Material/density"
/>
<genFeatures
createChild=
"false"
ecoreFeature=
"ecore:EAttribute buildingphysics.ecore#//Material/density"
/>
<genFeatures
createChild=
"false"
ecoreFeature=
"ecore:EAttribute buildingphysics.ecore#//Material/heatCapacity"
/>
<genFeatures
createChild=
"false"
ecoreFeature=
"ecore:EAttribute buildingphysics.ecore#//Material/heatCapacity"
/>
<genFeatures
createChild=
"false"
ecoreFeature=
"ecore:EAttribute buildingphysics.ecore#//Material/conductivity"
/>
<genFeatures
createChild=
"false"
ecoreFeature=
"ecore:EAttribute buildingphysics.ecore#//Material/conductivity"
/>
...
...
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