Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » How to increase priority of template proposals in Eclipse?(Increase priority of template proposals in Java editor)
How to increase priority of template proposals in Eclipse? [message #725233] Wed, 14 September 2011 10:29 Go to next message
Barendra  is currently offline Barendra Friend
Messages: 2
Registered: September 2011
Junior Member
I am using Eclipse Indigo,I have created a template proposal by the name Connection (Similar to java.sql.Connection). This proposal, through additional comments, would prompt developer of any possible vulnerabilities that may occur using java.sql.Connection.

Is there any way to increase the priority of template proposal so that when I type ctrl+space my proposal,Connection, would be on top of eclipse's Connection proposal?

ctrl+space+space displays only template proposals. It would be more helpful if my templates display along with eclipse's proposal but on higher priority.

Do I have to make change in any class? please help.
(no subject) [message #725948 is a reply to message #725233] Fri, 16 September 2011 09:06 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 14.09.2011 12:29, Barendra wrote:
> I am using Eclipse Indigo,I have created a template proposal by the
> name Connection (Similar to java.sql.Connection). This proposal,
> through additional comments, would prompt developer of any possible
> vulnerabilities that may occur using java.sql.Connection.
>
> Is there any way to increase the priority of template proposal so that
> when I type ctrl+space my proposal,Connection, would be on top of
> eclipse's Connection proposal?
>
> ctrl+space+space displays only template proposals. It would be more
> helpful if my templates display along with eclipse's proposal but on
> higher priority.
You can only do two things:
1) Use names that alphabetically sorted before others.
2) You can choose to show (any) templates before other proposals (Java >
Editor > Content Assist > Advanced).

Dani
>
> Do I have to make change in any class? please help.
>
Re: (no subject) [message #725986 is a reply to message #725948] Fri, 16 September 2011 10:57 Go to previous message
Barendra  is currently offline Barendra Friend
Messages: 2
Registered: September 2011
Junior Member
Thanks for replying, I think we can modify the template names so they could come at higher positions.

[Updated on: Fri, 16 September 2011 10:57]

Report message to a moderator

Previous Topic:starting eclips
Next Topic:Run / Debug error
Goto Forum:
  


Current Time: Fri Apr 26 08:13:21 GMT 2024

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

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

Back to the top