Prechádzať zdrojové kódy

changed Model update call to refresh instead of aboutToBeShown

Andreas Mülder 14 rokov pred
rodič
commit
5c5fb8da35

+ 3 - 3
de.itemis.gmf.utils/plugins/de.itemis.gmf.runtime.commons/src/de/itemis/gmf/runtime/commons/properties/GenericFormBasedPropertySection.java

@@ -80,11 +80,11 @@ public abstract class GenericFormBasedPropertySection extends
 	}
 
 	@Override
-	public void aboutToBeShown() {
-		super.aboutToBeShown();
+	public void refresh() {
+		super.refresh();
 		EObject eObject = getEObject();
 		for (IFormPropertyDescriptor descriptor : descriptors) {
-			descriptor.bindToModel(eObject);
+			descriptor.updateModelBinding(eObject);
 		}
 	}
 

+ 1 - 1
de.itemis.gmf.utils/plugins/de.itemis.gmf.runtime.commons/src/de/itemis/gmf/runtime/commons/properties/descriptors/AbstractPropertyDescriptor.java

@@ -139,7 +139,7 @@ public abstract class AbstractPropertyDescriptor implements
 		return feature;
 	}
 
-	public void bindToModel(EObject eObject) {
+	public void updateModelBinding(EObject eObject) {
 		if (bindingContext != null)
 			bindingContext.dispose();
 		bindingContext = new EMFDataBindingContext();

+ 1 - 1
de.itemis.gmf.utils/plugins/de.itemis.gmf.runtime.commons/src/de/itemis/gmf/runtime/commons/properties/descriptors/IFormPropertyDescriptor.java

@@ -44,7 +44,7 @@ public interface IFormPropertyDescriptor {
 	/**
 	 * Creates the binding between UI and model
 	 */
-	void bindToModel(EObject eObject);
+	void updateModelBinding(EObject eObject);
 
 	/**
 	 * Disposes the UI related parts