IssueZilla 15105 - add support for editing Rhino scripts stored in documents

Disable editing when debugging Rhino scripts
Disable Save when editing document scripts
This commit is contained in:
Tomas O'Connor
2003-06-02 14:33:29 +00:00
parent 6ce9bc07f2
commit 3390552d38
2 changed files with 22 additions and 7 deletions

View File

@@ -123,6 +123,10 @@ public class OOBeanShellDebugger implements OOScriptDebugger, ActionListener, Do
JButton b = new JButton(labels[i]);
b.addActionListener(this);
p.add(b);
if (labels[i].equals("Save") && filename == null) {
b.setEnabled(false);
}
}
frame.getContentPane().add(sp, "Center");