Connection happens only for first linking mapping [message #220196] |
Fri, 27 February 2009 10:37 |
|
Hello All.
This is the same problem as my previous post of link mapping
I have some figures of different types and I like to connect them with one
ConnectionLine. I have certain sources and targets for each figure in
link element,
And I create pairs of LinkMappings, like this:
linkMapping{
source:link.sourceNode1;
target:link.targetNode2;
}
linkMapping{
source:link.sourceNode1;
target:link.targetNode3;
}
linkMapping{
source:link.sourceNode2;
target:link.targetNode3;
}
linkMapping{
source:link.sourceNode2;
target:link.targetNode1;
}
and on.
For each mapping I specify the same tool creation and diagram link.
When I try to create link all works good for first link mapping, but for
others only record in model file is created but graphical line isn't drawn.
I used the same model files of previous version 1.0
now i have gmf version 2.13
Its gives the same execution exception
Regards
Govind R
|
|
|
|
|
|
Re: Connection happens only for first linking mapping [message #220708 is a reply to message #220366] |
Fri, 06 March 2009 13:33 |
|
Hi All,
I found a change in getEdgeViewClass(IAdaptable semanticAdapter,
View containerView, String semanticHint) method of xxxViewProvider
where
semanticHint conditions are checked which are not in previous version.
Previous version:-
EClass semanticType = getSemanticEClass(semanticAdapter);
if (semanticType == null) {
return null;
}
EObject semanticElement = getSemanticElement(semanticAdapter);
int linkVID = XXXVisualIDRegistry
.getLinkWithClassVisualID(semanticElement, semanticType);
New Version:-
EObject domainElement = getSemanticElement(semanticAdapter);
if (domainElement != null
&& visualID != SignaturebuilderVisualIDRegistry
.getLinkWithClassVisualID(domainElement)) {
System.out.println("It come here for next links :::;");
return null; // visual id for link EClass should match visual id from
element type
}
return getEdgeViewClass(visualID);
Regards
Govind
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01661 seconds