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

Method getShortcuts

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

Source from the content-addressed store, hash-verified

180 }
181
182 String[] getShortcuts() {
183 Vector v = new Vector();
184 Hashtable commandTable = Menus.getCommands();
185 for (Enumeration en=commandTable.keys(); en.hasMoreElements();) {
186 String cmd = (String)en.nextElement();
187 if (cmd.startsWith("*"))
188 v.addElement(cmd);
189 }
190 if (v.size()==0)
191 return null;
192 String[] list = new String[v.size()];
193 v.copyInto((String[])list);
194 Arrays.sort(list, String.CASE_INSENSITIVE_ORDER);
195 return list;
196 }
197
198}

Callers 2

removeHotkeyMethod · 0.95
getAvailableShortcutsMethod · 0.45

Calls 6

getCommandsMethod · 0.95
startsWithMethod · 0.80
addElementMethod · 0.45
sizeMethod · 0.45
copyIntoMethod · 0.45
sortMethod · 0.45

Tested by

no test coverage detected