MCPcopy Index your code
hub / github.com/adolfintel/NoteBot / delete

Method delete

StickyNotes/src/com/dosse/stickynotes/Main.java:255–265  ·  view source on GitHub ↗

deletes the specified note @param n note to be deleted

(Note n)

Source from the content-addressed store, hash-verified

253 * @param n note to be deleted
254 */
255 public static void delete(Note n) {
256 synchronized (notes) {
257 notes.remove(n);
258 n.setVisible(false);
259 n.dispose();
260 saveState();
261 if (notes.isEmpty()) {
262 System.exit(0);
263 }
264 }
265 }
266
267 public static void bringToFront(Note n) {
268 synchronized (notes) {

Callers 3

actionPerformedMethod · 0.95
keyPressedMethod · 0.95
saveStateMethod · 0.80

Calls 1

saveStateMethod · 0.95

Tested by

no test coverage detected