Ignore:
Timestamp:
07/04/17 14:42:52 (7 years ago)
Author:
davidb
Message:

Updates to cope with changes in Java ScriptEngine

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/actions/ScriptBase.java

    r1078 r1080  
    5151public abstract class ScriptBase {
    5252       
    53     public String ERROR_FRAMESET;       
    54     public ScriptEngineManager scriptEngineManager;
    55     public ScriptEngine scriptEngine = null;
    56        
     53    protected static ScriptEngineManager scriptEngineManager;
     54    protected String ERROR_FRAMESET;   
     55    protected ScriptEngine scriptEngine = null;
     56
     57    static {
     58        scriptEngineManager = new ScriptEngineManager();
     59    }
     60   
    5761    protected abstract void init();
    5862   
     
    117121
    118122    protected ScriptBase(Frame frame, boolean followLinks) {
    119         if (scriptEngine == null) {
    120             init();
    121         }
     123        init();
    122124        this.parseFrame(frame, followLinks);
    123125    }
Note: See TracChangeset for help on using the changeset viewer.