SWT constants do not work [message #865446] |
Mon, 30 April 2012 08:03  |
Eclipse User |
|
|
|
Hi guys,
i am new to the whole RCP/RAP stuff and i am trying to convert a small RCP application to make it running inside a Web Browser via RAP.
So right now i have problems using something like this:
addListener(SWT.Paint, new Listener()
or this:
private int borderLineStyle = SWT.LINE_SOLID;
I get the error: LINE_SOLID cannot be resolved or is not a field.
Also i can not find an overview what works and what does not. Is there something like this on the web?
If you need additional information feel free to ask.
Thanks in advance.
|
|
|
|
Re: SWT constants do not work [message #866215 is a reply to message #865446] |
Mon, 30 April 2012 15:55  |
Eclipse User |
|
|
|
Hi,
sorry, we can't provide a 100% coverage of SWT's drawing API, because
drawing in the browser (especially IE) is limited compared to the
desktop. You can currently only add a typed PaintListener on a Canvas.
SWT.LINE_* styles are also not supported yet.
We decided not to maintain an overview of supported and unsupported API
on the web. If we did, it would probably be outdated most of the time,
either because of additions in SWT or in RAP. If you want to know which
parts of your application use still unsupported API, just switch the
target to RAP and look at the compile errors in the Problems view - this
should pretty much be the overview you need, doesn't it?
Regards, Ralf
--
Ralf Sternberg
Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/
Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
|
|
|
Powered by
FUDForum. Page generated in 0.06046 seconds