MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / getImageJMenu

Method getImageJMenu

ij/src/main/java/ij/Menus.java:907–916  ·  view source on GitHub ↗

Returns the specified ImageJ menu (e.g., "File>New") or null if it is not found.

(String menuPath)

Source from the content-addressed store, hash-verified

905
906 /** Returns the specified ImageJ menu (e.g., "File>New") or null if it is not found. */
907 public static Menu getImageJMenu(String menuPath) {
908 if (menus==null && !GraphicsEnvironment.isHeadless())
909 IJ.init();
910 if (menus==null)
911 return null;
912 if (menus.get(menuPath)!=null)
913 return getMenu(menuPath, false);
914 else
915 return null;
916 }
917
918 private static Menu getMenu(String menuPath) {
919 if (GraphicsEnvironment.isHeadless())

Callers 2

getLutsMethod · 0.95
getSampleImageNamesMethod · 0.95

Calls 3

initMethod · 0.95
getMenuMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected