Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#1 "quick-fix" mechanism

open
nobody
None
5
2007-12-31
2007-12-31
Paul Kinnucan
No

Len Trigg [lenbok+mljdee@gmail.com]:

It would be really nice if there was a way to have a general "quick-fix" mechanism in jdee. Perhaps something where each quick fix defined a regexp to match on the current compilation error line to determine whether it should be active, plus an action to take if the user opts for that quick fix. Jdee would evaluate the set of active quick fixes whenever the currently selected error changes (updating a quick-fix menu). We could add to the suite of quick-fixes over time, and users could define their own.

E.g:
add throws to current method
add catch block to existing try
add try-catch block to selected region

(Presumably the regexps would be dependent on whichever compiler the user is currently using, so there may need to be different lists for ecb vs javac vs jikes etc)

Actually, searching through the archives, it seems Kai Grossjohann had started an initial version of this in 2004...

Discussion