Bug fix: refactor all selected files in package explorer

Previously when selecting multiple items in the package explorer, only the first one was selected which was wrong.
Now all selected items are refactored.