Author: dazarov
Date: 2007-07-11 11:56:54 -0400 (Wed, 11 Jul 2007)
New Revision: 2392
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/model/OrmShape.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/parts/ComponentShapeEditPart.java
Log:
http://jira.jboss.com/jira/browse/EXIN-367
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/model/OrmShape.java
===================================================================
---
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/model/OrmShape.java 2007-07-11
14:55:03 UTC (rev 2391)
+++
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/model/OrmShape.java 2007-07-11
15:56:54 UTC (rev 2392)
@@ -180,6 +180,10 @@
firePropertyChange(SET_HIDEN, null, new Boolean(hiden));
}
+ public void refreshReference(){
+ firePropertyChange(SET_HIDEN, null, new Boolean(hiden));
+ }
+
private void setElementHidden(ModelElement element, boolean hidden){
for (int i = 0; i < element.getChildren().size(); i++){
((Shape)element.getChildren().get(i)).setHiden(hidden);
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/parts/ComponentShapeEditPart.java
===================================================================
---
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/parts/ComponentShapeEditPart.java 2007-07-11
14:55:03 UTC (rev 2391)
+++
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/parts/ComponentShapeEditPart.java 2007-07-11
15:56:54 UTC (rev 2392)
@@ -29,6 +29,7 @@
import org.jboss.tools.hibernate.ui.veditor.editors.figures.TitleLabel;
import org.jboss.tools.hibernate.ui.veditor.editors.model.ComponentShape;
import org.jboss.tools.hibernate.ui.veditor.editors.model.OrmDiagram;
+import org.jboss.tools.hibernate.ui.veditor.editors.model.OrmShape;
public class ComponentShapeEditPart extends ExpandeableShapeEditPart {
@@ -71,7 +72,7 @@
figure.setSize(-1,-1);
refresh();
-// ((OrmDiagram)getParent().getModel()).setDirty(true);
+ ((OrmShape)getParent().getModel()).refreshReference();
} else {
super.propertyChange(evt);
}