Trying to use the PaperClips component [message #639947] |
Thu, 18 November 2010 08:29  |
Eclipse User |
|
|
|
Hi all,
I've used the PaperClips component in a RCP application that I'm now
porting to RAP, so I'm trying to make PaperClips work in RAP, at least
to generate Print documents (I don't know if printing itself would work):
http://code.google.com/p/swt-paperclips/
I added succesfully the PaperClips plug-in in my RAP target, only after
removing the SWT bundle version requirement [3.2.0,4.0.0) from the manifest.
But at runtime I have this error:
java.lang.NoClassDefFoundError: org/eclipse/swt/graphics/FontData
at net.sf.paperclips.TextPrint.<clinit>(TextPrint.java:44)
However the FontData class exists in RAP, so what could be wrong?
Any help is welcome, thanks in advance.
Patrick
|
|
|
Re: Trying to use the PaperClips component [message #639948 is a reply to message #639947] |
Thu, 18 November 2010 08:37   |
Eclipse User |
|
|
|
Hi Patrick,
try to use PaperClips as a source plugins in your workspace instead in
target platform. Does it compile without errors against RAP target platform?
Best,
Ivan
On 18.11.2010 3:29 PM, Patrick wrote:
> Hi all,
>
> I've used the PaperClips component in a RCP application that I'm now
> porting to RAP, so I'm trying to make PaperClips work in RAP, at least
> to generate Print documents (I don't know if printing itself would work):
>
> http://code.google.com/p/swt-paperclips/
>
> I added succesfully the PaperClips plug-in in my RAP target, only
> after removing the SWT bundle version requirement [3.2.0,4.0.0) from
> the manifest.
>
> But at runtime I have this error:
> java.lang.NoClassDefFoundError: org/eclipse/swt/graphics/FontData
> at net.sf.paperclips.TextPrint.<clinit>(TextPrint.java:44)
>
> However the FontData class exists in RAP, so what could be wrong?
>
> Any help is welcome, thanks in advance.
>
> Patrick
|
|
|
|
Re: Trying to use the PaperClips component [message #639979 is a reply to message #639962] |
Thu, 18 November 2010 10:12  |
Eclipse User |
|
|
|
Hi Patrick,
it depends on what/where are the compile errors, is it possible to
remove them by commenting some parts of the problematic code or replace
them with a code that works in RAP. Had a brief look at the code and
these packages/classes are missing in RAP:
org.eclipse.swt.printing.*;
org.eclipse.swt.graphics.Region
org.eclipse.swt.graphics.Transform
The most critical one in my eyes is the package
"org.eclipse.swt.printing", which I suppose is the heart of the
PaperClips and can't be reworked. Thus, I'm sorry to say, but PaperClips
can't be used in RAP.
Best,
Ivan
On 18.11.2010 4:24 PM, Patrick wrote:
> Hi Ivan,
>
> Le 18/11/2010 14:37, Ivan Furnadjiev a écrit :
>> Hi Patrick,
>> try to use PaperClips as a source plugins in your workspace instead in
>> target platform. Does it compile without errors against RAP target
>> platform?
>
> I imported the source plugin and it compiles not without errors, but
> only in 8 source files out of 83.
> Do you think I could yet use the component, if I recompile it on the
> RAP target? It would be great if I could reuse the work I've done in
> my RCP project.
>
> Patrick
|
|
|
Powered by
FUDForum. Page generated in 0.03060 seconds