Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » RAP and MiGLayout
RAP and MiGLayout [message #105394] Wed, 17 September 2008 03:50 Go to next message
Eclipse UserFriend
Hi,

I am trying to convert a RCP application which uses the MiGLayout to an
RAP application. After removing all compiler errors and trying to start
the application I get a ClassNotFoundException for the class
org.eclipse.swt.graphics.drawable. When removing the MiGLayout related
code the exception disapears. So I suspect the MigLayout to cause this.
Now I wanted to ask if someone has experiences with MigLayout and RAP and
if there is some kind of workaround or another Layout Manager with better
support for RAP.
Re: RAP and MiGLayout [message #105423 is a reply to message #105394] Wed, 17 September 2008 04:09 Go to previous messageGo to next message
Eclipse UserFriend
Hi Gunnar,

I just take a quick glance at the source of MigLayout. I don't see any
bigger problem porting this to RAP.

You will need to replace some lines of code (like new Color =>
Graphics.getColor(..); ). For the GC related stuff I can see (eg
getAverageCharWidth) you can use the other methods on the RWT Graphics
class like Graphics#getCharHeight and Graphics#getAvgCharWidth.

Anything else should be fine in my eyes.
Would be great to hear from your if it works.

Greets
Benny

Gunnar Wurl wrote:
> Hi,
>
> I am trying to convert a RCP application which uses the MiGLayout to an
> RAP application. After removing all compiler errors and trying to start
> the application I get a ClassNotFoundException for the class
> org.eclipse.swt.graphics.drawable. When removing the MiGLayout related
> code the exception disapears. So I suspect the MigLayout to cause this.
> Now I wanted to ask if someone has experiences with MigLayout and RAP
> and if there is some kind of workaround or another Layout Manager with
> better support for RAP.
>
Re: RAP and MiGLayout [message #105446 is a reply to message #105423] Wed, 17 September 2008 05:52 Go to previous messageGo to next message
Eclipse UserFriend
Hi Benny,

Thank you for your advice. I followed it and edited the MiGLayout Source
Code replacing the errors the compiler gave me. And it works. Looks a bit
weird because I removed some code lines using a GC class, but I think I
should ask questions regarding to this in the MiG Forum.

Thanks again,

Gunnar
Re: RAP and MiGLayout [message #498775 is a reply to message #105446] Wed, 18 November 2009 10:30 Go to previous message
Eclipse UserFriend
Hi Gunnar

I ran into the same problem using MigLayout in my RAP application.
So I followed your instructions on:
http://migcalendar.com/forum/viewtopic.php?f=8&t=2355
Thanks for that!

So I was wondering if you use your modification productiv or have you run into trouble?
My application looks fine but I'm not sure how stable it is.

thanks and greets
Flavio
Previous Topic:Exception reporting in RAP
Next Topic:RAP 1.2 plan
Goto Forum:
  


Current Time: Mon Jun 16 16:31:05 EDT 2025

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

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

Back to the top