/** * Assign a Runnable object that will be invoked when the user * selects "Exit..." or closes the Debugger main window. */ public void setExitAction(Runnable r) { debugGui.setExitAction(r); }
/** * Assign a Runnable object that will be invoked when the user * selects "Exit..." or closes the Debugger main window. */ public void setExitAction(Runnable r) { debugGui.setExitAction(r); }
/** * Assign a Runnable object that will be invoked when the user * selects "Exit..." or closes the Debugger main window. */ public void setExitAction(Runnable r) { debugGui.setExitAction(r); }
SlingRhinoDebugger(String windowTitle) { gui = new SwingGui(this, windowTitle); gui.pack(); gui.setVisible(true); gui.setExitAction(new Runnable() { public void run() { if (slingContextFactory != null) { slingContextFactory.debuggerStopped(); } } }); }
public RhinoDebugger(String source, ContextFactory factory) { dim = new Dim(); dim.setSourceProvider(new LscSourceProvider(source)); dim.attachTo(factory);// org.mozilla.javascript.tools.shell.Main.shellContextFactory); debugGui = new LscRhinoGui(dim, "Debugging LSC javascript", this); debugGui.setExitAction(this); debugGui.pack(); debugGui.setSize(600, 460); }
/** * Activate the Debugger */ public synchronized void activate() { factory = ContextFactory.getGlobal(); Global global = new Global(); global.init(factory); global.setIn(System.in); global.setOut(System.out); global.setErr(System.err); initDebugger(); ScopeProvider sp = new AlfrescoScopeProvider((Scriptable)global); dim.setScopeProvider(sp); gui = new AlfrescoGui(dim, getTitle(), this); gui.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); gui.setExitAction(this); }
/** * Activate the Debugger */ public synchronized void activate() { factory = ContextFactory.getGlobal(); Global global = new Global(); global.init(factory); global.setIn(System.in); global.setOut(System.out); global.setErr(System.err); initDebugger(); ScopeProvider sp = new AlfrescoScopeProvider((Scriptable)global); dim.setScopeProvider(sp); gui = new AlfrescoGui(dim, getTitle(), this); gui.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); gui.setExitAction(this); }
/** * Activate the Debugger */ public synchronized void activate() { factory = ContextFactory.getGlobal(); Global global = new Global(); global.init(factory); global.setIn(System.in); global.setOut(System.out); global.setErr(System.err); initDebugger(); ScopeProvider sp = new AlfrescoScopeProvider((Scriptable)global); dim.setScopeProvider(sp); gui = new AlfrescoGui(dim, getTitle(), this); gui.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); gui.setExitAction(this); }