Skip to main content



      Home
Home » Eclipse Projects » GEF » Composite objects and GEF EditPart in one editor page
Composite objects and GEF EditPart in one editor page [message #5766] Thu, 30 May 2002 05:40 Go to next message
Eclipse UserFriend
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 #5875 is a reply to message #5766] Thu, 30 May 2002 15:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.ibm.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 #5907 is a reply to message #5875] Thu, 30 May 2002 20:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bob.objfac.com

Is there a GEF or draw2d figure that displays a tree?

Bob

"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 #5960 is a reply to message #5875] Fri, 31 May 2002 02:06 Go to previous message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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.
Previous Topic:Property Value Editing Problem
Next Topic:JDT Snippet says: Missing code implementation in the compiler
Goto Forum:
  


Current Time: Fri May 09 17:38:05 EDT 2025

Powered by FUDForum. Page generated in 0.03146 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top