Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » UML/EMX(Problem in creating Association between Classes of UML Diagram in RSM)
icon12.gif  UML/EMX [message #509395] Fri, 22 January 2010 11:21 Go to next message
Kishore Kushwaha is currently offline Kishore KushwahaFriend
Messages: 36
Registered: July 2009
Location: Lucknow, India
Member

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 #510391 is a reply to message #509395] Wed, 27 January 2010 12:36 Go to previous messageGo to next message
Kishore Kushwaha is currently offline Kishore KushwahaFriend
Messages: 36
Registered: July 2009
Location: Lucknow, India
Member



Has anyone idea about my problem??



Regards,
Kishore

[Updated on: Wed, 27 January 2010 12:41]

Report message to a moderator

Re: UML/EMX [message #510427 is a reply to message #509395] Wed, 27 January 2010 13:53 Go to previous messageGo to next message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
Senior Member

--=-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.&nbsp; This problem appears to be quite specific to the IBM RSM product:&nbsp; 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 &quot;Generating UML models programmatically by using IBM Rational Software Architect&quot;

<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 &amp; end2Name arguments have empty values, then opening diagram displays error message &quot;IRJA0244E &lt;Property&gt; ......... must be named.&quot;, All Diagram changes is reverted not saved..

please help me out, If you have any idea.
Thanks in Advance
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>

--=-HQAXUYUfbqrGyESaekVu--
Re: UML/EMX [message #510627 is a reply to message #510427] Thu, 28 January 2010 05:18 Go to previous messageGo to next message
Kishore Kushwaha is currently offline Kishore KushwahaFriend
Messages: 36
Registered: July 2009
Location: Lucknow, India
Member

Thanks Christian for suggestion.


Regards,
Kishore
Re: UML/EMX [message #628209 is a reply to message #510427] Thu, 28 January 2010 05:18 Go to previous message
Kishore Kushwaha is currently offline Kishore KushwahaFriend
Messages: 36
Registered: July 2009
Location: Lucknow, India
Member

Thanks Christian for suggestion.

--
Regards,
Kishore


Regards,
Kishore
Previous Topic:UML/EMX
Next Topic:Exchange Model object
Goto Forum:
  


Current Time: Thu Apr 25 16:56:47 GMT 2024

Powered by FUDForum. Page generated in 0.03066 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top