Re: [Pydev-code] Jython Scripting - is this limited to v2.2?
Brought to you by:
fabioz
From: Fran B. <fra...@gm...> - 2013-03-23 02:54:01
|
On 23 March 2013 02:20, Fabio Zadrozny <fa...@es...> wrote: > Not sure how hard, but it's definitely not trivial. As it's one of the > things that slows down the editor startup, I was considering taking a look > at it as a part of the funding at http://igg.me/at/liclipse, but it'll > depend if the funding succeeds. ok, I'm now a PyDev Knight ;) Is the only way to launch scripts the OfflineAction, or can we create menu entries/toolbar buttons? Is there a wiki page to share snippets? What are people doing with scripting? I just created a script to stop the active debugger, then clean my app (database, sessions, etc) & then restart the debugger. Generic part: from org.eclipse.debug.core import DebugPlugin, ILaunchManager singleton = DebugPlugin.getDefault() launchManager = singleton.getLaunchManager() launches = launchManager.getLaunches() if len(launches): launchConfig = launches[0].getLaunchConfiguration() print "Stopping Debug" launchManager.removeLaunches(launches) else: launchConfig = None # (clean app happens in here, but not included) if launchConfig: print "Starting Debug" launch = launchConfig.launch(ILaunchManager.DEBUG_MODE, None) launchManager.addLaunch(launch) Changes to the script only seem to take effect when I restart Eclipse (4.2.2) - the docs suggested that no restart was required? Thanks, Fran. |