Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Enabling the Plug-In Spy
Enabling the Plug-In Spy [message #1734633] Fri, 10 June 2016 06:44 Go to next message
Vlad Acretoaie is currently offline Vlad AcretoaieFriend
Messages: 95
Registered: April 2014
Member
Hi,

I'd like to enable the plug-in spy in my RCP application. To do so, I have included the following plug-ins in its build path:

org.eclipse.core.runtime
org.eclipse.ui
org.eclipse.ui.forms

However, nothing happens when I press ALT+SHIFT+F1 in my application.

Is there any other plug-in I should add, or something else I should do to enable the plug-in spy?

Thanks in advance!

Cheers,
Vlad
Re: Enabling the Plug-In Spy [message #1734809 is a reply to message #1734633] Mon, 13 June 2016 06:42 Go to previous messageGo to next message
Vlad Acretoaie is currently offline Vlad AcretoaieFriend
Messages: 95
Registered: April 2014
Member
I was able to find a workaround for this problem, so I am writing my solution here in case anyone else can use it.

What I ended up doing was defining my own command for opening the Plug-In Spy in my plugin's plugin.xml file:

<command
    description="Spy Command"
    id="org.eclipse.pde.runtime.spy.commands.mySpyCommand"
    name="Spy Command">
</command>


I associated a Handler to this command, pointing to the SpyHandler class provided by PDE:

<handler
    class="org.eclipse.pde.internal.runtime.spy.handlers.SpyHandler"
    commandId="org.eclipse.pde.runtime.spy.commands.mySpyCommand">
</handler>


Finally, I created a binding between my command and the Alt+Shift+F1 key combination:

<key
    commandId="org.eclipse.pde.runtime.spy.commands.mySpyCommand"
    contextId="org.eclipse.ui.contexts.dialogAndWindow"
    schemeId="myscheme"
    sequence="M3+M2+F1">
</key>


I still don't know why I was not able to use the Plug-In Spy out of the box, but this workaround did the trick for me.

Cheers,
Vlad
Re: Enabling the Plug-In Spy [message #1734867 is a reply to message #1734633] Mon, 13 June 2016 06:42 Go to previous messageGo to next message
Vlad Acretoaie is currently offline Vlad AcretoaieFriend
Messages: 95
Registered: April 2014
Member
I was able to find a workaround for this problem, so I am writing my solution here in case anyone else can use it.

What I ended up doing was defining my own command for opening the Plug-In Spy in my plugin's plugin.xml file:


<command
description="Spy Command"
id="org.eclipse.pde.runtime.spy.commands.mySpyCommand"
name="Spy Command">
</command>


I associated a Handler to this command, pointing to the SpyHandler class provided by PDE:


<handler
class="org.eclipse.pde.internal.runtime.spy.handlers.SpyHandler"
commandId="org.eclipse.pde.runtime.spy.commands.mySpyCommand">
</handler>


Finally, I created a binding between my command and the Alt+Shift+F1 key combination:


<key
commandId="org.eclipse.pde.runtime.spy.commands.mySpyCommand"
contextId="org.eclipse.ui.contexts.dialogAndWindow"
schemeId="myscheme"
sequence="M3+M2+F1">
</key>


I still don't know why I was not able to use the Plug-In Spy out of the box, but this workaround did the trick for me.

Cheers,
Vlad
Re: Enabling the Plug-In Spy [message #1735706 is a reply to message #1734633] Wed, 22 June 2016 07:43 Go to previous message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1812
Registered: July 2009
Location: Firenze, Italy
Senior Member
On 10/06/2016 08:44, Vlad Acretoaie wrote:
> Hi,
>
> I'd like to enable the plug-in spy in my RCP application. To do so, I
> have included the following plug-ins in its build path:
>
> org.eclipse.core.runtime
> org.eclipse.ui
> org.eclipse.ui.forms
>
> However, nothing happens when I press ALT+SHIFT+F1 in my application.
>
> Is there any other plug-in I should add, or something else I should do
> to enable the plug-in spy?
>
> Thanks in advance!
>
> Cheers,
> Vlad

Hi

you should add also org.eclipse.pde.runtime

see http://blog.vogella.com/2009/06/22/eclipse-plug-in-spy-eclipse-rcp/

--
Prof. Lorenzo Bettini, Computer Science, DISIA, Univ. Firenze
HOME: http://www.lorenzobettini.it
Xtext Book:
http://www.packtpub.com/implementing-domain-specific-languages-with-xtext-and-xtend/book


Previous Topic:create custom export wizard
Next Topic:Using JavaCompiler within a Plug-in: Package does not exist
Goto Forum:
  


Current Time: Fri Apr 26 22:40:52 GMT 2024

Powered by FUDForum. Page generated in 0.03685 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top