mirror of
https://github.com/processing/processing4.git
synced 2026-02-13 02:20:45 +01:00
continued development and cleanup
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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()) {
|
||||
|
||||
@@ -113,7 +113,7 @@ public class JavaToolbar extends EditorToolbar {
|
||||
|
||||
case EXPORT:
|
||||
if (shift) {
|
||||
jeditor.handleExportPackage();
|
||||
jeditor.handleExportApplication();
|
||||
} else {
|
||||
jeditor.handleExportProject();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user