From: Benjamin B. <bg...@us...> - 2005-03-18 08:02:58
|
Update of /cvsroot/sblim/ecute/Plugin/com/ibm/ecute/plugins/output/funcionality In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8426/Plugin/com/ibm/ecute/plugins/output/funcionality Modified Files: RoseREI.java Log Message: Index: RoseREI.java =================================================================== RCS file: /cvsroot/sblim/ecute/Plugin/com/ibm/ecute/plugins/output/funcionality/RoseREI.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- RoseREI.java 9 Dec 2004 15:03:33 -0000 1.5 +++ RoseREI.java 18 Mar 2005 08:02:49 -0000 1.6 @@ -298,15 +298,26 @@ if (lastRootClass == null) return; + AddClass2Diagram(lastRootClass, diagram); + + // set color of inheritance relationships "inherited" from other MOF files + Dispatch inheritRelations = Dispatch.call(lastRootClass, "GetInheritRelations").toDispatch(); + int size = Dispatch.get(inheritRelations, "Count").toInt(); + + for (int i = size; i > 0; i--) { + Dispatch relation = + Dispatch.call(inheritRelations, "GetAt", new Variant(i)).toDispatch(); + ChangeLineColor(diagram, relation, derived); + relation.release(); + } + inheritRelations.release(); //create inheritance and change colors String theRoot = Dispatch.get(lastRootClass, "Name").toString(); Dispatch InheritRel = Dispatch.call(lastClass, "AddInheritRel", "", theRoot).toDispatch(); - Dispatch.call(diagram, "AddRelationView", InheritRel); - //******************* ChangeLineColor(diagram, InheritRel, derived); @@ -398,9 +409,10 @@ void AddClass2Diagram(Object theClass, Object theDiagram) { Dispatch.call(theDiagram, "AddClass", theClass); + Dispatch theView = Dispatch.call(theDiagram, "GetClassView", theClass).toDispatch(); - + Dispatch.put(theView, "AutomaticResize", new Variant(false)); theView.release(); @@ -878,7 +890,11 @@ if (type == TCATEGORY) thisTab = catTab; - if (name.equalsIgnoreCase("Description")) { + if (name.equalsIgnoreCase("Abstract")) { + Dispatch.put(theElement, "Abstract", value); + Dispatch.call(lastObject,"OverrideProperty",thisTab,name,value); + + } else if (name.equalsIgnoreCase("Description")) { Dispatch.put(theElement, "Documentation", value); if (type == TCATEGORY) { |