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
Notification of unsaved changes
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 ?
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()
I opened the bug 365809 for the first point:
Jeremie Bresson wrote on Sat, 03 December 2011 12:06
Notification of unsaved changes
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...