Ignore:
Timestamp:
2021-02-08T21:57:55+01:00 (5 years ago)
Author:
GerdP
Message:

see #20257:macOS build process fixes and improvements

  • ​fix checkstyle issues
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/PlatformHookOsx.java

    r17487 r17488  
    3434import org.openstreetmap.josm.spi.preferences.Config;
    3535
    36 
    3736/**
    3837 * {@code PlatformHook} implementation for Apple macOS (formerly Mac OS X) systems.
     
    8483            }
    8584            // setup the dock icon. It is automatically set with application bundle and Web start but we need
    86             // to do it manually if run with `java -jar``. 
     85            // to do it manually if run with `java -jar``.
    8786            eawtApplication.getDeclaredMethod("setDockIconImage", Image.class).invoke(
    88                 appli, 
     87                appli,
    8988                Optional.ofNullable(
    90                     new ImageProvider(Config.getUrls().getJOSMWebsite()+"/logo-macos.png").setOptional(true).get()
    91                 ).orElse( // Fall back to default icon
     89                    new ImageProvider(Config.getUrls().getJOSMWebsite()+"/logo-macos.png").setOptional(true).get())
     90                .orElse(// Fall back to default icon
    9291                    ImageProvider.get("logo")).getImage()
    9392            );
    94        
     93
    9594            // enable full screen
    9695            enableOSXFullscreen(MainApplication.getMainFrame());
Note: See TracChangeset for help on using the changeset viewer.