Skip to main content



      Home
Home » Eclipse Projects » GEF » load HelloGef1 into a StructuredViewer
load HelloGef1 into a StructuredViewer [message #66694] Thu, 27 February 2003 10:48 Go to next message
Eclipse UserFriend
I have created a GraphViewer class that extends
org.eclipse.jface.viewers.StructuredViewer. The final goal is to have
another view besides the existing JFace views: TreeViewer, ListViewer, etc.
Since I'm new to GEF I want to start with something simple, a Proof Of
Concept using HelloGef examples.
Is there a way I can load the HelloGef1 example into my GraphViewer ?
What are the steps ?
Any hint is welcome.
Re: load HelloGef1 into a StructuredViewer [message #66732 is a reply to message #66694] Thu, 27 February 2003 11:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

What is the motivation for placing GraphicalViewer in a StructuredViewer?
Are you trying to make a workbench View?

JFace Viewers which are not the same as Views. Viewers are simply helpers
for an SWT Control. Views are a workbench concept. Viewers don't know
about Views, and vice-versa.

"Laszlo Benedek" <lbenedek@ca.ibm.com> wrote in message
news:b3la8h$iu2$1@rogue.oti.com...
> I have created a GraphViewer class that extends
> org.eclipse.jface.viewers.StructuredViewer. The final goal is to have
> another view besides the existing JFace views: TreeViewer, ListViewer,
etc.
> Since I'm new to GEF I want to start with something simple, a Proof Of
> Concept using HelloGef examples.
> Is there a way I can load the HelloGef1 example into my GraphViewer ?
> What are the steps ?
> Any hint is welcome.
>
Re: load HelloGef1 into a StructuredViewer [message #66861 is a reply to message #66732] Thu, 27 February 2003 12:42 Go to previous messageGo to next message
Eclipse UserFriend
Randy Hudson wrote:
> What is the motivation for placing GraphicalViewer in a StructuredViewer?
> Are you trying to make a workbench View?
Yes, that's what I'm trying to do. Is there any way around ?
I've seen it done using ContentViewer which is the superclass of the
StructuredViewer. But since the existing implementation takes a
StructuredViewer I have tried to make less changes.

>
> JFace Viewers which are not the same as Views. Viewers are simply helpers
> for an SWT Control. Views are a workbench concept. Viewers don't know
> about Views, and vice-versa.
>
> "Laszlo Benedek" <lbenedek@ca.ibm.com> wrote in message
> news:b3la8h$iu2$1@rogue.oti.com...
>
>>I have created a GraphViewer class that extends
>>org.eclipse.jface.viewers.StructuredViewer. The final goal is to have
>>another view besides the existing JFace views: TreeViewer, ListViewer,
>
> etc.
>
>>Since I'm new to GEF I want to start with something simple, a Proof Of
>>Concept using HelloGef examples.
>>Is there a way I can load the HelloGef1 example into my GraphViewer ?
>>What are the steps ?
>>Any hint is welcome.
>>
>
>
>
Re: load HelloGef1 into a StructuredViewer [message #66882 is a reply to message #66861] Thu, 27 February 2003 21:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

> StructuredViewer. But since the existing implementation takes a
> StructuredViewer I have tried to make less changes.

The existing implementation of what takes a StructuredViewer?
Re: load HelloGef1 into a StructuredViewer [message #67371 is a reply to message #66882] Fri, 28 February 2003 09:41 Go to previous messageGo to next message
Eclipse UserFriend
Randy Hudson wrote:
>>StructuredViewer. But since the existing implementation takes a
>>StructuredViewer I have tried to make less changes.
>
>
> The existing implementation of what takes a StructuredViewer?
>
The existing implementation I have is a tabulated view which already
contains a ListViewer,TableViewer and a TreeViewer.
All these viewers have drag&drop support through the addDragSupport and
addDropSupport methods inherited from the StructuredViewer.
That is the reason why I wanted my GraphViewer to be a StructuredViewer,
because eventually I will need to implement the drag&drop support too.
Re: load HelloGef1 into a StructuredViewer [message #67388 is a reply to message #67371] Fri, 28 February 2003 10:33 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Out of curiosity, where did this tabulated view come from? If you own it,
couldn't it be more flexible if it just know about SWT Controls instead of
Viewers?

"Laszlo Benedek" <lbenedek@ca.ibm.com> wrote in message
news:b3nqml$e05$1@rogue.oti.com...
> Randy Hudson wrote:
> >>StructuredViewer. But since the existing implementation takes a
> >>StructuredViewer I have tried to make less changes.
> >
> >
> > The existing implementation of what takes a StructuredViewer?
> >
> The existing implementation I have is a tabulated view which already
> contains a ListViewer,TableViewer and a TreeViewer.
> All these viewers have drag&drop support through the addDragSupport and
> addDropSupport methods inherited from the StructuredViewer.
> That is the reason why I wanted my GraphViewer to be a StructuredViewer,
> because eventually I will need to implement the drag&drop support too.
>
Previous Topic:Problem using ScrollableThumbnail with ZoomManager
Next Topic:printing images
Goto Forum:
  


Current Time: Mon May 05 01:42:45 EDT 2025

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

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

Back to the top