Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Theming and GEF port
Theming and GEF port [message #837938] Fri, 06 April 2012 10:14 Go to next message
Andrea Poli is currently offline Andrea PoliFriend
Messages: 28
Registered: December 2011
Location: Italy
Junior Member

Hi,
I'm trying to use RAP CSS theming with org.eclipse.draw2d.Figure components such as Label and Text. I'm using Draw2D control because I'm working on a PDE plugin that has to be converted into a RAP application. This plugin draws automata. I see that RAP theming works well on org.eclipse.swt.widgets.Control components using setData method in order to define variants. Is it possibile to define a variant using Figure? I noticed that there is no setData method.
I will appreciate any suggestion.
Thanks a lot.

[Updated on: Fri, 06 April 2012 10:37]

Report message to a moderator

Re: Theming and GEF port [message #840617 is a reply to message #837938] Tue, 10 April 2012 09:54 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 335
Registered: July 2009
Senior Member
Andrea,

theming applies to SWT/RWT *widgets* only. The Draw2D figures aren't
widgets. Instead they are drawn on the Canvas widget. In order to style
figures you'll have to customize the figures themselves.

HTH
Rüdiger

On 06.04.2012 12:14, Andrea Poli wrote:
> Hi, I'm trying to use RAP CSS theming with org.eclipse.draw2d.Figure
> components such as Label and Text. I'm using Draw2D control because I'm
> working on a PDE plugin that has to be converted into a RAP application.
> This plugin draws automata. I see that RAP theming works well on
> org.eclipse.swt.widgets.Control components using setData method in order
> to define variants. Is it possibile to define a variant using Figure? I
> noticed that there is no setData method. I will appreciate any
> suggestion. Thanks a lot.
--
Rüdiger Herrmann
http://codeaffine.com
Re: Theming and GEF port [message #840976 is a reply to message #840617] Tue, 10 April 2012 18:52 Go to previous messageGo to next message
Andrea Poli is currently offline Andrea PoliFriend
Messages: 28
Registered: December 2011
Location: Italy
Junior Member

I know that Widget and Figure are different but I'd like to know if the RAP development team is going to adopt CSS theming for Draw2D too.
Thanks a lot.
Re: Theming and GEF port [message #841039 is a reply to message #840976] Tue, 10 April 2012 20:41 Go to previous message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 335
Registered: July 2009
Senior Member
there are no current plans to provide CSS theming for Draw2D in RAP.

Regards,
Rüdiger

On 10.04.2012 20:52, Andrea Poli wrote:
> I know that Widget and Figure are different but I'd like to know if the
> RAP development team is going to adopt CSS theming for Draw2D too.
> Thanks a lot.
Previous Topic:2 questions to the RAP target
Next Topic:GraphicalEditorWithFlyoutPalette & mouse wheel scrolling
Goto Forum:
  


Current Time: Mon Sep 23 18:25:46 GMT 2024

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

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

Back to the top