MCPcopy Index your code
hub / github.com/benfry/processing4 / append

Method append

app/src/processing/app/ui/Recent.java:238–251  ·  view source on GitHub ↗

Called by Base when a new sketch is opened, to add the sketch to the last entry on the Recent queue. If the sketch is already in the list, it is first removed so it doesn't show up multiple times.

(Editor editor)

Source from the content-addressed store, hash-verified

236 * first removed so it doesn't show up multiple times.
237 */
238 synchronized static public void append(Editor editor) {
239 if (!editor.getSketch().isUntitled()) {
240 // If this sketch is already in the menu, remove it
241 remove(editor);
242
243 // If the list is full, remove the first entry
244 if (records.size() == Preferences.getInteger("recent.count")) {
245 records.remove(0); // remove the first entry
246 }
247
248 records.add(new Record(editor));
249 save();
250 }
251 }
252
253
254 synchronized static public void rename(Editor editor, String oldPath) {

Callers 15

handleOpenMethod · 0.95
handleOpenInternalMethod · 0.95
saveAsMethod · 0.95
listFilesImplMethod · 0.45
contentsToClassPathMethod · 0.45
markDownLinksToHtmlMethod · 0.45
removeMarkDownLinksMethod · 0.45
wordsFolderExhaustMethod · 0.45
getClassPathMethod · 0.45
sanitizeNameMethod · 0.45
addJarListMethod · 0.45
updateDescriptionMethod · 0.45

Calls 7

removeMethod · 0.95
getIntegerMethod · 0.95
saveMethod · 0.95
isUntitledMethod · 0.80
getSketchMethod · 0.80
sizeMethod · 0.45
addMethod · 0.45

Tested by 2

readMethod · 0.36
UTCompilerMethod · 0.36