Kaydet (Commit) 3336a507 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

rhbz#1192732: Revert "From the context of the code, this field should...

...not be static."  This reverts commit
6d4c1f0d.  Whatever made the author of that
commit think rhinoWindow shouldn't be static, it clearly needs to be, as in
edit()'s Runnable.run(), the usage of rhinoWindow at the end relies on
rhinoWindow being set via the

  new ScriptEditorForJavaScript(context, url)

call to initUI() (or else rhinoWindow already being set from a previous such
call if already editor != null).
üst 0ccf2c77
......@@ -48,7 +48,7 @@ public class ScriptEditorForJavaScript implements ScriptEditor {
// template for JavaScript scripts
private static String JSTEMPLATE;
private Main rhinoWindow;
static private Main rhinoWindow;
private URL scriptURL;
// global list of ScriptEditors, key is URL of file being edited
private static Map<URL, ScriptEditorForJavaScript> BEING_EDITED = new
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment