WranglerUtils.getDocument(file));
} else if (firstElement instanceof IFile) {
final IFile file = (IFile) firstElement;
final IErlModule module = ErlangEngine.getInstance().getModel()
.findModule(file);
wranglerSelection = new ErlModuleSelection(module, file);
} else {
wranglerSelection = null;
throw new WranglerException("Please select an Erlang element!");
}
} else {