Home » Modeling » UML2 » UML/EMX(Problem in creating Association between Classes of UML Diagram in RSM)
UML/EMX [message #509395] |
Fri, 22 January 2010 11:21 |
|
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 values, then opening diagram displays error message "IRJA0244E <Property> ......... must be named.", All Diagram changes is reverted not saved..
please help me out, If you have any idea.
Thanks in Advance
Regards,
Kishore
|
|
| |
Re: UML/EMX [message #510427 is a reply to message #509395] |
Wed, 27 January 2010 13:53 |
|
--=-HQAXUYUfbqrGyESaekVu
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Hi, Kishore,
This newsgroup covers the Eclipse UML2 implementation of the UML
metamodel and its SDK. This problem appears to be quite specific to the
IBM RSM product: the error codes, API, and diagram concerns will be
unfamiliar to the regulars in this newsgroup.
You should probably ask for help on IBM's RSM-dedicated forum:
http://www.ibm.com/developerworks/forums/forum.jspa?forumID= 430
Cheers,
Christian
On Fri, 2010-01-22 at 06:21 -0500, kishore wrote:
> 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 values, then opening diagram displays error message "IRJA0244E <Property> ......... must be named.", All Diagram changes is reverted not saved..
>
> please help me out, If you have any idea.
> Thanks in Advance
--=-HQAXUYUfbqrGyESaekVu
Content-Type: text/html; charset="utf-8"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.24.1.1">
</HEAD>
<BODY>
Hi, Kishore,<BR>
<BR>
This newsgroup covers the Eclipse UML2 implementation of the UML metamodel and its SDK. This problem appears to be quite specific to the IBM RSM product: the error codes, API, and diagram concerns will be unfamiliar to the regulars in this newsgroup.<BR>
<BR>
You should probably ask for help on IBM's RSM-dedicated forum:<BR>
<BR>
<A HREF=" http://www.ibm.com/developerworks/forums/forum.jspa?forumID= 430"> http://www.ibm.com/developerworks/forums/forum.jspa?forumID= 430</A><BR>
<BR>
Cheers,<BR>
<BR>
Christian<BR>
<BR>
<BR>
On Fri, 2010-01-22 at 06:21 -0500, kishore wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
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"
<A HREF=" http://www.ibm.com/developerworks/rational/library/08/0826_m akady/"> http://www.ibm.com/developerworks/rational/library/08/0826_m akady/</A>
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 values, then opening diagram displays error message "IRJA0244E <Property> ......... must be named.", All Diagram changes is reverted not saved..
please help me out, If you have any idea.
Thanks in Advance
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>
--=-HQAXUYUfbqrGyESaekVu--
|
|
| | |
Goto Forum:
Current Time: Thu Apr 25 16:56:47 GMT 2024
Powered by FUDForum. Page generated in 0.03066 seconds
|