Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 3.0
-
Fix Version/s: 4.0 - Beta, 4.0
-
Component/s: Viewer RI
-
Labels:None
-
Environment:Mac OS X
-
Affects:Sample App./Tutorial, Compatibility/Configuration
Description
When running the ICEpdf Viewer RI Swing application on OS X platforms the application menus are not adjusted to meet Mac UI expectations. Further integration work should be done to make the ViewerRI behave in a more Mac-like manner.
Specifically:
- The application menu should appear at the top of the desktop (Mac menubar) instead of inside the application window frame.
- The application name should appear in the leftmost menu-item of the Mac menubar.
- The native Mac application menu in the desktop menubar should be integrated with the application to support the "About" and "Quit" functions.
- The application menubar should *not* display the "About" or "Exit" menuitems when running on a Mac, as these are part of the native Application menu.
Specifically:
- The application menu should appear at the top of the desktop (Mac menubar) instead of inside the application window frame.
- The application name should appear in the leftmost menu-item of the Mac menubar.
- The native Mac application menu in the desktop menubar should be integrated with the application to support the "About" and "Quit" functions.
- The application menubar should *not* display the "About" or "Exit" menuitems when running on a Mac, as these are part of the native Application menu.
Fixed.
All code is still multi-platform friendly, but had to add a new .jar to the lib folder for this: AppleJavaExtensions.jar. This is a stub-jar of the required Apple OS APIs and is not required at runtime, just compile-time on non-Mac platforms.
Added: icepdf/lib/AppleJavaExtensions.jar
Modified: icepdf/viewer/src/org/icepdf/ri/common/SwingViewBuilder.java
Modified: icepdf/viewer/src/org/icepdf/ri/viewer/Launcher.java
Committed revision 19683.