diff --git a/app/src/processing/app/Editor.java b/app/src/processing/app/Editor.java index 6ec2b4936..bf5c486a8 100644 --- a/app/src/processing/app/Editor.java +++ b/app/src/processing/app/Editor.java @@ -649,6 +649,14 @@ public abstract class Editor extends JFrame implements RunnerListener { menu.addSeparator(); + item = Base.newJMenuItem("Auto Format", 'T'); + item.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent e) { + handleAutoFormat(); + } + }); + menu.add(item); + item = Base.newJMenuItem("Comment/Uncomment", '/'); item.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { diff --git a/app/src/processing/app/Library.java b/app/src/processing/app/Library.java index 73daf550f..815ee2302 100644 --- a/app/src/processing/app/Library.java +++ b/app/src/processing/app/Library.java @@ -215,6 +215,8 @@ public class Library { } + static protected HashMap packageWarningMap = new HashMap(); + /** * Add the packages provided by this library to the master list that maps * imports to specific libraries. @@ -226,12 +228,17 @@ public class Library { // pw.println(pkg + "\t" + libraryFolder.getAbsolutePath()); Library library = importToLibraryTable.get(pkg); if (library != null) { - System.err.println("The library found in " + getPath()); - System.err.println("conflicts with " + library.getPath()); - System.err.println("which already defines the package " + pkg); - System.err.println(); + if (!packageWarningMap.containsKey(pkg)) { + packageWarningMap.put(pkg, null); + System.err.println("The library found in " + getPath()); + System.err.println("conflicts with " + library.getPath()); + System.err.println("which already defines the package " + pkg); + System.err.println("If you have a line in your sketch that reads"); + System.err.println("import " + pkg + ".*;"); + System.err.println("Then you'll need to first remove one of those libraries."); + System.err.println(); + } } else { -// PApplet.println("adding pkg " + pkg + " for " + name); importToLibraryTable.put(pkg, this); } } diff --git a/app/src/processing/app/Mode.java b/app/src/processing/app/Mode.java index 14eeb7fc4..0901d64e0 100644 --- a/app/src/processing/app/Mode.java +++ b/app/src/processing/app/Mode.java @@ -667,8 +667,8 @@ public abstract class Mode { if (targetFolder != null) { // Nuke the old applet/application folder because it can cause trouble if (Preferences.getBoolean("export.delete_target_folder")) { - System.out.println("temporarily skipping deletion of " + targetFolder); - // Base.removeDir(targetFolder); +// System.out.println("temporarily skipping deletion of " + targetFolder); + Base.removeDir(targetFolder); // targetFolder.renameTo(dest); } // Create a fresh output folder (needed before preproc is run next) diff --git a/todo.txt b/todo.txt index c509fbd78..40ffc9569 100644 --- a/todo.txt +++ b/todo.txt @@ -4,10 +4,14 @@ X examples menu still showing in regular mode X import library shows nothing on osx and android X examples not showing up in the window X build.xml problem knocking out the library examples +X auto format missing +X remove "temporarily skipping deletion of" message +X figure out how to suppress errors from find in build.xml _ flickering issue _ when changing sketchbook location, need to reload examples window +_ and libraries, etc.. maybe just require a restart? regressions