changes in progress for 86

This commit is contained in:
benfry
2005-05-01 18:52:27 +00:00
parent f3b1c9a3c9
commit 9a5d1d4be3
6 changed files with 86 additions and 67 deletions

View File

@@ -1359,8 +1359,9 @@ public class Editor extends JFrame
sketch = new Sketch(this, path);
// TODO re-enable this once export application works
exportAppItem.setEnabled(false && !sketch.isLibrary());
buttons.disableRun(sketch.isLibrary());
exportAppItem.setEnabled(false);
//exportAppItem.setEnabled(false && !sketch.isLibrary());
//buttons.disableRun(sketch.isLibrary());
header.rebuild();
if (Preferences.getBoolean("console.auto_clear")) {
console.clear();
@@ -1425,11 +1426,13 @@ public class Editor extends JFrame
* hitting export twice, quickly, and horking things up.
*/
synchronized public void handleExport() {
String what = sketch.isLibrary() ? "Applet" : "Library";
message("Exporting " + what + "...");
//String what = sketch.isLibrary() ? "Applet" : "Library";
//message("Exporting " + what + "...");
message("Exporting applet...");
try {
boolean success = sketch.isLibrary() ?
sketch.exportLibrary() : sketch.exportApplet();
//boolean success = sketch.isLibrary() ?
//sketch.exportLibrary() : sketch.exportApplet();
boolean success = sketch.exportApplet();
if (success) {
message("Done exporting.");
} else {