Skip to content

Commit

Permalink
#248 add a little documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
chewiebug committed Oct 24, 2020
1 parent 13bd07c commit 50d673a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
</developer>
<developer>
<name>Johan Kaving</name>
<url>https://github.com/jkaving/</url>
</developer>
<developer>
<name>Maciej Kwiecien</name>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
package com.tagtraum.perf.gcviewer.view.util;

import javax.swing.Action;

import com.tagtraum.perf.gcviewer.util.LoggerHelper;

import java.awt.Image;
import java.awt.Window;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.Action;

import com.tagtraum.perf.gcviewer.util.LoggerHelper;

/**
* Handles Mac OS X specific stuff.
Expand Down Expand Up @@ -122,6 +121,7 @@ public Object invoke(Object o, Method method, Object[] args) throws Throwable {
action.actionPerformed(null);
}
if (method.getName().equals("handleQuitRequestWith")) {
// https://www.coderanch.com/how-to/javadoc/appledoc/api/com/apple/eawt/QuitHandler.html
Object quitResponse = args[1];
Class.forName("com.apple.eawt.QuitResponse").getDeclaredMethod("performQuit").invoke(quitResponse);
}
Expand Down

0 comments on commit 50d673a

Please sign in to comment.