Skip to main content



      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 06:29 Go to next message
Eclipse UserFriend
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 05:06 Go to previous messageGo to next message
Eclipse UserFriend
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 06:57 Go to previous message
Eclipse UserFriend
Thanks for replying, I think we can modify the template names so they could come at higher positions.

[Updated on: Fri, 16 September 2011 06:57] by Moderator

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


Current Time: Mon Jul 07 06:37:40 EDT 2025

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

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

Back to the top