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

Method installStartupTools

ij/src/main/java/ij/gui/Toolbar.java:2016–2036  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2014 }
2015
2016 public void installStartupTools() {
2017 if (IJ.debugMode) IJ.log("Toolbar.installStartupTools");
2018 for (int i=0; i<=6; i++) {
2019 String name = Prefs.get(TOOL_KEY + (i/10)%10 + i%10, "");
2020 if (IJ.debugMode) IJ.log(" "+i+" "+name);
2021 if (name.equals("")) continue;
2022 installingStartupTool = true;
2023 boolean ok = installBuiltinTool(name);
2024 if (!ok) {
2025 ok = installToolsetTool(name);
2026 if (!ok) { // install tool in plugins/Tools
2027 if (name.endsWith("Menu Tool"))
2028 name = name.substring(0, name.length()-5);
2029 Hashtable commands = Menus.getCommands();
2030 if (commands!=null && commands.get(name)!=null)
2031 IJ.run(name);
2032 }
2033 }
2034 installingStartupTool = false;
2035 }
2036 }
2037
2038 // install tool from ImageJ/macros/toolsets
2039 private boolean installToolsetTool(String name) {

Callers 2

installFileMethod · 0.95
installFromIJJarMethod · 0.95

Calls 10

logMethod · 0.95
getMethod · 0.95
installBuiltinToolMethod · 0.95
installToolsetToolMethod · 0.95
getCommandsMethod · 0.95
runMethod · 0.95
substringMethod · 0.80
lengthMethod · 0.65
equalsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected