On 23 March 2013 02:20, Fabio Zadrozny <[email protected]> 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.

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
pydev-code mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pydev-code

Reply via email to