*/
public ErlTextMemberSelection(final ITextSelection selection, final ITextEditor editor)
throws WranglerException {
final IEditorInput input = editor.getEditorInput();
if (!(input instanceof IFileEditorInput)) {
throw new WranglerException("Can not refactor external modules!");
}
document = editor.getDocumentProvider().getDocument(input);
final IFileEditorInput fileInput = (IFileEditorInput) input;
final IFile theFile = fileInput.getFile();
store(selection, theFile, document);