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

Method getStrippedPlugins

ij/src/main/java/ij/Menus.java:1064–1074  ·  view source on GitHub ↗

Returns a list of the plugins with directory names removed.

(String[] plugins)

Source from the content-addressed store, hash-verified

1062
1063 /** Returns a list of the plugins with directory names removed. */
1064 String[] getStrippedPlugins(String[] plugins) {
1065 String[] plugins2 = new String[plugins.length];
1066 int slashPos;
1067 for (int i=0; i<plugins2.length; i++) {
1068 plugins2[i] = plugins[i];
1069 slashPos = plugins2[i].lastIndexOf('/');
1070 if (slashPos>=0)
1071 plugins2[i] = plugins[i].substring(slashPos+1,plugins2[i].length());
1072 }
1073 return plugins2;
1074 }
1075
1076 @AstroImageJ(reason = "Remove deprecated for removal setting of SecurityManager", modified = true)
1077 void setupPluginsAndMacrosPaths() {

Callers 1

installPluginsMethod · 0.95

Calls 2

substringMethod · 0.80
lengthMethod · 0.65

Tested by

no test coverage detected