Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Display a link inside compartment
Display a link inside compartment [message #169488] Wed, 23 January 2008 07:48 Go to next message
Eclipse UserFriend
Originally posted by: Andrey_Medvedev.epam.com

Hello all,

I have an EditPart (call it TP1) with a compartment, and I have a link
which has TP1 as source and as target also.
I need to show this link inside compartment of this TP1, but it renders on
the diagram, like this:
________
| TP1 |
--| |--
| -------- |<- link
| |
------------


How to do it like this:
________
| TP1 |
|------|
--------

As an example, if I adding a child to compartment and connecting it by
link (source: child, target: TP1) then it will render inside TP1 on the
compartment.

It's about some link rendering policies or other? Where to look?

Thank you.
Re: Display a link inside compartment [message #172174 is a reply to message #169488] Mon, 11 February 2008 11:18 Go to previous message
Eclipse UserFriend
Andrey,

This is handled by the connection router. If you search the
ObliqueRouter for "SelfRel" you will see where it is implemented.

Regards,
Cherie

Andrey Medvedev wrote:
> Hello all,
>
> I have an EditPart (call it TP1) with a compartment, and I have a link
> which has TP1 as source and as target also.
> I need to show this link inside compartment of this TP1, but it renders
> on the diagram, like this:
> ________
> | TP1 |
> --| |--
> | -------- |<- link
> | |
> ------------
>
>
> How to do it like this:
> ________
> | TP1 |
> |------|
> --------
>
> As an example, if I adding a child to compartment and connecting it by
> link (source: child, target: TP1) then it will render inside TP1 on the
> compartment.
>
> It's about some link rendering policies or other? Where to look?
>
> Thank you.
>
Previous Topic:intermittent missing or disappearing svg
Next Topic:Removing predefined context menu problem
Goto Forum:
  


Current Time: Sun May 11 06:49:32 EDT 2025

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

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

Back to the top