uid / collabode

collab + code = collabode
http://groups.csail.mit.edu/uid/collabode/
Other
28 stars 8 forks source link

Provide "organize imports" #5

Closed maxg closed 12 years ago

maxg commented 12 years ago

Need equivalent functionality to Source... Organize Imports.

Maybe we could even provide an improved UI that doesn't ask you which List you want, but let's you fix incorrect guesses?

(Imported from Bitbucket #5 reported by maxg on 2010-03-12)

maxg commented 12 years ago

(Changed responsible from nobody to phy.) (maxg on 2010-06-22)

maxg commented 12 years ago

Skeleton committed in 8b8694e6837fbb1075b3f83dd427b1f390e05873.

Once the TextEditVisitor in ChangeSetOpIterator can handle InsertEdits and DeleteEdits, this code should already work in the case where no ambiguous names have to be resolved!

When prompting is needed, currently just pops up an alert(), then calls back with null, and the organize imports operation is canceled.

(maxg on 2010-06-22)

maxg commented 12 years ago

P.S. Be sure to review all XXX lines in the skeleton and revise/remove as appropriate. Do keep XXX on e.g. uses of printStackTrace or other places with outstanding issues. (maxg on 2010-06-22)

maxg commented 12 years ago

(Changed status from open to resolved.) (phy on 2010-08-26)