Ignore:
Timestamp:
07/12/16 23:49:55 (8 years ago)
Author:
davidb
Message:

Refactoring to allow support for additional scriptable languages. In this case, Python being added in through Jythohn Java library

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/items/widgets/JSWidget.java

    r919 r1078  
    4343public class JSWidget extends DataFrameWidget implements JSThreadable {
    4444       
    45         private static final Object global = Javascript2.eval("new Object()");
     45        private static Object global = null;
    4646       
    4747        // a method to run that will set up and return the root JComponent for this Widget
     
    6868        private JSWidget(Text source, int width, int height, String init, String save, String load) throws Exception {
    6969                super(source, new JPanel(new BorderLayout()), -1, width, -1, -1, height, -1);
     70                if (global == null) {
     71                    global = Javascript2.eval("new Object()");
     72                }
    7073                this.init = init;
    7174                this.save = save;
Note: See TracChangeset for help on using the changeset viewer.