Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Would it be possible for Ctrl-1 to correct syntax errors?
Would it be possible for Ctrl-1 to correct syntax errors? [message #199598] Tue, 29 March 2005 07:24 Go to next message
Eclipse UserFriend
I frequently get one ")" or "}" off, which the compiler correctly
pinpoints. This includes a suggestion what is missing and where.

How hard is it to provide Ctrl-1 with the information needed to actually
fix this? i.e. put the missing bracket at the guessed location?

--
Thorbjørn
Re: Would it be possible for Ctrl-1 to correct syntax errors? [message #199953 is a reply to message #199598] Fri, 01 April 2005 07:43 Go to previous message
Eclipse UserFriend
This is easily done:
Provide your own QuickFix processor through the
org.eclipse.jdt.ui.quickFixProcessors extension point and provide proposals
for the corresponding problem ids (one of the constants declared in
org.eclipse.jdt.core.compiler.IProblem)

Cheers

Tobias

"Thorbj
Previous Topic:Refactoring: Introduce a class in iheritance hierarchy
Next Topic:Enable action based on selected java element
Goto Forum:
  


Current Time: Tue May 13 18:18:18 EDT 2025

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

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

Back to the top