[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[jdt-dev] Planning to implement Auto correct/formatting java code
|
Title: Planning to implement Auto correct/formatting java code
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
This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.
Visit us at http://www.cognizant.com