MCPcopy Index your code
hub / github.com/processing/processing / rename

Method rename

app/src/processing/app/ui/Recent.java:313–324  ·  view source on GitHub ↗
(Editor editor, String oldPath)

Source from the content-addressed store, hash-verified

311
312
313 synchronized static public void rename(Editor editor, String oldPath) {
314 if (records.size() == Preferences.getInteger("recent.count")) {
315 records.remove(0); // remove the first entry
316 }
317 int index = findRecord(oldPath);
318 //check if record exists
319 if (index != -1) {
320 records.remove(index);
321 }
322 records.add(new Record(editor));
323 save();
324 }
325
326
327 static int findRecord(String path) {

Callers 1

updateInternalMethod · 0.95

Calls 6

getIntegerMethod · 0.95
findRecordMethod · 0.95
saveMethod · 0.95
sizeMethod · 0.45
removeMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected