IJavaProject project = invocationContext.getCompilationUnit().getJavaProject();
IClasspathEntry entry = BuildPathSupport.getTestNGClasspathEntry();
if (entry != null) {
Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
try {
addToClasspath(shell, project, entry, new BusyIndicatorRunnableContext());
}
catch (JavaModelException e) {
ErrorDialog.openError(shell,
ResourceUtil.getString("AddTestNGLibraryProposal.error"), //$NON-NLS-1$
ResourceUtil.getString("AddTestNGLibraryProposal.cannotAdd"), //$NON-NLS-1$