Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Planning to implement Auto correct/formatting java code
Planning to implement Auto correct/formatting java code [message #437857] Fri, 11 June 2004 12:24 Go to next message
Eclipse UserFriend
Originally posted by: vthiruma1.chn.cognizant.com

Hi,

I am currently working on a plugin to implement auto
correction/formatting of java code in JavaEditor (like VB does). I need
some inputs on how to implement. My understand I need to do the following

1. Add key listeners to JavaEditor
2. Get the current line when the user leaves the line
3. get the AST for the line
4. apply some rule and format the line accordinly
5. put the string back


If this won’t work or if there is a better way kindly help me.

Regards
Thiru
Re: Planning to implement Auto correct/formatting java code [message #438112 is a reply to message #437857] Wed, 16 June 2004 14:29 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
You should ask this on the eclipse.tools.jdt newsgroup, since that is where
the java editor lives and where developers with the most experience with
implementing code assist and code formatting can be found.

Grant

"Thirumalai Veerasamy" <vthiruma1@chn.cognizant.com> wrote in message
news:cac89d$upd$1@eclipse.org...
> Hi,
>
> I am currently working on a plugin to implement auto
> correction/formatting of java code in JavaEditor (like VB does). I need
> some inputs on how to implement. My understand I need to do the following
>
> 1. Add key listeners to JavaEditor
> 2. Get the current line when the user leaves the line
> 3. get the AST for the line
> 4. apply some rule and format the line accordinly
> 5. put the string back
>
>
> If this won
Previous Topic:Tree or TreeViewer
Next Topic:Cheat Sheets
Goto Forum:
  


Current Time: Fri Apr 26 20:51:52 GMT 2024

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

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

Back to the top