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

Method hasLabel

ij/src/main/java/ij/gui/GenericDialog.java:328–332  ·  view source on GitHub ↗

Returns whether the list of labels for macro recording or macro creation contains a given label.

(String label)

Source from the content-addressed store, hash-verified

326
327 /** Returns whether the list of labels for macro recording or macro creation contains a given label. */
328 private boolean hasLabel(String label) {
329 for (Object o : labels.keySet())
330 if (labels.get(o).equals(label)) return true;
331 return false;
332 }
333
334 /** Adds an 8 column text field.
335 * @param label the label

Callers 1

saveLabelMethod · 0.95

Calls 3

keySetMethod · 0.80
equalsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected