Composite objects and GEF EditPart in one editor page [message #5766] |
Thu, 30 May 2002 05:40  |
Eclipse User |
|
|
|
Originally posted by: swaminathan_p.persistent.co.in
Hi,
I have to show two JFace Table Tree Viewers (one on the left
hand side and right hand side) on an editor. In between these
two I need a GEF EditPart view for rendering connection lines
between the Table-tree-items of the two Table-Tree objects.
How do I add a GEF EditPart (or EditorPart) in a composite object (editor) ?
Or do I need to add the two Table Tree Viewers on a GEF EditPart ?
I need to have a GEF EditPart
and draw some Draw2d Figures.
|
v
--------------------------------------------------
| | | |
| | GEF Edit Part | |
| | | |
| | | |
| | | |
| | | |
| JFace Table | | JFace Table |
| Tree View | | Tree View |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
--------------------------------------------------
| Page1 | Page2 | |
--------------------------------------------------
^
|
MultiPageEditorPart
Thanks in advance,
-Swamy
|
|
|
|
|
Re: Composite objects and GEF EditPart in one editor page [message #5960 is a reply to message #5875] |
Fri, 31 May 2002 02:06  |
Eclipse User |
|
|
|
Originally posted by: swaminathan_p.persistent.co.in
Hi Randy,
Thanks for your reply.
If we should use a SWT canvas, then is there any easy way to link the table
tree items and the connections in SWT canvas, because we need to
move/enable/disable the connections, depending upon different events on the
TableTree.
-Swamy
"Randy Hudson" <none@ibm.com> wrote in message
news:ad5ss8$g7j$1@rogue.oti.com...
> You should just use an SWT canvas and add a PaintListener. Connections
> require Figures at the other end, not TreeTableItems. And I assume the
user
> will interact with the tableTree, which is not GEF.
>
> "Swaminathan P" <swaminathan_p@persistent.co.in> wrote in message
> news:ad4qp8$rkv$1@rogue.oti.com...
> > Hi,
> >
> > I have to show two JFace Table Tree Viewers (one on the left
> > hand side and right hand side) on an editor. In between these
> > two I need a GEF EditPart view for rendering connection lines
> > between the Table-tree-items of the two Table-Tree objects.
> >
> > How do I add a GEF EditPart (or EditorPart) in a composite object
(editor)
> ?
> > Or do I need to add the two Table Tree Viewers on a GEF EditPart ?
> >
> > I need to have a GEF EditPart
> > and draw some Draw2d Figures.
> > |
> > v
> > --------------------------------------------------
> > | | | |
> > | | GEF Edit Part | |
> > | | | |
> > | | | |
> > | | | |
> > | | | |
> > | JFace Table | | JFace Table |
> > | Tree View | | Tree View |
> > | | | |
> > | | | |
> > | | | |
> > | | | |
> > | | | |
> > | | | |
> > --------------------------------------------------
> > | Page1 | Page2 | |
> > --------------------------------------------------
> > ^
> > |
> > MultiPageEditorPart
> >
> >
> > Thanks in advance,
> > -Swamy
> >
> >
>
>
|
|
|
Re: Composite objects and GEF EditPart in one editor page [message #6461 is a reply to message #5960] |
Thu, 30 May 2002 18:46  |
Eclipse User |
|
|
|
Originally posted by: none.ibm.com
"Swaminathan P" <swaminathan_p@persistent.co.in> wrote in message
news:ad72iu$r9b$1@rogue.oti.com...
> Hi Randy,
>
> Thanks for your reply.
>
> If we should use a SWT canvas, then is there any easy way to link the
table
> tree items and the connections in SWT canvas, because we need to
> move/enable/disable the connections, depending upon different events on
the
> TableTree.
>
> -Swamy
Look at TreeEditor. This class manages a CellEditor, which is another SWT
Control that must follow the TreeItem behind it, and disappear when
necessary.
|
|
|
Powered by
FUDForum. Page generated in 0.03146 seconds