Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Custom Quick Assist - how to determine code indentation?
icon5.gif  Custom Quick Assist - how to determine code indentation? [message #533534] Fri, 14 May 2010 09:41
Eclipse UserFriend
Hello world Smile

I've managed to write an Eclipse plugin that provides me with my custom quick assist in the Java editor. Thanks for all the pointers you guys gave me.

I've got a follow-up question: if I have a covering node as ASTNode, is there any way to get information about the "visual" structure of the code at that place, e.g. indentation? What I want to do is surround a line of code with a braced if statement, so I'd like the inserted code to be indented correctly. Right now I'm doing this by counting the number of tabs at the beginning of the line, but that's a pretty hacky approach imho. Any hints?

Cheers
Robert
Previous Topic:access runtime variables and pass them to a separate debugger view
Next Topic:Programmatically Create User Library
Goto Forum:
  


Current Time: Wed Mar 26 05:03:35 EDT 2025

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

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

Back to the top