continued development and cleanup

This commit is contained in:
benfry
2011-01-22 19:12:04 +00:00
parent 62c810a093
commit 953fee5f07
7 changed files with 88 additions and 161 deletions

View File

@@ -659,7 +659,7 @@ public class Compiler {
static protected void handleCrustyCode(SketchException rex) {
rex.setMessage("This code needs to be updated, " +
"please read the Changes page on the Wiki.");
Base.showChanges();
JavaEditor.showChanges();
}

View File

@@ -61,7 +61,7 @@ public class JavaEditor extends Editor {
JMenuItem exportApplet = Base.newJMenuItem(appletTitle, 'E');
exportApplet.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
handleExportProject();
handleExportApplet();
}
});
@@ -69,7 +69,7 @@ public class JavaEditor extends Editor {
JMenuItem exportApplication = Base.newJMenuItemShift(appTitle, 'E');
exportApplication.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
handleExportPackage();
handleExportApplication();
}
});
return buildFileMenu(new JMenuItem[] { exportApplet, exportApplication });
@@ -200,7 +200,7 @@ public class JavaEditor extends Editor {
* Made synchronized to (hopefully) avoid problems of people
* hitting export twice, quickly, and horking things up.
*/
public void handleExportProject() {
public void handleExportApplet() {
if (handleExportCheckModified()) {
toolbar.activate(JavaToolbar.EXPORT);
try {
@@ -235,7 +235,7 @@ public class JavaEditor extends Editor {
/**
* Handler for Sketch → Export Application
*/
public void handleExportPackage() {
public void handleExportApplication() {
toolbar.activate(JavaToolbar.EXPORT);
if (handleExportCheckModified()) {

View File

@@ -113,7 +113,7 @@ public class JavaToolbar extends EditorToolbar {
case EXPORT:
if (shift) {
jeditor.handleExportPackage();
jeditor.handleExportApplication();
} else {
jeditor.handleExportProject();
}