Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Help me with my First Plugin
Help me with my First Plugin [message #73955] Tue, 08 July 2003 09:21
Eclipse UserFriend
Eclipse Plugin Post
Some time ago I developed a hack to generate sounds when a breakpoint is
hit.
My hack works in a single class. When the method startup() is called in my
class, it adds itself as a breakpoint listener to the JDIDebugModel thus:
JDIDebugModel.addJavaBreakpointListener(this)

As a hack it works like a charm. I had to edit the JDIDebugUIPlugin to
load my class and call startup.

For some time I have struggled with trying to turn it into a real plugin.
The first problem is finding the right extension point. There just isn't
one for adding Breakpoint Listeners.
In the end someone suggested I use the catchall Startup extension point
which uses IStartup and will call a method called something like
earlyStartup() in my plugin as soon as the Workbench itself starts up.

So all I need to do now is develop that. I have tried with the PDE but for
some reason, I just don't find it as easy as its should be. I add my
extension point, I create a "new Startup" extension, but I can't seem to
connect it to my class.

Can someone walk me throught this step by step.
What I want to do is
1. Create a new PDE project
2. Make my class hte main class (or make a main plugin class that calls my
class)
3. Attatch it to the Startup extension point, or some better extension
point such that it can start listening before any breakpoints are hit
Previous Topic:Unable to get the Constructor added to the DOMType
Next Topic:Advice on JUnit testing approach
Goto Forum:
  


Current Time: Thu Jul 24 12:35:18 EDT 2025

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

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

Back to the top