Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Is there future support for swt addPaintListener() and gef?(Any official plans on further aligning rcp's swt and gef and possible timeline)
Is there future support for swt addPaintListener() and gef? [message #650705] Wed, 26 January 2011 08:33 Go to next message
Nick Chiu is currently offline Nick ChiuFriend
Messages: 4
Registered: July 2009
Junior Member
Sorry if this has been posted before, I couldn't find the proper search for the RAP forum (searches in all forums)

Anyways I tried out the 1.4M releases. I noticed when converting over my projects the addPaintListener() on swt has not been implemented, is there any plans for this?

Also I know there are some bug enhancements to support GEF and draw2d. Any plans on when this will be supported as well?

I've already looked at the 1.4 release plan and didn't find anything regarding the above items. Hopefully someone can point to me a link of where future enhancement requests are and their status.

Nick

[Updated on: Wed, 26 January 2011 09:08]

Report message to a moderator

Re: Future support for GC and GEF [message #650724 is a reply to message #650705] Wed, 26 January 2011 09:39 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 335
Registered: July 2009
Senior Member
Nick,

please see my comments below.

On 26.01.2011 09:33, Nick Chiu wrote:
> Sorry if this has been posted before, I couldn't find the proper search
> for the RAP forum (searches in all forums)
>
> Anyways I tried out the 1.3 release and 1.4M releases. I noticed when
> converting over my projects the GC classes have not been implemented
> therefore I can't custom paint on top of my swt widgets. Is there any
> plans for this?
Since 1.3 RAP supports GC and paint events on the Canvas widget. Drawing
on arbitrary widgets is currently not supported and - to my knowledge -
there aren't any plans to do so.
If your SWT/RCP application uses the GC to "style" widgets, the you can
probably replace most of the code with CSS theming in RAP.

>
> Also I know there are some bug enhancements to support GEF and draw2d.
> Any plans on when this will be supported as well?
In the RAP Incubator (http://eclipse.org/rap/incubator/) there is a port
of GEF for RAP in its early stage. The effort is driven by Austin and
his colleagues, they can probably give more details about the state of
the port.

>
> I've already looked at the 1.4 release plan and didn't find anything
> regarding the above items. Hopefully someone can point to me a link of
> where future enhancement requests are and their status.
>
> Nick

HTH
Rüdiger
Re: Is there future support for swt addPaintListener() and gef? [message #650905 is a reply to message #650705] Thu, 27 January 2011 06:37 Go to previous messageGo to next message
Nick Chiu is currently offline Nick ChiuFriend
Messages: 4
Registered: July 2009
Junior Member
Oh i c, so usually my rcp adds a paintListener to the swt widget to style on certain events, ie. drawing red boxes around textfields for errors or painting custom borders. But in rap this should be converted to use CSS themes instead.

I haven't looked much into the CSS themes, although i gather it should be simple to add particular CSS styles to an arbitrary swt widget.
Re: Is there future support for swt addPaintListener() and gef? [message #650968 is a reply to message #650905] Thu, 27 January 2011 10:38 Go to previous message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 335
Registered: July 2009
Senior Member
On 27.01.2011 07:37, Nick Chiu wrote:
> Oh i c, so usually my rcp adds a paintListener to the swt widget to
> style on certain events, ie. drawing red boxes around textfields for
> errors or painting custom borders. But in rap this should be converted
> to use CSS themes instead.
Right, for drawing red boxes and the likes you are better off using CSS
theming in RAP.
Alternatively you may resort to JFace ControlDecorations that are also
supported by RAP.

>
> I haven't looked much into the CSS themes, although i gather it should
> be simple to add particular CSS styles to an arbitrary swt widget.

See here for further information on theming:
http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse. rap.help/help/html/intro.html
Advanced Topics -> RWT Theming and Reference -> RAP Theming Reference
Previous Topic:e4 and RAP
Next Topic:Tabbed browsing + FORM-authentication
Goto Forum:
  


Current Time: Thu Apr 25 08:20:32 GMT 2024

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

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

Back to the top