Revision 560 org.gvsig.scripting/trunk/org.gvsig.scripting/org.gvsig.scripting.lib/org.gvsig.scripting.lib.impl/src/main/java/org/gvsig/scripting/impl/DefaultScriptingScript.java

View differences:

DefaultScriptingScript.java
316 316
        }
317 317
    }
318 318

  
319
    public Object run() {
319
    public void addDisposable(Disposable disposable) {
320
        //pass
321
    }
322

  
323
    /**
324
     * Run the main function of this script.
325
     * This method is created by familiarity when running the script from another script.
326
     * @return 
327
     */
328
    public Object main() {
320 329
        return this.run(null);
321 330
    }
322 331

  
323
    public void addDisposable(Disposable disposable) {
324
        //pass
332
    /**
333
     * Run the main function of this script.
334
     * This method is created by familiarity when running the script from another script.
335
     * @return 
336
     */
337
    public Object main(Object... args) {
338
        return this.run(args);
325 339
    }
326 340

  
341
        
342
    public Object run() {
343
        return this.run(null);
344
    }
345

  
327 346
    @Override
328 347
    public Object run(Object args[]) {
329 348
        if (args == null) {
......
500 519
    public ScriptingUnit get(String name) {
501 520
        return this.manager.getScript(name);
502 521
    }
522

  
523
    public ScriptingUnit get(File file) {
524
        return this.manager.getScript(file);
525
    }
503 526
}

Also available in: Unified diff