Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » RAP and MiGLayout
RAP and MiGLayout [message #105394] Wed, 17 September 2008 07:50 Go to next message
Gunnar Wurl is currently offline Gunnar WurlFriend
Messages: 34
Registered: July 2009
Member
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 08:09 Go to previous messageGo to next message
Benjamin Muskalla is currently offline Benjamin MuskallaFriend
Messages: 237
Registered: July 2009
Senior Member
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 09:52 Go to previous messageGo to next message
Gunnar Wurl is currently offline Gunnar WurlFriend
Messages: 34
Registered: July 2009
Member
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 15:30 Go to previous message
Flavio Donze is currently offline Flavio DonzeFriend
Messages: 211
Registered: July 2009
Location: Switzerland
Senior Member
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


Prozessmanagement und Qualitätsmanagement Software QMS/IMS
https://www.scodi.ch
Previous Topic:Exception reporting in RAP
Next Topic:RAP 1.2 plan
Goto Forum:
  


Current Time: Fri Apr 26 09:16:19 GMT 2024

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

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

Back to the top