Improvement CodeRefactor

- Truncate Imports for haxe
- fixed behavior for one unused import.

Yes the pattern must be: BeginUndoAction / try / finally EndUndoAction because it can cause considerable Scintilla bugs.