String name= CorrectionMessages.ReorgCorrectionsSubProcessor_configure_buildpath_label; ISharedImages images= JavaPlugin.getDefault().getWorkbench().getSharedImages(); Image image= images.getImage(IDE.SharedImages.IMG_OBJ_PROJECT); final IProject project= context.getCompilationUnit().getJavaProject().getProject(); ChangeCorrectionProposal proposal= new ChangeCorrectionProposal(name, null, 5, image) { public void apply(IDocument document) { PreferencesUtil.createPropertyDialogOn(JavaPlugin.getActiveWorkbenchShell(), project, BuildPathsPropertyPage.PROP_ID, null, null).open(); }  public String getAdditionalProposalInfo() { return Messages.format(CorrectionMessages.ReorgCorrectionsSubProcessor_configure_buildpath_description, project.getName()); }  };
IProject project= context.getCompilationUnit().getJavaProject().getProject(); String label= CorrectionMessages.ReorgCorrectionsSubProcessor_configure_buildpath_label; OpenBuildPathCorrectionProposal proposal= new OpenBuildPathCorrectionProposal(project, label, 5, null);
	public static void getIncorrectBuildPathProposals(IInvocationContext context, IProblemLocation problem, Collection proposals) {		String name= CorrectionMessages.ReorgCorrectionsSubProcessor_configure_buildpath_label;		ISharedImages images= JavaPlugin.getDefault().getWorkbench().getSharedImages();		Image image= images.getImage(IDE.SharedImages.IMG_OBJ_PROJECT);		final IProject project= context.getCompilationUnit().getJavaProject().getProject();		ChangeCorrectionProposal proposal= new ChangeCorrectionProposal(name, null, 5, image) {			public void apply(IDocument document) {				PreferencesUtil.createPropertyDialogOn(JavaPlugin.getActiveWorkbenchShell(), project, BuildPathsPropertyPage.PROP_ID, null, null).open();			}						public String getAdditionalProposalInfo() {				return Messages.format(CorrectionMessages.ReorgCorrectionsSubProcessor_configure_buildpath_description, project.getName());			}					};		proposals.add(proposal);	}