Object obj = ((IStructuredSelection)selection).getFirstElement();
if (obj != null) {
String oldName = ((Podcast) obj).getName();
InputDialog dialog = new InputDialog(_parent.getShell(),
Messages.getString("PodcastListView.RenameDialogTitle"), Messages.getString("PodcastListView.RenameDialogQuestion"), oldName, new PodcastNameValidator()); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
int result = dialog.open();
if (result == InputDialog.OK) {
ApplicationUtils.closeViewByID(PodcastView.ID, oldName);