Skip to main content



      Home
Home » Eclipse Projects » GEF » SWT EditPart
SWT EditPart [message #91056] Mon, 25 August 2003 05:13 Go to next message
Eclipse UserFriend
Originally posted by: tivy.centrum.sk

Hi all,

I'd like to ask, whether there exists a (free) implementation of editpart
interface working with SWT controls (real windowed ones, not just TreeItems)
instead of Figures.

Thanks.

Tibor
Re: SWT EditPart [message #91067 is a reply to message #91056] Mon, 25 August 2003 12:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

We don't have anything in GEF. However, the idea is pretty interesting *IF*
you really need SWT control all the time.

PROs:
You get something that looks like an SWT control

CONs:
- Connection would be impossible to draw in the general case.
- handles would have to be implemented in heavyweight fashion. So, they
would be SWT Controls themselves, in order to be able to paint on top of
everything.
- If you want to drag these controls around, you'd probably have to disable
them. I'm not sure if there appearance would change as a result of being
disable.
- Painting would not be double-buffered

Are you working on a GUI builder? There are several out there, and I think
they use the approach of copying an Image representation from real SWT
widgets that are "off screen" (new GC(composite).copyArea(...))

"Tibor Vyletel" <tivy@centrum.sk> wrote in message
news:bicjtg$921$1@eclipse.org...
> Hi all,
>
> I'd like to ask, whether there exists a (free) implementation of editpart
> interface working with SWT controls (real windowed ones, not just
TreeItems)
> instead of Figures.
>
> Thanks.
>
> Tibor
>
>
Re: SWT EditPart [message #91093 is a reply to message #91067] Mon, 25 August 2003 12:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tivy.centrum.sk

Randy, thanks for the answer.

The reason why I think about SWT controls as the View part in the MVC
pattern is their ability to edit content (texts) "in-place" - control
traversal with caret for free. I'm working on an editor so this would be for
me a great help - I'd only be responsible for layout and "decoration"
painting.

Editing model through property sheets, outline views or context menus seems
more straightforward for me - that's my impression. I'm a newbie in GEF, so
I am probably wrong....

Tibor

"Randy Hudson" <none@us.ibm.com> wrote in message
news:bidc5g$vq$1@eclipse.org...
> We don't have anything in GEF. However, the idea is pretty interesting
*IF*
> you really need SWT control all the time.
>
> PROs:
> You get something that looks like an SWT control
>
> CONs:
> - Connection would be impossible to draw in the general case.
> - handles would have to be implemented in heavyweight fashion. So, they
> would be SWT Controls themselves, in order to be able to paint on top of
> everything.
> - If you want to drag these controls around, you'd probably have to
disable
> them. I'm not sure if there appearance would change as a result of being
> disable.
> - Painting would not be double-buffered
>
> Are you working on a GUI builder? There are several out there, and I
think
> they use the approach of copying an Image representation from real SWT
> widgets that are "off screen" (new GC(composite).copyArea(...))
>
> "Tibor Vyletel" <tivy@centrum.sk> wrote in message
> news:bicjtg$921$1@eclipse.org...
> > Hi all,
> >
> > I'd like to ask, whether there exists a (free) implementation of
editpart
> > interface working with SWT controls (real windowed ones, not just
> TreeItems)
> > instead of Figures.
> >
> > Thanks.
> >
> > Tibor
> >
> >
>
>
Re: SWT EditPart [message #91107 is a reply to message #91093] Mon, 25 August 2003 12:56 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

"Tibor Vyletel" <tivy@centrum.sk> wrote in message
news:bidems$3qo$1@eclipse.org...
> Randy, thanks for the answer.
>
> The reason why I think about SWT controls as the View part in the MVC
> pattern is their ability to edit content (texts) "in-place" - control
> traversal with caret for free. I'm working on an editor so this would be
for
> me a great help - I'd only be responsible for layout and "decoration"
> painting.

GEF allows in-place editing of text via CellEditors. You can always
reproduce the illusion of traversal with the TAB key.

> Editing model through property sheets, outline views or context menus
seems
> more straightforward for me - that's my impression. I'm a newbie in GEF,
so
> I am probably wrong....

It would help if you described the type of editor you are building.

> Tibor
>
> "Randy Hudson" <none@us.ibm.com> wrote in message
> news:bidc5g$vq$1@eclipse.org...
> > We don't have anything in GEF. However, the idea is pretty interesting
> *IF*
> > you really need SWT control all the time.
> >
> > PROs:
> > You get something that looks like an SWT control
> >
> > CONs:
> > - Connection would be impossible to draw in the general case.
> > - handles would have to be implemented in heavyweight fashion. So, they
> > would be SWT Controls themselves, in order to be able to paint on top of
> > everything.
> > - If you want to drag these controls around, you'd probably have to
> disable
> > them. I'm not sure if there appearance would change as a result of
being
> > disable.
> > - Painting would not be double-buffered
> >
> > Are you working on a GUI builder? There are several out there, and I
> think
> > they use the approach of copying an Image representation from real SWT
> > widgets that are "off screen" (new GC(composite).copyArea(...))
> >
> > "Tibor Vyletel" <tivy@centrum.sk> wrote in message
> > news:bicjtg$921$1@eclipse.org...
> > > Hi all,
> > >
> > > I'd like to ask, whether there exists a (free) implementation of
> editpart
> > > interface working with SWT controls (real windowed ones, not just
> > TreeItems)
> > > instead of Figures.
> > >
> > > Thanks.
> > >
> > > Tibor
> > >
> > >
> >
> >
>
>
Previous Topic:Copy on drag
Next Topic:[ANN] New Articles available on GEF
Goto Forum:
  


Current Time: Fri May 09 18:09:34 EDT 2025

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

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

Back to the top