Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Hooking a detector
Hooking a detector [message #244525] Thu, 14 June 2007 09:12 Go to next message
Eclipse UserFriend
Originally posted by: rudolf.pischek.cleverlance.com

Hi, I've a problem with hooking detector in standard JDT JavaEditor
-My example: I have an annotation such as @Select(id = "MyIbatisSQLId").
When I press CTRL and click mouse on "MyIbatisSQLId" then my detector open
the correct ibatis map.
-My problem is that I cannot hook (register) my detector which realize
this. My first idea was find extension point similar to
org.eclipse.wst.sse.ui.editorConfiguration (this ext. point has all what I
need but for XML editors). I didn't find it in JDT.
-I think that the right way is make Configuration class extends
org.eclipse.jdt.ui.text.JavaSourceViewerConfiguration, but How can I
register this class in standard JDT editor. Of course I can call
setSourceViewerConfiguration(myConfiguration) in initializeEditor or
constructor of editor, BUT unfortunately I don't want new special editor
(joined by extension point org.eclipse.ui.editors).
Thanks for ideas
Rudolf Pischek
Re: Hooking a detector [message #244549 is a reply to message #244525] Fri, 15 June 2007 03:43 Go to previous message
Eclipse UserFriend
Rudolf Pischek wrote:

> Hi, I've a problem with hooking detector in standard JDT JavaEditor
> -My example: I have an annotation such as @Select(id =
> "MyIbatisSQLId"). When I press CTRL and click mouse on "MyIbatisSQLId"
> then my detector open the correct ibatis map.
> -My problem is that I cannot hook (register) my detector which realize
> this. My first idea was find extension point similar to
> org.eclipse.wst.sse.ui.editorConfiguration (this ext. point has all
> what I need but for XML editors). I didn't find it in JDT.
> -I think that the right way is make Configuration class extends
> org.eclipse.jdt.ui.text.JavaSourceViewerConfiguration, but How can I
> register this class in standard JDT editor. Of course I can call
> setSourceViewerConfiguration(myConfiguration) in initializeEditor or
> constructor of editor, BUT unfortunately I don't want new special
> editor (joined by extension point org.eclipse.ui.editors).

There is a new extension point in 3.3:
org.eclipse.ui.workbench.texteditor.hyperlinkDetectors. As a template
you can take a look at the plugin.xml of JDT UI where they contribute
their detectors.

Dani

> Thanks for ideas Rudolf Pischek
>
Previous Topic:Java editor uses BOTH Eclipse text editing framework AND some sort of parser?
Next Topic:Add feature based on Java project config
Goto Forum:
  


Current Time: Wed Jun 04 10:40:11 EDT 2025

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

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

Back to the top