How to increase priority of template proposals in Eclipse? [message #725233] |
Wed, 14 September 2011 10:29  |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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.
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.04174 seconds