label= MessageFormat.format(pattern, new String[]{ReorgUtils.getName(selection.getFirstElement())});
label= MessageFormat.format(pattern, new String[]{getName(selection.getFirstElement())});
	private static boolean confirmDelete(IStructuredSelection selection) {		Assert.isTrue(ClipboardActionUtil.getSelectedProjects(selection).isEmpty());		String title= ReorgMessages.getString("deleteAction.confirm.title"); //$NON-NLS-1$		String label;		if (selection.size() == 1){			String pattern= "Are you sure you want to delete ''{0}''?";			label= MessageFormat.format(pattern, new String[]{ReorgUtils.getName(selection.getFirstElement())});		} else {			String pattern= "Are you sure you want to delete these {0} resources?";			label= MessageFormat.format(pattern, new String[]{String.valueOf(selection.size())});		}		return MessageDialog.openQuestion(JavaPlugin.getActiveWorkbenchShell(), title, label);	}