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

Method validMacroName

ij/src/main/java/ij/Menus.java:1227–1230  ·  view source on GitHub ↗
(String name, boolean hasUnderscore)

Source from the content-addressed store, hash-verified

1225 }
1226
1227 private static boolean validMacroName(String name, boolean hasUnderscore) {
1228 return (hasUnderscore&&name.endsWith(".txt")) || name.endsWith(".ijm")
1229 || name.endsWith(".js") || name.endsWith(".bsh") || name.endsWith(".py");
1230 }
1231
1232 /** Installs a plugin in the Plugins menu using the class name,
1233 with underscores replaced by spaces, as the command. */

Callers 3

getPluginsMethod · 0.95
checkSubdirectoryMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected