Same child node type in multiple compartments [message #120010] |
Tue, 17 April 2007 21:47 |
Eclipse User |
|
|
|
Originally posted by: ricker.distributedinstruments.com
I have child nodes that I want to appear on the north, south, east and
west side of the parent. The parent is called "Resource" and the
children are called "Port". I tried creating multiple compartments on
the Resource node named "NorthCompartment", "SouthCompartment", etc. A
child reference can only be assigned to one compartment. If I create a
second child reference for Port for the other compartment, then the same
child appears in both compartments.
Is there a way around this?
|
|
|
Re: Same child node type in multiple compartments [message #120025 is a reply to message #120010] |
Tue, 17 April 2007 21:48 |
Eclipse User |
|
|
|
Originally posted by: ricker.distributedinstruments.com
This is a multi-part message in MIME format.
--------------080807050906070400080206
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Ricker wrote:
> I have child nodes that I want to appear on the north, south, east and
> west side of the parent. The parent is called "Resource" and the
> children are called "Port". I tried creating multiple compartments on
> the Resource node named "NorthCompartment", "SouthCompartment", etc. A
> child reference can only be assigned to one compartment. If I create a
> second child reference for Port for the other compartment, then the same
> child appears in both compartments.
>
> Is there a way around this?
Here is an image of what I am talking about. It seems like a common
enough problem.
--------------080807050906070400080206
Content-Type: image/gif;
name="compartments.gif"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="compartments.gif"
R0lGODlhwQCRAHAAACwAAAAAwQCRAIcAAAAEBAgIBAQICAgEBDAICBAICCAA AHEMDBAAAH0M
DCAICEgMDCgMDDAQEBAAAJ0wBAQQECAgDAwAAKUEBI0QFBgICHEMDFAAALYE BJUICHkMDFkQ
EDgAAL4ICH0gEBAMDGEQEEAUFCAAAMYMDGkQEEgUFCgAAM4wDAwoEBAAANYg FBRQAAAAAN4A
AOYwEBAYGCgAAO4oFBQUHCQAAPZICAgYHCAAAP84EBAcICggICBIEBBxAAAg IDBZDAwgJCh5
AAAwICB9AABhDAxZEBAgKDBxCAgoKCgoKDh9CAgoLDCVAACNBAQ4KCiFCAh9 DAwkMDwoMDid
AACVBAQwMDClAACdBAQwMEAsNEA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Jkjc2IjdFIMczYJHS4GGSljeL4jNVIjtdojtmIjtsIMdOIjt5YHsZo Fp63IA93IvE4
dulSjy2SMcaof5mij8DhItpxC6tTkKtzC23hj3qoY/C4H34ABM4TkcwDBH6Q kPkYHfz4HX4g
BYXVPlJQkWyhkOGHkQCykR3JPh9pkc5yj3RhkidJBykZkvkoaizpFi5ZBWj/ qFQwCZJr8Y2t
gYzx6JJwIAEGiEgywFExCSBAaYwuSQdWsAdn4QhMgJI8uR9LmXwZqR1NSQco cH3j9AJglZRW
6ZOFIZDZsZVg0ARlwQa3RJVtMY+8eJWxV5Ic2T5EAAsYsQPuI5ZpIZL4B5C9 YZbUsZV0sAYf
oHBBUAZ7WZV9mY9yqTdZeZZ12T5PUAnFcApG8D58iRZ+iYiCuI90+T5DCQxH qZmMyZkXeR2R
OZiT2T5aIABTaZoqKR69WBuCOR2EyT5MAFYeeZpn0Zl9wSI1yRa5uVSb+Zsz qS/DqRbFOUTH
ST3vuJxt0Zwj9Jzn8Zi+6AcsMFrcGVos4JvvgZ13rXGbzhEMprdaq5kd4kkX 5HmHcFkbe2gb
7dkpwMkX8Wmb6emH9bkX9xkbR8AFZ/AHPWERAioUBDqgElGgNnGgBpqgCOoQ CioMDLqgB8Ek
zvKZ1YET+0YMSrGhHUoRHHoUHiqiIPqhCxGiPzGiKVqiWpGa0rmcwvmixhij MiqM0FGGkPYZ
OcoZO3oZPUoZPzoZQSoZQ3ofOEpIOoqkPKqkPsqkQOqkQgqlRCql9xEQADs=
--------------080807050906070400080206--
|
|
|
|
Re: Same child node type in multiple compartments [message #120129 is a reply to message #120025] |
Wed, 18 April 2007 11:23 |
Hallvard Traetteberg Messages: 673 Registered: July 2009 Location: Trondheim, Norway |
Senior Member |
|
|
Hi,
I had the same problem and managed to get it working by implementing
them as BorderItems and using a custom BorderItemLocator. I did get
the compartment technique to work, by implementing derived features
that divided a "real" feature into sets belonging to each compartment
(like northPorts, southPorts etc. feature). This does not work if the
user should be able to move the ports freely between sides. However,
using BorderItems was much simpler (after I discovered it).
In my case I did some manual code editing (based on the code that is
generated for external labels, which also are BorderItems), for the
the item and its parent, since it requires some cooperation between
these edit part classes. I think it is also possible using the affixed
to parent property (or whatever it's called), but I didn't try that
since I'd already gotten it to work.
Hallvard
On Tue, 17 Apr 2007 17:48:49 -0400, Ricker
<ricker@distributedinstruments.com> wrote:
>Ricker wrote:
>> I have child nodes that I want to appear on the north, south, east and
>> west side of the parent. The parent is called "Resource" and the
>> children are called "Port". I tried creating multiple compartments on
>> the Resource node named "NorthCompartment", "SouthCompartment", etc. A
>> child reference can only be assigned to one compartment. If I create a
>> second child reference for Port for the other compartment, then the same
>> child appears in both compartments.
>>
>> Is there a way around this?
>
>Here is an image of what I am talking about. It seems like a common
>enough problem.
>
|
|
|
Re: Same child node type in multiple compartments [message #120206 is a reply to message #120115] |
Wed, 18 April 2007 12:57 |
Eclipse User |
|
|
|
Originally posted by: ricker.distributedinstruments.com
Non-synchronized diagrams works.
In the GMFMAP you must define the child reference with node mapping for
each compartment; you cannot use "referenced child".
Thanks to you and Hallvard for your help!
Alex Shatalin wrote:
> Hello Ricker,
>
> Looks like a problem with generated ??CanonicalEditPolicy. Try
> non-synchronized diagrams.
>
> -----------------
> Alex Shatalin
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03578 seconds