@@ -59,7 +59,6 @@ public class Base {
5959 static private final int REVISION = 1273 ;
6060 /** This might be replaced by main() if there's a lib/version.txt file. */
6161 static private String VERSION_NAME = "1273" ; //$NON-NLS-1$
62- /** Set true if this a proper release rather than a numbered revision. */
6362
6463 /**
6564 * True if heavy debugging error/log messages are enabled. Set to true
@@ -81,7 +80,7 @@ public class Base {
8180
8281 /** List of currently active editors. */
8382 protected List <Editor > editors =
84- Collections .synchronizedList (new ArrayList <Editor >());
83+ Collections .synchronizedList (new ArrayList <>());
8584 protected Editor activeEditor ;
8685 /** A lone file menu to be used when all sketch windows are closed. */
8786 protected JMenu defaultFileMenu ;
@@ -98,10 +97,6 @@ public class Base {
9897 protected List <ModeContribution > modeContribs ;
9998 protected List <ExamplesContribution > exampleContribs ;
10099
101- private JMenu sketchbookMenu ;
102-
103- // private Recent recent;
104-
105100 // Used by handleOpen(), this saves the chooser to remember the directory.
106101 // Doesn't appear to be necessary with the AWT native file dialog.
107102 // https://github.com/processing/processing/pull/2366
@@ -1221,7 +1216,7 @@ public void handleNew() {
12211216 newbieName = prefix + suffix + ((char ) ('a' + index ));
12221217 // Also sanitize the name since it might do strange things on
12231218 // non-English systems that don't use this sort of date format.
1224- // http ://code.google. com/p /processing/issues/detail?id=283
1219+ // https ://github. com/processing /processing/issues/322
12251220 newbieName = Sketch .sanitizeName (newbieName );
12261221 newbieDir = new File (newbieParentDir , newbieName );
12271222 index ++;
@@ -1667,12 +1662,6 @@ protected void rebuildSketchbookMenus() {
16671662 }
16681663
16691664
1670- protected void rebuildSketchbookMenu () {
1671- sketchbookMenu .removeAll ();
1672- populateSketchbookMenu (sketchbookMenu );
1673- }
1674-
1675-
16761665 public void populateSketchbookMenu (JMenu menu ) {
16771666 boolean found = false ;
16781667 try {
0 commit comments