UML/EMX [message #564813] |
Fri, 22 January 2010 11:48 |
Eclipse User |
|
|
|
Hi All;
I am trying to create Class Diagram in RSM programatically by APIs suggested in topic "Generating UML models programmatically by using IBM Rational Software Architect"
http://www.ibm.com/developerworks/rational/library/08/0826_m akady/
Every thing is working fine except UML Association between Classes. The code snippets are as....
IUMLDiagramHelper diagramHelper = UMLModeler.getUMLDiagramHelper();
Diagram diagram = diagramHelper.createDiagram(model, UMLDiagramKind.CLASS_LITERAL);
Class mainClass, subClass;
Node mainNode, subNode;
..........................................................
.........................................................
Association association = mainClass.createAssociation( end1IsNavigable, end1Aggregation, end1Name,
end1LowerBound, end1UpperBound, type2, end2IsNavigable,
end2Aggregation, end2Name, end2LowerBound, end2UpperBound);
diagramHelper.createEdge(mainNode, subNode, association);
When end1Name & end2Name arguments have empty value, then opening diagram displays error message "IRJA0244E <Property> ......... must be named.", All changes is reverted, & not saved automatically..
But same Association object is fine with Eclispe 3.4 UML Class diagram..
please help me out, If you have any idea.
Thanks in Advance
|
|
|
Powered by
FUDForum. Page generated in 0.02845 seconds