return CorrectionMessages.QuickAssistProcessor_fix_deprecation_info;
final RefactoringHistory history= getRefactoringHistory(); if (history == null || history.isEmpty()) return ""; final StringBuffer buffer= new StringBuffer(512); HTMLPrinter.startBulletList(buffer); final RefactoringDescriptorProxy[] proxies= history.getDescriptors(); for (int index= 0; index < proxies.length; index++) { HTMLPrinter.addBullet(buffer, proxies[index].getDescription()); } HTMLPrinter.endBulletList(buffer); return Messages.format(CorrectionMessages.QuickAssistProcessor_fix_deprecation_info, buffer.toString());
	private static boolean getFixDeprecationProposals(final IInvocationContext context, final ASTNode node, final Collection resultingCollections) {		Name name;		if (node instanceof Name)			name= (Name) node;		else			return false;		final IBinding binding= name.resolveBinding();		if (binding == null || !binding.isDeprecated())			return false;		String fileName= null;		if (binding instanceof IVariableBinding)			fileName= DelegateFieldCreator.getRefactoringScriptName((IVariableBinding) binding);		else if (binding instanceof IMethodBinding) {			fileName= DelegateMethodCreator.getRefactoringScriptName((IMethodBinding) binding);		}		if (fileName == null)			return false;		final ICompilationUnit unit= context.getCompilationUnit();		if (unit == null || !unit.exists())			return false;		final IProject project= unit.getJavaProject().getProject();		final IFile file= project.getFolder(DelegateCreator.SCRIPT_FOLDER).getFile(fileName);		if (!file.exists())			return false;		if (resultingCollections == null)			return true;		final ChangeCorrectionProposal proposal= new ChangeCorrectionProposal(CorrectionMessages.QuickAssistProcessor_fix_deprecation_name, null, 2, JavaPluginImages.get(JavaPluginImages.IMG_CORRECTION_CHANGE)) {			private static final int SIZING_WIZARD_HEIGHT= 470;			private static final int SIZING_WIZARD_WIDTH= 490;			public final void apply(final IDocument document) {				RefactoringHistory history= null;				InputStream stream= null;				try {					stream= new BufferedInputStream(file.getContents(true));					history= RefactoringCore.getHistoryService().readRefactoringHistory(stream, JavaRefactoringDescriptor.DEPRECATION_RESOLVING);				} catch (CoreException exception) {					JavaPlugin.log(exception);				} finally {					if (stream != null) {						try {							stream.close();						} catch (IOException exception) {							JavaPlugin.log(exception);						}					}				}				if (history == null || history.isEmpty())					return;				final FixDeprecationRefactoringWizard wizard= new FixDeprecationRefactoringWizard(history.getDescriptors().length > 1, context.getCompilationUnit(), node.getStartPosition(), node.getLength());				final WizardDialog dialog= new WizardDialog(JavaPlugin.getActiveWorkbenchShell(), wizard);				wizard.setRefactoringHistory(history);				dialog.create();				dialog.getShell().setSize(Math.max(SIZING_WIZARD_WIDTH, dialog.getShell().getSize().x), SIZING_WIZARD_HEIGHT);				PlatformUI.getWorkbench().getHelpSystem().setHelp(dialog.getShell(), IJavaHelpContextIds.FIX_DEPRECATION_WIZARD_PAGE);				dialog.getShell().getDisplay().asyncExec(new Runnable() {					public final void run() {						dialog.showPage(wizard.getNextPage(wizard.getStartingPage()));					}				});				dialog.open();			}			public final String getAdditionalProposalInfo() {				return CorrectionMessages.QuickAssistProcessor_fix_deprecation_info;			}		};		resultingCollections.add(proposal);		return true;	}