Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Tigerstripe » UML/EMX(Problem in creating Association between Classes of UML Diagram in RSM)
UML/EMX [message #509407] Fri, 22 January 2010 11:48 Go to next message
Kishore Kushwaha is currently offline Kishore Kushwaha
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 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


Regards,
Kishore
Re: UML/EMX [message #510264 is a reply to message #509407] Tue, 26 January 2010 19:48 Go to previous messageGo to next message
Eric Dillon is currently offline Eric Dillon
Messages: 103
Registered: July 2009
Senior Member
Hi,

Not sure if this was cross-posted in multiple newsgroup, but I am afraid
this is not relevant to the Tigerstripe project.

Sorry we can't help here.
Eric


On 1/22/10 3:48 AM, in article hjc39o$drm$1@build.eclipse.org, "kishore"
<kishore_74_lko@yahoo.com> 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 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
Re: UML/EMX [message #510388 is a reply to message #509407] Wed, 27 January 2010 12:30 Go to previous messageGo to next message
Kishore Kushwaha is currently offline Kishore Kushwaha
Messages: 36
Registered: July 2009
Location: Lucknow, India
Member

Ok
Thanks Buddy.


Regards,
Kishore

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

Report message to a moderator

Re: UML/EMX [message #510410 is a reply to message #510388] Wed, 27 January 2010 13:14 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 26088
Registered: July 2009
Senior Member
Kishore,

Please don't cross post the same question to multiple groups and pay
attention when Eric explains that this newsgroup isn't an appropriate
forum for your question.


Kishore Kushwaha wrote:
>
>
> Will anybody don't know about me problem??
>
>
>
Re: UML/EMX [message #564831 is a reply to message #509407] Wed, 27 January 2010 00:38 Go to previous message
Eric Dillon is currently offline Eric Dillon
Messages: 103
Registered: July 2009
Senior Member
Hi,

Not sure if this was cross-posted in multiple newsgroup, but I am afraid
this is not relevant to the Tigerstripe project.

Sorry we can't help here.
Eric


On 1/22/10 3:48 AM, in article hjc39o$drm$1@build.eclipse.org, "kishore"
<kishore_74_lko@yahoo.com> 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 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
Re: UML/EMX [message #564846 is a reply to message #509407] Wed, 27 January 2010 12:30 Go to previous message
Kishore Kushwaha is currently offline Kishore Kushwaha
Messages: 36
Registered: July 2009
Location: Lucknow, India
Member

Will anybody don't know about me problem??



--
Regards,
Kishore


Regards,
Kishore
Re: UML/EMX [message #564870 is a reply to message #564846] Wed, 27 January 2010 13:14 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 26088
Registered: July 2009
Senior Member
Kishore,

Please don't cross post the same question to multiple groups and pay
attention when Eric explains that this newsgroup isn't an appropriate
forum for your question.


Kishore Kushwaha wrote:
>
>
> Will anybody don't know about me problem??
>
>
>
Previous Topic:UML/EMX
Next Topic:[Announce] Eclipse/OMG Symposium 2010
Goto Forum:
  


Current Time: Wed Oct 01 22:35:14 GMT 2014

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

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