Class CocoaPlatformHelper


  • public class CocoaPlatformHelper
    extends PlatformHelper
    Cocoa platform helper.
    • Constructor Detail

      • CocoaPlatformHelper

        public CocoaPlatformHelper()
    • Method Detail

      • internalInNativeDialog

        protected boolean internalInNativeDialog​(org.eclipse.swt.widgets.Display display)
        Description copied from class: PlatformHelper
        Checks whether a native platform dialog is currently open.
        Overrides:
        internalInNativeDialog in class PlatformHelper
        Parameters:
        display - the Display to use for checking.
        Returns:
        true if a native platform dialog is currently open.
        See Also:
        PlatformHelper.inNativeDialog(Display)
      • internalGrabScreen

        protected java.nio.file.Path internalGrabScreen​(java.nio.file.Path dir)
                                                 throws java.io.IOException
        Description copied from class: PlatformHelper
        Tries to grab the screen and stores a screenshot by invoking a platform dependent command.
        Overrides:
        internalGrabScreen in class PlatformHelper
        Parameters:
        dir - the directory to store the screenshot into.
        Returns:
        the created screenshot file.
        Throws:
        java.io.IOException - if an I/O error occurs.