ChangeCorrectionProposal proposal= new ChangeCorrectionProposal(name, null, 0) {
ChangeCorrectionProposal proposal= new ChangeCorrectionProposal(name, null, 5) {
	public static void addNLSProposals(IAssistContext context, IProblemLocation problem, Collection proposals) throws CoreException {		final ICompilationUnit cu= context.getCompilationUnit();		if (! NLSRefactoring.isAvailable(cu)){			return;		}		String name= CorrectionMessages.getString("LocalCorrectionsSubProcessor.externalizestrings.description"); //$NON-NLS-1$				ChangeCorrectionProposal proposal= new ChangeCorrectionProposal(name, null, 0) {			public void apply(IDocument document) {				try {					NLSRefactoring refactoring= NLSRefactoring.create(cu, JavaPreferencesSettings.getCodeGenerationSettings());					if (refactoring == null)						return;					ExternalizeWizard wizard= new ExternalizeWizard(refactoring);					String dialogTitle= CorrectionMessages.getString("LocalCorrectionsSubProcessor.externalizestrings.dialog.title"); //$NON-NLS-1$					new RefactoringStarter().activate(refactoring, wizard, JavaPlugin.getActiveWorkbenchShell(), dialogTitle, true);				} catch (JavaModelException e) {					JavaPlugin.log(e);				}			}		};		proposals.add(proposal);		TextEdit edit= NLSUtil.createNLSEdit(cu, problem.getOffset());		if (edit != null) {			String label= CorrectionMessages.getString("LocalCorrectionsSubProcessor.addnon-nls.description"); //$NON-NLS-1$			Image image= JavaPluginImages.get(JavaPluginImages.IMG_OBJS_NLS_NEVER_TRANSLATE);			CUCorrectionProposal nlsProposal= new CUCorrectionProposal(label, cu, 6, image);			nlsProposal.getRootTextEdit().add(edit);			proposals.add(nlsProposal);		}	}