Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Plugin help: Best practices?
Plugin help: Best practices? [message #225896] Thu, 16 March 2006 10:07
Eclipse UserFriend
Originally posted by: pebo.dsb.dk

Hi

I’m in the middle of making my first plug-in, and hope I can get some
feedback on Best Practices from how others who might have some more
Eclipse plug-in experience than I have.

I want to do the following:
- Keep using the default Java Editor.
- "Catch an event" that I can hook some code onto (or trigger an event in
my plugin depending on how you put it)
The event I want to activate on is when a new method signature is
completed:
ie. when a user writes something like "public void newMethod(int x) { ".
Said in another way, I want to "do something" when a user writes the
closing bracket.
- On this "event", I want to run some code (A search with the "public void
newMethod(int x) { " that the user wrote, and then display the result in a
view.

I have looked at the following extension points:
-org.eclipse.ui.editors, this seems to lead me nowhere, since I can't
extend the default java editor
-org.eclipse.ui.editors.markerUpdaters,
org.eclipse.ui.javaEditorTextHovers, org.eclipse.ui.quickAssistProcessors,
org.eclipse.jdt.ui.foldingStructureProviders.

foldingStructureProviders looks promising, as it shows folding regions
immediately after a new method signature is written, but I can't get it to
work with the default java editor.

So... is it possible to do what I want? And if hopefully so, what would be
the best way to do it? Any suggestions are more than welcome, as I am a
bit stuck at the moment :)

Cheers, and thanks in advance for your time.

/Per
Previous Topic:TextHover information string is truncated
Next Topic:"Sort Members" for a whole project?
Goto Forum:
  


Current Time: Fri Dec 27 03:42:57 GMT 2024

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

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

Back to the top