Connections between Editors [message #170799] |
Mon, 07 March 2005 15: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 #170995 is a reply to message #170855] |
Tue, 08 March 2005 10:47 |
Eclipse User |
|
|
|
Originally posted by: a.morgan.pilz.ie
Hi Pratik,
Yes I was thinking along the same lines.
Its the "where to start" that is catching me.
What I was thinking was that if the Box wasn't visible and therefore the
Connection had no target then I could catch some kind of event or something
to signify this.
Any thoughts ?
Thanks,
Alan.
"Pratik Shah" <ppshah@us.ibm.com> wrote in message
news:d0j75i$u3$1@www.eclipse.org...
> When a box is not visible, maybe the line can be connected to the
container
> instead, with some marker (i.e., decoration) indicating that the
connection
> is actually connected to something inside that container.
>
> "Alan Morgan" <a.morgan@pilz.ie> wrote in message
> news:d0hr70$g2h$1@www.eclipse.org...
> > 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 22: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.05029 seconds