SWT EditPart [message #91056] |
Mon, 25 August 2003 05:13  |
Eclipse User |
|
|
|
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 #91093 is a reply to message #91067] |
Mon, 25 August 2003 12:50   |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
> > >
> > >
> >
> >
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02877 seconds