PdeRuntime cleanup work

This commit is contained in:
benfry
2004-01-20 14:44:35 +00:00
parent fe4c93c104
commit 0613497bf2
4 changed files with 78 additions and 124 deletions

View File

@@ -1096,7 +1096,6 @@ public class PdeEditor extends JFrame
public void setSketchModified(boolean what) {
header.sketchModified = what;
//header.update();
header.repaint();
sketchModified = what;
}
@@ -1118,11 +1117,8 @@ public class PdeEditor extends JFrame
String prompt = "Save changes to " + sketch.name + "? ";
if (checking == DO_QUIT) {
int result = 0;
//if (PdeBase.platform == PdeBase.MACOSX) {
// macosx java kills the app even though cancel might get hit
// so the cancel button is (temporarily) left off
// this may be treated differently in macosx java 1.4,
@@ -1142,16 +1138,16 @@ public class PdeEditor extends JFrame
options[0]); // default to save
/*
} else {
Object[] options = { "Yes", "No", "Cancel" };
result = JOptionPane.showOptionDialog(this,
prompt,
"Quit",
JOptionPane.YES_NO_CANCEL_OPTION,
JOptionPane.QUESTION_MESSAGE,
null,
options,
options[2]);
} else {
Object[] options = { "Yes", "No", "Cancel" };
result = JOptionPane.showOptionDialog(this,
prompt,
"Quit",
JOptionPane.YES_NO_CANCEL_OPTION,
JOptionPane.QUESTION_MESSAGE,
null,
options,
options[2]);
*/
if (result == JOptionPane.YES_OPTION) {