Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » How to use completion feature in JDT properties editor?
How to use completion feature in JDT properties editor? [message #666694] Thu, 21 April 2011 16:39 Go to next message
ZFabrik Missing name is currently offline ZFabrik Missing nameFriend
Messages: 3
Registered: April 2011
Junior Member
Hi all,

we use a lot of .properties file for configuration purposes.
So we thought whether it is possible to use the completion feature (CTRL+SPACE) here. The idea is to write a plugin that somehow hooks the completion processor into the JDT properties editor an provide completions on certain properties (let's assume there's a property

java.references=<CTRL+SPACE>

and now I get a list of all available java projects).

Computing the list of proposals is easy for us, but I need some hints of how to hook the completion processor into the properties editor.

What I discovered so far is, that the properties editor does not support the completion feature out of the box. But I thought to extend the class
org.eclipse.jdt.internal.ui.propertiesfileeditor.PropertiesF ileEditor
and enrich it by the completion fetaure.

So maybe there's someone who could give me some hints. Where can I explore it in the JavaEditor (the hooking and the execution)?

Thanks in advance for any support!

Best Regards
Udo

Re: How to use completion feature in JDT properties editor? [message #667774 is a reply to message #666694] Mon, 02 May 2011 07:25 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 21.04.2011 18:39, ZFabrik wrote:
> Hi all,
> we use a lot of .properties file for configuration purposes. So we
> thought whether it is possible to use the completion feature
> (CTRL+SPACE) here. The idea is to write a plugin that somehow hooks
> the completion processor into the JDT properties editor an provide
> completions on certain properties (let's assume there's a property
> java.references=<CTRL+SPACE>
>
> and now I get a list of all available java projects).
> Computing the list of proposals is easy for us, but I need some hints
> of how to hook the completion processor into the properties editor.
>
> What I discovered so far is, that the properties editor does not
> support the completion feature out of the box. But I thought to extend
> the class
> org.eclipse.jdt.internal.ui.propertiesfileeditor.PropertiesF ileEditor
> and enrich it by the completion fetaure.
This means you want to implement your own editor based on an internal
class? If so, the following tutorial might be of help:
http://www.eclipse.org/eclipse/platform-text/eclipseCon/2006 /texteditorrecipes.zip

Dani
>
> So maybe there's someone who could give me some hints. Where can I
> explore it in the JavaEditor (the hooking and the execution)?
>
> Thanks in advance for any support!
>
> Best Regards
> Udo
>
>
Previous Topic:The compare dialog doesn't put changes into the current file
Next Topic:Exporting JAR with unsaved files in unrelated projects
Goto Forum:
  


Current Time: Thu Apr 25 17:07:13 GMT 2024

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

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

Back to the top