Compartment - Connection - Layout [message #143585] |
Fri, 20 July 2007 14:39 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Jacques LESCOT![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=jlescot%40sierrawireless.com) Messages: 247 Registered: July 2009 |
Senior Member |
|
|
This is a multi-part message in MIME format.
--------------070602090505040403010100
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Hi,
I am facing a dilemna for using a layout type in my compartment.
Here is a brief description of what I am trying to do : I have a
MultiPort that may contain many Ports. The MultiPort could be open (all
the contained Ports are visible) or closed (all the Ports are hidden).
This works well with the compartment behavior.
Then, these Ports can be connected between themselves : when the
MultiPort is open, the links should be present, and when it is closed,
they should be either hidden or all connected to the same anchor of the
closed Compartment :
1. when I choose a Compartment without List type, those links are hidden
(they could be still visible by customizing the ConnectionRefreshMgr
inner class in the ShapeCompartmentEditPart). The problem is that I
would like to layout these Ports in a vertical ToolbarLayout, but the
default layout in a ShapeCompartmentEditPart must be a FreeformLayout as
I understand. Is there a way to avoid this ?
2. when I choose a Compartment with List type, those links are always
present, even if the Compartment is closed (see the attached image).
This would better suit my needs, but I need to find a way to hide the
connections or change the anchor when the compartment is collapsed. Has
someone already run into the same issue ?
Regards,
Jacques
--------------070602090505040403010100
Content-Type: image/png;
name="ConnectionAndCompartment.png"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="ConnectionAndCompartment.png"
iVBORw0KGgoAAAANSUhEUgAAAXwAAAC5CAYAAAArtYR5AAAAAXNSR0IArs4c 6QAAAARnQU1B
AACxjwv8YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgA ABdwnLpRPAAA
ABh0RVh0U29mdHdhcmUAUGFpbnQuTkVUIHYzLjA1G8PgXAAAFadJREFUeF7t nb+rbcUVx1/+
B60Em2ATrEylaZQ0dnbaWQhik1RJpZWkiRAkTcBCsLAIpAhP4xUlJE+C4SER IYgQjYgoQSIS
IoI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c5c8YHgz+WPpDUp8TZZtc2wzVGJ3SqbbbB7Ho5478jhBzAVwZ/L iQj+XP74jjUX
Txf85v8OlBJvc9HTZt7mYigvCMxAoJfgb7ldMXSPfW170l/Bpn6RK/VTi/v0 EXwpbcpBAALF
BHoIfsmvVEMG535UZeqUCLkEylabQzbFfj9QesQmsb9VGX541Yok7UBgQgKt BT8lxKlfv8Z+
zJQS99iPrizm2K5A+kMr6Y+6crsD6eJk7CbDn3CSYBIEjkJgNsGPZcqSnYAr 9KH/TrWRyvBj
31mhz/WF4B9ltjAOCOycAIJ/8xCjVvBd93OGv/PJgPkQODqBowh+6vjG92Go bOpYJpXhI/hH
nyGMDwIHInAEwU9d5M1dAE5dV0gd1fjHObFdQurzUBhxhn+gycVQIDAbgdaC nzseCX2fOwvP
3UGD4LeLKu7SaceSliAwHYEegm9FPXVbov9dSLRjd+7kLqKm2orZlruwGjsG ih0XhfrJ9WHq
kOFPN0UwCALHIdBL8I9DaOxIEPyxvOkNAksRQPDncjeCP5c/sAYChyLA45Hn cieCP5c/sAYC
hyJwdnZ2cW7Mew4Gxh+aLy7aatKnbwhAAAIDCSD4A2HTFQQgAAFNAgi+Jn36 hgAEIDCQAII/
EDZdQQACENAkgOBr0qdvCEAAAgMJIPgDYdMVBCAAAU0CCL4mffqGAAQgMJAA gj8QNl1BAAIQ
0CSA4GvSp28IQAACAwkg+ANh0xUEIAABTQIIviZ9+oYABCAwkACCPxA2XUEA AhDQJIDga9Kn
bwhAAAIDCSD4A2HTFQQgAAFNAgi+Jn36hgAEIDCQAII/EDZdQQACENAkgOBr 0qdvCEAAAgMJ
IPgDYdMVBCAAAU0CCL4mffqGAAQgMJAAgj8QNl1BAAIQ0CSA4GvSp28IQAAC Awkg+ANh0xUE
IAABTQIIviZ9+oYABCAwkMD/AcJruP09FI/7AAAAAElFTkSuQmCC
--------------070602090505040403010100--
|
|
|
Re: Compartment - Connection - Layout [message #145431 is a reply to message #143585] |
Mon, 06 August 2007 11:36 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Jacques LESCOT![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=jlescot%40sierrawireless.com) Messages: 247 Registered: July 2009 |
Senior Member |
|
|
Hi all,
Could anybody help me to solve one of these two issues ? Any help would
be appreciated.
Thanks in advance,
Jacques
Jacques LESCOT a écrit :
> Hi,
>
> I am facing a dilemna for using a layout type in my compartment.
>
> Here is a brief description of what I am trying to do : I have a
> MultiPort that may contain many Ports. The MultiPort could be open (all
> the contained Ports are visible) or closed (all the Ports are hidden).
> This works well with the compartment behavior.
>
> Then, these Ports can be connected between themselves : when the
> MultiPort is open, the links should be present, and when it is closed,
> they should be either hidden or all connected to the same anchor of the
> closed Compartment :
>
> 1. when I choose a Compartment without List type, those links are hidden
> (they could be still visible by customizing the ConnectionRefreshMgr
> inner class in the ShapeCompartmentEditPart). The problem is that I
> would like to layout these Ports in a vertical ToolbarLayout, but the
> default layout in a ShapeCompartmentEditPart must be a FreeformLayout as
> I understand. Is there a way to avoid this ?
>
> 2. when I choose a Compartment with List type, those links are always
> present, even if the Compartment is closed (see the attached image).
> This would better suit my needs, but I need to find a way to hide the
> connections or change the anchor when the compartment is collapsed. Has
> someone already run into the same issue ?
>
> Regards,
> Jacques
>
> ------------------------------------------------------------ ------------
>
|
|
|
Re: Compartment - Connection - Layout [message #145728 is a reply to message #143585] |
Wed, 08 August 2007 07:57 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: trac.phandinh.hotmail.fr
Hi Jacques, I am working on a project where what you do is next step that
I want to achieve. Could you give me what you have done? I could try to
find the solution and I will tell it to you
|
|
|
|
Powered by
FUDForum. Page generated in 0.04052 seconds