Connections between Editors [message #170799] |
Mon, 07 March 2005 10:15  |
Eclipse User |
|
|
|
Originally posted by: a.morgan.pilz.ie
Hey,
My problem is as follows. I have 2 types of object a Box and a Container.
A Box can be connected to another Box.
A Container contains zero to many Boxes.
When a Box is in a Container it appears smaller as the zoom on the Container
is set to 50%, this is so I can fit more in there.
A Box maintains its connections even when moved into a Container (or back
out again)
When I double-click a Container I open a new editor which shows just the
contents of the Container.
If two Boxes in a Container are connected then these connections are shown
fine in the new Container editor.
However the problem occurs if I have a Box inside the Container connected to
a Box outside the Container.
In this case when I open the Container editor the connection had no endpoint
as the Box that it was connected to is not shown.
So I need to find a way around this problem.
I was thinking that if I had a connection that had no Box on the end in the
Container editor then I could create some kind of temporary or marker figure
just to signify the fact that there is a connection to something outside the
current Container/Editor.
Anybody had any experience with anything like this or got any ideas on how
this could be achieved ?
Regards,
Alan.
|
|
|
|
|
Re: Connections between Editors [message #171053 is a reply to message #170799] |
Tue, 08 March 2005 17:01  |
Eclipse User |
|
|
|
Originally posted by: Lamont_Gilbert.rigidsoftware.com
Alan Morgan wrote:
> Hey,
>
> My problem is as follows. I have 2 types of object a Box and a Container.
> A Box can be connected to another Box.
> A Container contains zero to many Boxes.
> When a Box is in a Container it appears smaller as the zoom on the Container
> is set to 50%, this is so I can fit more in there.
> A Box maintains its connections even when moved into a Container (or back
> out again)
> When I double-click a Container I open a new editor which shows just the
> contents of the Container.
> If two Boxes in a Container are connected then these connections are shown
> fine in the new Container editor.
> However the problem occurs if I have a Box inside the Container connected to
> a Box outside the Container.
> In this case when I open the Container editor the connection had no endpoint
> as the Box that it was connected to is not shown.
>
> So I need to find a way around this problem.
> I was thinking that if I had a connection that had no Box on the end in the
> Container editor then I could create some kind of temporary or marker figure
> just to signify the fact that there is a connection to something outside the
> current Container/Editor.
>
> Anybody had any experience with anything like this or got any ideas on how
> this could be achieved ?
>
> Regards,
> Alan.
>
>
You have an edit part factory used by your comtainer editor return a
special 'connection' edit part. That 'connection' edit part should know
if its connected to a box which is not within the editor, and draw
itself accordingly, or not at all.
|
|
|
Powered by
FUDForum. Page generated in 0.09520 seconds