enhanced truncate text for editor tabs and draing focus