Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Trying to use the PaperClips component
Trying to use the PaperClips component [message #639947] Thu, 18 November 2010 13:29 Go to next message
Patrick is currently offline PatrickFriend
Messages: 55
Registered: July 2009
Member
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 13:37 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2359
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
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 #639962 is a reply to message #639948] Thu, 18 November 2010 14:24 Go to previous messageGo to next message
Patrick is currently offline PatrickFriend
Messages: 55
Registered: July 2009
Member
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
Re: Trying to use the PaperClips component [message #639979 is a reply to message #639962] Thu, 18 November 2010 15:12 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2359
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
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
Previous Topic:Require-Bundle: org.eclipse.rap.ui not found
Next Topic:Text.getSelectionText()
Goto Forum:
  


Current Time: Sun Oct 17 22:13:14 GMT 2021

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

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

Back to the top