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:
@@ -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");
|
||||
|
Reference in New Issue
Block a user