Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Sapphire » Connection is not shown in diagram with abstract types
Connection is not shown in diagram with abstract types [message #1691185] Thu, 02 April 2015 23:35 Go to next message
Tomáš Milata is currently offline Tomáš MilataFriend
Messages: 15
Registered: March 2015
Junior Member
Hi,

my model looks like this: I have a Base type and two derived types extending Base (Derived1, Derived2). Both derived types contain list of Next types which have a reference by id to a Base element.

Now when I try to add a connection to this XML using diagram editor:
<Root>
    <derived1 id="d1"></derived1>
    <derived2 id="d2"></derived2>
</Root>

(from d1 to d2), the connection is generated correctly in the XML:
<Root>
    <derived1 id="d1">
        <next>
            <to>d2</to>
        </next>
    </derived1>
    <derived2 id="d2"></derived2>
</Root>

The diagram, however, displays no connetion.

When I close the editor and reopen it, then the connection is visible. But it cannot be deleted (is removed correctly from xml but not from diagram).

I have provided a minimal runnable example on https://github.com/tomas-milata/SapphireExample.

Am I doing something wrong in the code or this might be a bug?

[Updated on: Fri, 03 April 2015 20:15]

Report message to a moderator

Re: Connection is not shown in diagram with abstract types [message #1691232 is a reply to message #1691185] Fri, 03 April 2015 15:56 Go to previous messageGo to next message
Shenxue Zhou is currently offline Shenxue ZhouFriend
Messages: 60
Registered: July 2009
Member
I've imported your project and confirmed the issue you're seeing. I'm investigating...
Re: Connection is not shown in diagram with abstract types [message #1691246 is a reply to message #1691232] Fri, 03 April 2015 20:23 Go to previous messageGo to next message
Tomáš Milata is currently offline Tomáš MilataFriend
Messages: 15
Registered: March 2015
Junior Member
Great, thanks. I can provide some more details if needed.
Re: Connection is not shown in diagram with abstract types [message #1691251 is a reply to message #1691232] Fri, 03 April 2015 23:06 Go to previous messageGo to next message
Shenxue Zhou is currently offline Shenxue ZhouFriend
Messages: 60
Registered: July 2009
Member
It's indeed a bug. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=463917

The fix has been checked into both 8.2 and master branch. Please give it try.

Thanks,

Shenxue
Re: Connection is not shown in diagram with abstract types [message #1691255 is a reply to message #1691251] Fri, 03 April 2015 23:40 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
https://hudson.eclipse.org/sapphire/job/8.2.x/
Re: Connection is not shown in diagram with abstract types [message #1691293 is a reply to message #1691255] Sat, 04 April 2015 19:43 Go to previous messageGo to next message
Tomáš Milata is currently offline Tomáš MilataFriend
Messages: 15
Registered: March 2015
Junior Member
Thanks a lot for this quick fix. Now it seems to be behaving correctly.

My thesis kind of depends on feature (: so it has helped me a lot.
Re: Connection is not shown in diagram with abstract types [message #1691301 is a reply to message #1691293] Sun, 05 April 2015 03:53 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
Great! Would you mind adding a comment stating that you've verified the fix in the bug? That way we can close the bug.
Re: Connection is not shown in diagram with abstract types [message #1691310 is a reply to message #1691301] Sun, 05 April 2015 13:08 Go to previous message
Tomáš Milata is currently offline Tomáš MilataFriend
Messages: 15
Registered: March 2015
Junior Member
No problem. Added https://bugs.eclipse.org/bugs/show_bug.cgi?id=463917#c2
Previous Topic:How to model diagram connections using xml attributes
Next Topic:Any way to avoid wiping data in PropertyEditor with "Restore Defaults"?
Goto Forum:
  


Current Time: Thu Dec 05 06:08:26 GMT 2024

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

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

Back to the top