Home » Archived » Tigerstripe » UML/EMX(Problem in creating Association between Classes of UML Diagram in RSM)
UML/EMX [message #509407] |
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
|
|
|
Re: UML/EMX [message #510264 is a reply to message #509407] |
Tue, 26 January 2010 19:48   |
Eclipse User |
|
|
|
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 #510410 is a reply to message #510388] |
Wed, 27 January 2010 13:14  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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 #564870 is a reply to message #564846] |
Wed, 27 January 2010 13:14  |
Eclipse User |
|
|
|
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??
>
>
>
|
|
|
Goto Forum:
Current Time: Mon Feb 10 04:52:53 GMT 2025
Powered by FUDForum. Page generated in 0.02460 seconds
|