refactoring.setDestination(destination);  Set excluded= getExcluded(refactoring); if (excluded == null) return; if (excluded.size() == elements.size()) return; refactoring.setExcludedElements(excluded);  if (! isOkToProceed(refactoring)) return; doReorg(refactoring); } catch (JavaModelException e){ ExceptionHandler.handle(e, ReorgMessages.getString("ReorgDestinationAction.exception_title"), ReorgMessages.getString("ReorgDestinationAction.exception")); }
}
	protected void run(IStructuredSelection selection) {		List elements= selection.toList();		if (!ensureSaved(elements, getActionName()))			return;		ReorgRefactoring refactoring= createRefactoring(elements);				setUnsavedFileList(refactoring, elements);		Object destination= selectDestination(refactoring);		if (destination == null)			return;		try{						String duplicate= getDuplicatedElementName(elements);			if (duplicate != null){				String message= ReorgMessages.getFormattedString("ReorgDestinationAction.duplicate", duplicate);//$NON-NLS-1$				MessageDialog.openInformation(JavaPlugin.getActiveWorkbenchShell().getShell(), ReorgMessages.getString("ReorgDestinationAction.duplicate_name"),	message); //$NON-NLS-1$				return;			}						refactoring.setDestination(destination);						Set excluded= getExcluded(refactoring);			if (excluded == null) //canceled				return;			if (excluded.size() == elements.size())				return;			refactoring.setExcludedElements(excluded);								if (! isOkToProceed(refactoring))				return;			doReorg(refactoring);		} catch (JavaModelException e){			ExceptionHandler.handle(e, ReorgMessages.getString("ReorgDestinationAction.exception_title"), ReorgMessages.getString("ReorgDestinationAction.exception")); //$NON-NLS-2$ //$NON-NLS-1$		}		}