Changeset 7283 in josm for trunk/src


Ignore:
Timestamp:
2014-07-02T20:36:46+02:00 (5 years ago)
Author:
Don-vip
Message:

see #10025 - add debug/warn messages

File:
1 edited

Legend:

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

    r7253 r7283  
    6262    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
    6363        Boolean handled = Boolean.TRUE;
     64        if (Main.isDebugEnabled()) {
     65            Main.debug("OSX handler: "+method.getName()+" - "+args);
     66        }
    6467        switch (method.getName()) {
    6568        case "openFiles":
     
    6972                    if (oFiles instanceof List) {
    7073                        OpenFileAction.openFiles((List<File>)oFiles, true);
     74                    } else {
     75                        Main.warn("OSX openFiles called without List: "+oFiles);
    7176                    }
    7277                } catch (ReflectiveOperationException | SecurityException | IllegalArgumentException ex) {
    7378                    Main.warn("Failed to access open files event: " + ex);
    7479                }
     80            } else {
     81                Main.warn("OSX openFiles called without args");
    7582            }
    7683            return null;
Note: See TracChangeset for help on using the changeset viewer.