Twitter github

Plug-in Spy, RCP and Eclipse 3.3

I’ve been asked a few questions about the Plug-in Spy (ALT+SHIFT+F1) but haven’t had time to reply, but now I do so here’s my chance.

Does the Plug-in Spy work in RCP?

Yes, but you’ll miss out on the fancy hyperlinking… instead all classes are resolved to their fully qualified name. Outside the normal RCP set of dependencies, the spy depends on org.eclipse.ui.forms which is fairly minimal and is probably in your RCP application already. Here’s a quick screenshot of the famous RCP Mail example from PDE with two extra dependencies added (org.eclipse.ui.forms and org.eclipse.pde.runtime which contains the spy):

Does the Plug-in Spy work in Eclipse 3.3?

It should, it doesn’t depend on anything from the 3.4 code base. I’d just build your own copy of the spy from HEAD and export it using the PDE wizards.

Does the Plug-in Spy work in Eclipse 3.2?

No, it takes advantage of some things found in the Platform Command Framework which made its debut in the 3.3 version of Eclipse. In theory the spy could work in 3.2, but it would require a rewrite and that’s something I’m not interested or have time for right now. There are bigger fish to fry in PDE at the moment to make plug-in development truly a first-class experience.

Happy spying!

  • Phil Beauvoir

    Hi Chris, I’m trying to get this to compile for Eclipse 3.3. I checked out the org.eclipse.pde.runtime project from CVS, but getting a problem with SpyIDEUtil class where it complains about SearchablePluginsManager.createProxyProject() method. Is this a 3.4 method?

  • Phil Beauvoir

    Hi Chris, I’m trying to get this to compile for Eclipse 3.3. I checked out the org.eclipse.pde.runtime project from CVS, but getting a problem with SpyIDEUtil class where it complains about SearchablePluginsManager.createProxyProject() method. Is this a 3.4 method?

  • Chris Aniszczyk (zx)

    I’ll look into it tonight, if there’s an alternative to using this method than I can consider a patch to appease the 3.3 crowd.

    For now, need to run to lunch 🙂

  • Chris Aniszczyk (zx)

    I’ll look into it tonight, if there’s an alternative to using this method than I can consider a patch to appease the 3.3 crowd.For now, need to run to lunch 🙂

  • CARFIELD

    In fact… how can I download and install it?

  • CARFIELD

    In fact… how can I download and install it?

  • KetanPadegaonkar

    Cool stuff,

    I’m looking forward to hacking this away into SWTBot 🙂

    I’ve already done this with SWT Spy.

  • KetanPadegaonkar

    Cool stuff,I’m looking forward to hacking this away into SWTBot :-)I’ve already done this with SWT Spy.

  • Eric

    So, any progress on getting it to work in 3.3?

  • Eric

    So, any progress on getting it to work in 3.3?

  • Koji Hashimoto

    Hi,

    I’ve successfully got your great plug-in to work in Eclipse 3.3 by simply copying the createProxyProject() method into SpyIDEUtil class.
    I know, of cource, it is a stupid way. Do you have any better solution?

    Anyway, Plug-in Spy is very cool!

    I’ve extracted Spy related code from org.eclipse.pde.runtime, and created an independent bundle which enables Plug-in Registry View of 3.3 to still work. This is currently only for my personal use, but I believe that it is useful for Eclipse 3.3 plugin developers. Would you mind if I made the independent bundle downloadable under EPL for everyone?

  • Koji Hashimoto

    Hi,I’ve successfully got your great plug-in to work in Eclipse 3.3 by simply copying the createProxyProject() method into SpyIDEUtil class.I know, of cource, it is a stupid way. Do you have any better solution?Anyway, Plug-in Spy is very cool!I’ve extracted Spy related code from org.eclipse.pde.runtime, and created an independent bundle which enables Plug-in Registry View of 3.3 to still work. This is currently only for my personal use, but I believe that it is useful for Eclipse 3.3 plugin developers. Would you mind if I made the independent bundle downloadable under EPL for everyone?

  • Chris Aniszczyk (zx)

    Thanks for your kind words Koji.

    I opened a bug to address 3.3 compatibility issues. If you have a patch you can attach, please do so I can look at getting it fixed in 3.4M4.

    Thanks!

  • Chris Aniszczyk (zx)

    Thanks for your kind words Koji.I opened a bug to address 3.3 compatibility issues. If you have a patch you can attach, please do so I can look at getting it fixed in 3.4M4.Thanks!

  • Koji Hashimoto

    OK, I’ll do it after this weekend…

  • Koji Hashimoto

    OK, I’ll do it after this weekend…