Author: dazarov
Date: 2007-07-31 11:13:55 -0400 (Tue, 31 Jul 2007)
New Revision: 2767
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/ExpandeableShapeEditPart.java
Log:
http://jira.jboss.com/jira/browse/EXIN-365
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-31
15:12:53 UTC (rev 2766)
+++
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/parts/ComponentShapeEditPart.java 2007-07-31
15:13:55 UTC (rev 2767)
@@ -59,17 +59,8 @@
public void activate() {
super.activate();
if(this.getClass().equals(ComponentShapeEditPart.class) &&
!((ExpandeableShape)getModel()).isReferenceVisible()){
+ ((ComponentShape)getModel()).refHide = true;
((ComponentShape)getModel()).refreshChildsHiden(((OrmDiagram)getViewer().getContents().getModel()));
- /*int i = figure.getPreferredSize().width;
- ((ComponentFigure)figure).setChildsHiden(true);
-
- figure.setSize(i,-1);
-
- referenceList.add((OrmShape)getCastedModel().getParent());
- refreshReference((ExpandeableShape)getCastedModel(),
((ExpandeableShape)getCastedModel()).isReferenceVisible());
-
-
- ((OrmShape)getParent().getModel()).refreshReference();*/
}
}
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/parts/ExpandeableShapeEditPart.java
===================================================================
---
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/parts/ExpandeableShapeEditPart.java 2007-07-31
15:12:53 UTC (rev 2766)
+++
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/parts/ExpandeableShapeEditPart.java 2007-07-31
15:13:55 UTC (rev 2767)
@@ -58,8 +58,6 @@
if(this.getClass().equals(ExpandeableShapeEditPart.class) &&
!((ExpandeableShape)getModel()).isReferenceVisible()){
((ExpandeableShape)getModel()).refHide = true;
((ExpandeableShape)getModel()).refreshReferences(getViewer().getContents().getModel());
- //refreshReferences((Shape)getCastedModel(),
((ExpandeableShape)getCastedModel()).isReferenceVisible());
- //((TitleLabel)getFigure()).setHidden(true);
}
}