Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Help required for content assist
Help required for content assist [message #270896] Mon, 18 May 2009 16:33 Go to next message
Syed Irfan Ali is currently offline Syed Irfan AliFriend
Messages: 4
Registered: July 2009
Junior Member
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!
Re: Help required for content assist [message #270897 is a reply to message #270896] Mon, 18 May 2009 17:35 Go to previous messageGo to next message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1098
Registered: July 2009
Senior Member

Hi,
I believe you are asking how to define your own templates.

This might help:
http://www.vogella.de/articles/Eclipse/article.html#tips_tem plates

Best regards, Lars

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!
>
Re: Help required for content assist [message #270913 is a reply to message #270897] Tue, 19 May 2009 11:18 Go to previous messageGo to next message
Syed Irfan Ali is currently offline Syed Irfan AliFriend
Messages: 4
Registered: July 2009
Junior Member
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.

Thanks!

BR,
Syed
Re: Help required for content assist [message #270917 is a reply to message #270913] Tue, 19 May 2009 15:32 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
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.

Dani
>
> Thanks!
>
> BR,
> Syed
>
Re: Help required for content assist [message #270925 is a reply to message #270917] Tue, 19 May 2009 16:04 Go to previous messageGo to next message
Syed Irfan Ali is currently offline Syed Irfan AliFriend
Messages: 4
Registered: July 2009
Junior Member
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??

Thanks Dear.

BR,
Syed
Re: Help required for content assist [message #270943 is a reply to message #270925] Wed, 20 May 2009 10:48 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
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.

Dani
> Thanks Dear.
>
> BR,
> Syed
>
>
>
Re: Help required for content assist [message #270999 is a reply to message #270943] Thu, 21 May 2009 07:28 Go to previous messageGo to next message
Syed Irfan Ali is currently offline Syed Irfan AliFriend
Messages: 4
Registered: July 2009
Junior Member
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. Thanks for
your cooperation Dani.
Have a nice time, Good Bye!

BR,
Syed
Re: Help required for content assist [message #271000 is a reply to message #270999] Thu, 21 May 2009 08:51 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
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
>
Previous Topic:eclipse crash followed by empty SRC file on reboot
Next Topic:Some JavaScript files hidden in Script Explorer
Goto Forum:
  


Current Time: Wed Apr 24 20:15:03 GMT 2024

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

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

Back to the top