Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Scout SWT UI improvement for Mac OS X
Scout SWT UI improvement for Mac OS X [message #760597] Sat, 03 December 2011 11:06 Go to next message
Jeremie Bresson is currently offline Jeremie Bresson
Messages: 118
Registered: November 2010
Senior Member
Following the tips described on this page: Making good Eclipse RCP apps for Mac, I was able to add two modifications into the SWT rendering engine of scout.

Sheet style for message box
index.php/fa/6323/0/

Notification of unsaved changes
index.php/fa/6324/0/
Reacting on IForm.PROP_SAVE_NEEDED in handleScoutPropertyChange(..)


For now this changes are implemented in my application, by overriding some methods of the AbstractSwtEnvironment in my SwtEnvironment.

Any interest in a patch for the common SWT UI plug-in ?

Re: Scout SWT UI improvement for Mac OS X [message #760609 is a reply to message #760597] Sat, 03 December 2011 13:23 Go to previous messageGo to next message
Claudio Guglielmo is currently offline Claudio Guglielmo
Messages: 127
Registered: March 2010
Senior Member
Hi Jérémie

As a Mac user I'm very interested in your patch! Could you please open a bug and attach the patches?

Thanks
Claudio
Re: Scout SWT UI improvement for Mac OS X [message #760721 is a reply to message #760609] Sun, 04 December 2011 19:48 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie Bresson
Messages: 118
Registered: November 2010
Senior Member
I need to try the effects on windows first...

If it is only usefull in Mac OS X, it is possible to use the JFace Util class to determine whether the application is running on a Mac or not: Util.isMac()

.
Re: Scout SWT UI improvement for Mac OS X [message #761672 is a reply to message #760597] Tue, 06 December 2011 21:08 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie Bresson
Messages: 118
Registered: November 2010
Senior Member
I opened the bug 365809 for the first point:
Jeremie Bresson wrote on Sat, 03 December 2011 12:06

Notification of unsaved changes
index.php/fa/6324/0/
Reacting on IForm.PROP_SAVE_NEEDED in handleScoutPropertyChange(..)

This is working because it as 0 effect on Windows (I tested Windows 7).


For the message box, I am still looking for solution to:
- handle the title...
- handle Windows/Mac



I am also looking for a solution for the Application Menu (containing About, Preferences, and Quit Menu items). A StackOverflow question points the Snippet354. Work in progress...

.
Re: Scout SWT UI improvement for Mac OS X [message #763071 is a reply to message #760597] Fri, 09 December 2011 05:09 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie Bresson
Messages: 118
Registered: November 2010
Senior Member
Here a second bug:
Jeremie Bresson wrote on Sat, 03 December 2011 12:06
Sheet style for message box
index.php/fa/6323/0/

See: Bug 366133: Improve MessageBox on Mac OS X (SWT)
Re: Scout SWT UI improvement for Mac OS X [message #771914 is a reply to message #763071] Wed, 28 December 2011 14:16 Go to previous message
Claudio Guglielmo is currently offline Claudio Guglielmo
Messages: 127
Registered: March 2010
Senior Member
Hi Jérémie

Thanks for your input! The patch for the modify state looks well. I'll schedule it for the 3.8 release.

Concerning the messagebox: As long as the title problem stays unsolved I think it's better not to change that behavior.

Cheers
Claudio
Previous Topic:Scout vs Riena platform
Next Topic:Scout development
Goto Forum:
  


Current Time: Fri Oct 24 08:36:08 GMT 2014

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

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