How to customize the mac specific menu items
I see the following code in AboutAction.java
e.getPresentation().setVisible(!SystemInfo.isMacSystemMenu || !ActionPlaces.MAIN_MENU.equals(e.getPlace()));
This 'about' action is probably the one in Help menu.
But how do I override the action About IntelliJ Idea. I tried
manager.getActionIds("About"); //but dont find any
But I am not able to locate the default Mac About action anywhere
Please sign in to leave a comment.
Actually it's native handler. Enjoy this code snippet:
com.apple.eawt.Application.getApplication().setAboutHandler(event -> Messages.showInfoMessage("Oops!", "About"));
Thanks for the hint. Upon trying, found out that it may not work with Java 8
This makes it work (to have it in build.gradle) but not sure if it is proper/safe solution
compileJava {options.fork = true
options.forkOptions.javaHome = new File("${System.properties.'java.home'}")
options.compilerArgs << "-XDignore.symbol.file=true"
}