Home » Modeling » GMF (Graphical Modeling Framework) » Multiple links in mindmap example
Multiple links in mindmap example [message #49379] |
Sun, 17 September 2006 09:42 |
Eclipse User |
|
|
|
Originally posted by: alexander.schwartzonline.de
Hi,
I have a problem with GMF (version 1.0.0.v200606261119 from the Callisto
update site) and the mindmap example (from the zip from the mindmap
tutorial page):
When I insert an Includes connection between two Topic nodes
I obtain two diagram links instead of a single one.
One has the correct label 'includes' the other one is unlabeled.
Any hints?
Alex
|
|
| |
Re: Multiple links in mindmap example [message #50401 is a reply to message #49617] |
Mon, 18 September 2006 22:34 |
Eclipse User |
|
|
|
Originally posted by: alexander.schwartzonline.de
Hi Madanagopal,
> This issue is discussed previously. Please search for this thread "Link
> Mapping - Single Connector for all Figures"
>
> It will help.
>
Thanks for your hint. The suggested solution works: only one link is
inserted as expected.
But there is a little problem left; my link object is missing its label.
The diagram link souhld look like as follows.
<edges xmi:type="notation:Edge" xmi:id="_0MUmMEdiEdu3qOjSl4MqCA"
type="3003" source="_YeaUsEdiEdu3qOjSl4MqCA"
target="_YSYq4EdiEdu3qOjSl4MqCA">
<children xmi:type="notation:Node" xmi:id="_0MUmNUdiEdu3qOjSl4MqCA"
type="4003">
<layoutConstraint xmi:type="notation:Location"
xmi:id="_0MUmNkdiEdu3qOjSl4MqCA" y="40"/>
</children>
<styles xmi:type="notation:RoutingStyle"
xmi:id="_0MUmMUdiEdu3qOjSl4MqCA"/>
<styles xmi:type="notation:FontStyle"
xmi:id="_0MUmMkdiEdu3qOjSl4MqCA"/>
<styles xmi:type="notation:LineStyle"
xmi:id="_0MUmM0diEdu3qOjSl4MqCA"/>
<element xmi:type="simpleusecase:UseCaseAssociation"
href="default2.simpleusecase#//@associations.1"/>
<bendpoints xmi:type="notation:RelativeBendpoints"
xmi:id="_0MUmNEdiEdu3qOjSl4MqCA" points="[11, -23, -54, 155]$[115, -176,
50, 2]"/>
<sourceAnchor xmi:type="notation:IdentityAnchor"
xmi:id="_0MUmN0diEdu3qOjSl4MqCA" id="(0.78,0.575)"/>
</edges>
Unfortunately the <children> element is not inserted in the diagram.
Any further hints?
Yours,
Alex
|
|
|
Re: Multiple links in mindmap example [message #50512 is a reply to message #50401] |
Tue, 19 September 2006 05:47 |
Eclipse User |
|
|
|
Originally posted by: alexander.schwartzonline.de
Hi,
>
>> This issue is discussed previously. Please search for this thread
>> "Link Mapping - Single Connector for all Figures"
>>
>> It will help.
>>
>
> Thanks for your hint. The suggested solution works: only one link is
> inserted as expected.
>
> But there is a little problem left; my link object is missing its label.
> The diagram link souhld look like as follows.
>
I examined two solutions, namely (1) changing
MapCanonicalEditPolicy.refreshConnections as suggested in
http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/m sg00476.html
and (2) adding MapCanonicalEditPolicy.shouldHandleNotificationEvent
https://bugs.eclipse.org/bugs/show_bug.cgi?id=148021.
Both approches a partial solution to the problem: Only one link is
inserted, but its label is missing.
Comment #9 from Alex Shatalin in the bugzilla entry
https://bugs.eclipse.org/bugs/show_bug.cgi?id=148021 mentions that there
is a modified zip for the mindmap tutorial:
> Answer to #8:
> After small investigation, we have updated projects stored under
> http://www.eclipse.org/gmf/tutorial/mindmap_tutorial_2.zip. From now generated
> code works correctly without any changes with the models from the tutorial. You
> can re-load mindmap_tutorial_2.zip – links should not be duplicated anymore.
>
> Thank you for reporting this problem and do not hesitate to reiterate this
> thread if you found any additional errors.
I re-load mindmap_tutorial_2.zip (and mindmap_tutorial_3.zip) but the
fix does not work, the mindmap tutorial still produced dublicate links
(without an lables).
-- Alex
|
|
| |
Re: Multiple links in mindmap example [message #51527 is a reply to message #50622] |
Tue, 19 September 2006 22:21 |
Eclipse User |
|
|
|
Originally posted by: alexander.schwartzonline.de
This is a multi-part message in MIME format.
--------------020701040209040703060500
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Hello Alex,
>
> I've just installed mindmap example from
> http://www.eclipse.org/gmf/tutorial/mindmap_tutorial_2.zip into my 1.0
> installation - includes link works correctly. Please, check that you've
> updated mindmap sample. The problem you’ve reported was fixed in mindmap
> sample and current .zip file should contain corrected sources.
>
Ok, I tried again to reproduce the problem.
I installed the current version of the mindmap example from the
specified URL in a fresh Eclipse 3.2 SDK (windows) with the Callisto
version of GMF 1.0 and its prereqs.
(To verify whether I am using the correct version of the file
mindmap_tutorial_2.zip: The size of the file is 641.654 bytes and its
md5 checksum is 3b575f22cd2577563f5d4612c78fe5f7.)
The result:
The "includes" links in the mindmap diagram editor are working fine,
but "extends" links are broken. Adding an "extends" link
inserts two parallel links without labels.
(I attached the model files representing a tiny example with two Topic
nodes with a correct "includes" link and a broken "extends" link.)
BTW, are you working with Mac OS X?
Yours,
Alex
--------------020701040209040703060500
Content-Type: text/xml;
name="default.mindmap_diagram"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="default.mindmap_diagram"
<?xml version="1.0" encoding="UTF-8"?>
<notation:Diagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:mindmap="http://www.example.org/mindmap" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.0/notation" xmi:id="_xlfxAEgqEduPs5m4Idkdgg" type="Mindmap" name="default.mindmap_diagram" measurementUnit="Pixel">
<children xmi:type="notation:Node" xmi:id="_yhkXsEgqEduPs5m4Idkdgg" type="2001">
<children xmi:type="notation:Node" xmi:id="_yhkXtkgqEduPs5m4Idkdgg" type="5002"/>
<children xmi:type="notation:Node" xmi:id="_yhrFYEgqEduPs5m4Idkdgg" type="7001">
<styles xmi:type="notation:DrawerStyle" xmi:id="_yhrFYUgqEduPs5m4Idkdgg"/>
<styles xmi:type="notation:SortingStyle" xmi:id="_yhrFYkgqEduPs5m4Idkdgg"/>
<styles xmi:type="notation:FilteringStyle" xmi:id="_yhrFY0gqEduPs5m4Idkdgg"/>
</children>
<styles xmi:type="notation:FontStyle" xmi:id="_yhkXsUgqEduPs5m4Idkdgg"/>
<styles xmi:type="notation:DescriptionStyle" xmi:id="_yhkXskgqEduPs5m4Idkdgg"/>
<styles xmi:type="notation:FillStyle" xmi:id="_yhkXs0gqEduPs5m4Idkdgg"/>
<styles xmi:type="notation:LineStyle" xmi:id="_yhkXtEgqEduPs5m4Idkdgg"/>
<element xmi:type="mindmap:Topic" href="default.mindmap#//@map/@rootTopics.0"/>
<layoutConstraint xmi:type="notation:Bounds" xmi:id="_yhkXtUgqEduPs5m4Idkdgg" x="312" y="228"/>
</children>
<children xmi:type="notation:Node" xmi:id="_zkz9YEgqEduPs5m4Idkdgg" type="2001">
<children xmi:type="notation:Node" xmi:id="_zk6EAEgqEduPs5m4Idkdgg" type="5002"/>
<children xmi:type="notation:Node" xmi:id="_zk6EAUgqEduPs5m4Idkdgg" type="7001">
<styles xmi:type="notation:DrawerStyle" xmi:id="_zk6EAkgqEduPs5m4Idkdgg"/>
<styles xmi:type="notation:SortingStyle" xmi:id="_zk6EA0gqEduPs5m4Idkdgg"/>
<styles xmi:type="notation:FilteringStyle" xmi:id="_zk6EBEgqEduPs5m4Idkdgg"/>
</children>
<styles xmi:type="notation:FontStyle" xmi:id="_zkz9YUgqEduPs5m4Idkdgg"/>
<styles xmi:type="notation:DescriptionStyle" xmi:id="_zkz9YkgqEduPs5m4Idkdgg"/>
<styles xmi:type="notation:FillStyle" xmi:id="_zkz9Y0gqEduPs5m4Idkdgg"/>
<styles xmi:type="notation:LineStyle" xmi:id="_zkz9ZEgqEduPs5m4Idkdgg"/>
<element xmi:type="mindmap:Topic" href="default.mindmap#//@map/@rootTopics.1"/>
<layoutConstraint xmi:type="notation:Bounds" xmi:id="_zkz9ZUgqEduPs5m4Idkdgg" x="72" y="216"/>
</children>
<styles xmi:type="notation:PageStyle" xmi:id="_xlfxAUgqEduPs5m4Idkdgg"/>
<styles xmi:type="notation:GuideStyle" xmi:id="_xlfxAkgqEduPs5m4Idkdgg"/>
<styles xmi:type="notation:DescriptionStyle" xmi:id="_xlfxA0gqEduPs5m4Idkdgg"/>
<element xmi:type="mindmap:Map" href="default.mindmap#//@map"/>
<edges xmi:type="notation:Edge" xmi:id="_1RfhoEgqEduPs5m4Idkdgg" type="4003" source="_zkz9YEgqEduPs5m4Idkdgg" target="_yhkXsEgqEduPs5m4Idkdgg">
<children xmi:type="notation:Node" xmi:id="_1RfhpUgqEduPs5m4Idkdgg" type="6002">
<layoutConstraint xmi:type="notation:Location" xmi:id="_1RfhpkgqEduPs5m4Idkdgg" x="41" y="41"/>
</children>
<styles xmi:type="notation:RoutingStyle" xmi:id="_1RfhoUgqEduPs5m4Idkdgg"/>
<styles xmi:type="notation:FontStyle" xmi:id="_1RfhokgqEduPs5m4Idkdgg"/>
<styles xmi:type="notation:LineStyle" xmi:id="_1Rfho0gqEduPs5m4Idkdgg"/>
<element xmi:type="mindmap:Relationship" href="default.mindmap#//@map/@relations.0"/>
<bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_1RfhpEgqEduPs5m4Idkdgg" points="[7, -6, -228, -15]$[126, -101, -109, -110]$[232, 6, -3, -3]"/>
<sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1SKQAEgqEduPs5m4Idkdgg" id="(0.30357143,0.15)"/>
<targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1SKQAUgqEduPs5m4Idkdgg" id="(0.21052632,0.075)"/>
</edges>
<edges xmi:type="notation:Edge" xmi:id="_2bgdsEgqEduPs5m4Idkdgg" type="4002" source="_yhkXsEgqEduPs5m4Idkdgg" target="_zkz9YEgqEduPs5m4Idkdgg">
<styles xmi:type="notation:RoutingStyle" xmi:id="_2bgdsUgqEduPs5m4Idkdgg"/>
<styles xmi:type="notation:FontStyle" xmi:id="_2bgdskgqEduPs5m4Idkdgg"/>
<styles xmi:type="notation:LineStyle" xmi:id="_2bgds0gqEduPs5m4Idkdgg"/>
<element xmi:type="mindmap:Relationship" href="default.mindmap#//@map/@relations.1"/>
<bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_2bgdtEgqEduPs5m4Idkdgg" points="[-28, -3, 205, 21]$[-228, -32, 5, -8]"/>
<targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_2b44MEgqEduPs5m4Idkdgg" id="(0.625,0.2)"/>
</edges>
</notation:Diagram>
--------------020701040209040703060500
Content-Type: text/xml;
name="default.mindmap"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="default.mindmap"
<?xml version="1.0" encoding="UTF-8"?>
<mindmap:map xmlns:mindmap="http://www.example.org/mindmap">
<rootTopics name="TopicA"/>
<rootTopics name="TopicB"/>
<relations label="includes" source="#//@map/@rootTopics.1" target="#//@map/@rootTopics.0" type="INCLUDES"/>
<relations source="#//@map/@rootTopics.0" target="#//@map/@rootTopics.1"/>
</mindmap:map>
--------------020701040209040703060500--
|
|
| |
Re: Multiple links in mindmap example [message #51832 is a reply to message #51527] |
Wed, 20 September 2006 10:45 |
Richard Gronback Messages: 605 Registered: July 2009 |
Senior Member |
|
|
Hi Alex,
It seems there is a problem with the tutorial step 2 solution zip files, so
if you can use the final solution files, or get the latest from the 1.0.1
maintenance branch from CVS, it should work correctly. I'll be updating the
tutorial soon for the 2.0 stream, and will likely remove these intermediate
solution files.
Thanks,
Rich
On 9/20/06 12:21 AM, in article eepqg6$39d$1@utils.eclipse.org, "Alex
Schwartz" <alexander@schwartzonline.de> wrote:
> Hello Alex,
>
>
>>
>> I've just installed mindmap example from
>> http://www.eclipse.org/gmf/tutorial/mindmap_tutorial_2.zip into my 1.0
>> installation - includes link works correctly. Please, check that you've
>> updated mindmap sample. The problem you¹ve reported was fixed in mindmap
>> sample and current .zip file should contain corrected sources.
>>
>
> Ok, I tried again to reproduce the problem.
> I installed the current version of the mindmap example from the
> specified URL in a fresh Eclipse 3.2 SDK (windows) with the Callisto
> version of GMF 1.0 and its prereqs.
> (To verify whether I am using the correct version of the file
> mindmap_tutorial_2.zip: The size of the file is 641.654 bytes and its
> md5 checksum is 3b575f22cd2577563f5d4612c78fe5f7.)
>
> The result:
> The "includes" links in the mindmap diagram editor are working fine,
> but "extends" links are broken. Adding an "extends" link
> inserts two parallel links without labels.
> (I attached the model files representing a tiny example with two Topic
> nodes with a correct "includes" link and a broken "extends" link.)
>
> BTW, are you working with Mac OS X?
>
>
>
> Yours,
>
> Alex
> <?xml version="1.0" encoding="UTF-8"?>
> <notation:Diagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
> xmlns:mindmap="http://www.example.org/mindmap"
> xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.0/notation"
> xmi:id="_xlfxAEgqEduPs5m4Idkdgg" type="Mindmap" name="default.mindmap_diagram"
> measurementUnit="Pixel">
> <children xmi:type="notation:Node" xmi:id="_yhkXsEgqEduPs5m4Idkdgg"
> type="2001">
> <children xmi:type="notation:Node" xmi:id="_yhkXtkgqEduPs5m4Idkdgg"
> type="5002"/>
> <children xmi:type="notation:Node" xmi:id="_yhrFYEgqEduPs5m4Idkdgg"
> type="7001">
> <styles xmi:type="notation:DrawerStyle"
> xmi:id="_yhrFYUgqEduPs5m4Idkdgg"/>
> <styles xmi:type="notation:SortingStyle"
> xmi:id="_yhrFYkgqEduPs5m4Idkdgg"/>
> <styles xmi:type="notation:FilteringStyle"
> xmi:id="_yhrFY0gqEduPs5m4Idkdgg"/>
> </children>
> <styles xmi:type="notation:FontStyle" xmi:id="_yhkXsUgqEduPs5m4Idkdgg"/>
> <styles xmi:type="notation:DescriptionStyle"
> xmi:id="_yhkXskgqEduPs5m4Idkdgg"/>
> <styles xmi:type="notation:FillStyle" xmi:id="_yhkXs0gqEduPs5m4Idkdgg"/>
> <styles xmi:type="notation:LineStyle" xmi:id="_yhkXtEgqEduPs5m4Idkdgg"/>
> <element xmi:type="mindmap:Topic"
> href="default.mindmap#//@map/@rootTopics.0"/>
> <layoutConstraint xmi:type="notation:Bounds"
> xmi:id="_yhkXtUgqEduPs5m4Idkdgg" x="312" y="228"/>
> </children>
> <children xmi:type="notation:Node" xmi:id="_zkz9YEgqEduPs5m4Idkdgg"
> type="2001">
> <children xmi:type="notation:Node" xmi:id="_zk6EAEgqEduPs5m4Idkdgg"
> type="5002"/>
> <children xmi:type="notation:Node" xmi:id="_zk6EAUgqEduPs5m4Idkdgg"
> type="7001">
> <styles xmi:type="notation:DrawerStyle"
> xmi:id="_zk6EAkgqEduPs5m4Idkdgg"/>
> <styles xmi:type="notation:SortingStyle"
> xmi:id="_zk6EA0gqEduPs5m4Idkdgg"/>
> <styles xmi:type="notation:FilteringStyle"
> xmi:id="_zk6EBEgqEduPs5m4Idkdgg"/>
> </children>
> <styles xmi:type="notation:FontStyle" xmi:id="_zkz9YUgqEduPs5m4Idkdgg"/>
> <styles xmi:type="notation:DescriptionStyle"
> xmi:id="_zkz9YkgqEduPs5m4Idkdgg"/>
> <styles xmi:type="notation:FillStyle" xmi:id="_zkz9Y0gqEduPs5m4Idkdgg"/>
> <styles xmi:type="notation:LineStyle" xmi:id="_zkz9ZEgqEduPs5m4Idkdgg"/>
> <element xmi:type="mindmap:Topic"
> href="default.mindmap#//@map/@rootTopics.1"/>
> <layoutConstraint xmi:type="notation:Bounds"
> xmi:id="_zkz9ZUgqEduPs5m4Idkdgg" x="72" y="216"/>
> </children>
> <styles xmi:type="notation:PageStyle" xmi:id="_xlfxAUgqEduPs5m4Idkdgg"/>
> <styles xmi:type="notation:GuideStyle" xmi:id="_xlfxAkgqEduPs5m4Idkdgg"/>
> <styles xmi:type="notation:DescriptionStyle"
> xmi:id="_xlfxA0gqEduPs5m4Idkdgg"/>
> <element xmi:type="mindmap:Map" href="default.mindmap#//@map"/>
> <edges xmi:type="notation:Edge" xmi:id="_1RfhoEgqEduPs5m4Idkdgg" type="4003"
> source="_zkz9YEgqEduPs5m4Idkdgg" target="_yhkXsEgqEduPs5m4Idkdgg">
> <children xmi:type="notation:Node" xmi:id="_1RfhpUgqEduPs5m4Idkdgg"
> type="6002">
> <layoutConstraint xmi:type="notation:Location"
> xmi:id="_1RfhpkgqEduPs5m4Idkdgg" x="41" y="41"/>
> </children>
> <styles xmi:type="notation:RoutingStyle"
> xmi:id="_1RfhoUgqEduPs5m4Idkdgg"/>
> <styles xmi:type="notation:FontStyle" xmi:id="_1RfhokgqEduPs5m4Idkdgg"/>
> <styles xmi:type="notation:LineStyle" xmi:id="_1Rfho0gqEduPs5m4Idkdgg"/>
> <element xmi:type="mindmap:Relationship"
> href="default.mindmap#//@map/@relations.0"/>
> <bendpoints xmi:type="notation:RelativeBendpoints"
> xmi:id="_1RfhpEgqEduPs5m4Idkdgg" points="[7, -6, -228, -15]$[126, -101, -109,
> -110]$[232, 6, -3, -3]"/>
> <sourceAnchor xmi:type="notation:IdentityAnchor"
> xmi:id="_1SKQAEgqEduPs5m4Idkdgg" id="(0.30357143,0.15)"/>
> <targetAnchor xmi:type="notation:IdentityAnchor"
> xmi:id="_1SKQAUgqEduPs5m4Idkdgg" id="(0.21052632,0.075)"/>
> </edges>
> <edges xmi:type="notation:Edge" xmi:id="_2bgdsEgqEduPs5m4Idkdgg" type="4002"
> source="_yhkXsEgqEduPs5m4Idkdgg" target="_zkz9YEgqEduPs5m4Idkdgg">
> <styles xmi:type="notation:RoutingStyle"
> xmi:id="_2bgdsUgqEduPs5m4Idkdgg"/>
> <styles xmi:type="notation:FontStyle" xmi:id="_2bgdskgqEduPs5m4Idkdgg"/>
> <styles xmi:type="notation:LineStyle" xmi:id="_2bgds0gqEduPs5m4Idkdgg"/>
> <element xmi:type="mindmap:Relationship"
> href="default.mindmap#//@map/@relations.1"/>
> <bendpoints xmi:type="notation:RelativeBendpoints"
> xmi:id="_2bgdtEgqEduPs5m4Idkdgg" points="[-28, -3, 205, 21]$[-228, -32, 5,
> -8]"/>
> <targetAnchor xmi:type="notation:IdentityAnchor"
> xmi:id="_2b44MEgqEduPs5m4Idkdgg" id="(0.625,0.2)"/>
> </edges>
> </notation:Diagram>
> <?xml version="1.0" encoding="UTF-8"?>
> <mindmap:map xmlns:mindmap="http://www.example.org/mindmap">
> <rootTopics name="TopicA"/>
> <rootTopics name="TopicB"/>
> <relations label="includes" source="#//@map/@rootTopics.1"
> target="#//@map/@rootTopics.0" type="INCLUDES"/>
> <relations source="#//@map/@rootTopics.0" target="#//@map/@rootTopics.1"/>
> </mindmap:map>
|
|
|
Goto Forum:
Current Time: Thu Dec 26 17:55:36 GMT 2024
Powered by FUDForum. Page generated in 0.03462 seconds
|