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

Method getAllCommands

ij/src/main/java/ij/plugin/Hotkeys.java:139–152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137 }
138
139 String[] getAllCommands() {
140 Vector v = new Vector();
141 Hashtable commandTable = Menus.getCommands();
142 Hashtable shortcuts = Menus.getShortcuts();
143 for (Enumeration en=commandTable.keys(); en.hasMoreElements();) {
144 String cmd = (String)en.nextElement();
145 if (!cmd.startsWith("*") && !cmd.startsWith(" ") && cmd.length()<35 && !shortcuts.contains(cmd))
146 v.addElement(cmd);
147 }
148 String[] list = new String[v.size()];
149 v.copyInto((String[])list);
150 Arrays.sort(list, String.CASE_INSENSITIVE_ORDER);
151 return list;
152 }
153
154 String[] getAvailableShortcuts() {
155 Vector v = new Vector();

Callers 2

installHotkeyMethod · 0.95
listCommandsMethod · 0.95

Calls 9

getCommandsMethod · 0.95
getShortcutsMethod · 0.95
startsWithMethod · 0.80
lengthMethod · 0.65
containsMethod · 0.45
addElementMethod · 0.45
sizeMethod · 0.45
copyIntoMethod · 0.45
sortMethod · 0.45

Tested by

no test coverage detected