I want to add some keywords in eclipse IDE for java programming.
To be more accurate its like that when i am writing some java code in
eclipse i want that some specific protocol names should appear as keywords
while writing a code. so that when i am typing that protocol names it
should give me an option of auto completion ( proposal list ) ( ctrl+space
) and highlight those protocol names as well.This is only possible if i
add those protocol names in IDE.
Syed Irfan Ali wrote:
> Hi, i need help for following purpose.
>
> I want to add some keywords in eclipse IDE for java programming.
> To be more accurate its like that when i am writing some java code in
> eclipse i want that some specific protocol names should appear as
> keywords while writing a code. so that when i am typing that protocol
> names it should give me an option of auto completion ( proposal list ) (
> ctrl+space ) and highlight those protocol names as well.This is only
> possible if i add those protocol names in IDE.
> Can anybody help me out?
>
> Thanksss!
>
No i am not talking about templates. as in templates it will just force me
to paste some specific text or code part aftr any keyword.
my task is like this: just like u hav protocol name TCP and its attribute
like srcport, destport, ipadd. Now when i am typing java code in eclipse
i want that when i type TCP. and then press ctrl+space thn it should give
me a proposal list of ( srcport, destport, ipadd, ipheader and like wise )
and then i shud choose from tht proposal list. and that protocol names and
its attributes should be higlighted as well.
Syed Irfan Ali wrote:
> Hi Lars,
>
> No i am not talking about templates. as in templates it will just
> force me to paste some specific text or code part aftr any keyword.
>
> my task is like this: just like u hav protocol name TCP and its
> attribute like srcport, destport, ipadd. Now when i am typing java
> code in eclipse i want that when i type TCP. and then press ctrl+space
> thn it should give me a proposal list of ( srcport, destport, ipadd,
> ipheader and like wise ) and then i shud choose from tht proposal
> list. and that protocol names and its attributes should be higlighted
> as well.
>
> What should i do. Help me plz.
You can write your own completion proposal computer. See
'org.eclipse.jdt.ui.javaCompletionProposalComputer' extension point for
details.
the problem is this that i am not good in java. i just started with it. so
i right now i am not in a position to make my own plugin. To make a new
plugin at my own i need some example that explains how to make a new
completion proposal.
2ndly today i was reading about Jface as well. Do you think it is also
concerned with content assist or only Jdt is concerned??
Syed Irfan Ali wrote:
> Hi Daniel,
>
> I already had a look on this extension point:
>
> 'org.eclipse.jdt.ui.javaCompletionProposalComputer'
>
> the problem is this that i am not good in java. i just started with
> it. so i right now i am not in a position to make my own plugin. To
> make a new plugin at my own i need some example that explains how to
> make a new completion proposal.
> 2ndly today i was reading about Jface as well. Do you think it is also
> concerned with content assist or only Jdt is concerned??
If it's for the Java editor then it's JDT and then there's no other way
than write your own plug-in.
Thanks for making it clear that its only JDT that is concerned. As i told
you that i am new with both i-e java and eclipse. So please can you help
me in a way that if you just make a simple plugin for my understanding and
in that plugin just show me that how to add and keywords in the IDE. It
will be really helpful for me to get a better understanding. Thanks for
your cooperation Dani.
Have a nice time, Good Bye!
Syed Irfan Ali wrote:
> Hi Dani,
>
> Thanks for making it clear that its only JDT that is concerned. As i
> told you that i am new with both i-e java and eclipse. So please can
> you help me in a way that if you just make a simple plugin for my
> understanding and in that plugin just show me that how to add and
> keywords in the IDE. It will be really helpful for me to get a better
> understanding.
Sorry, no time for that.
Dani
> Thanks for your cooperation Dani.
> Have a nice time, Good Bye!
>
> BR,
> Syed
>