Bug 117469 [clean up][infrastructure] Rename MultiFix to CleanUp
Version: 3.2.0 Build id: I20051116-1332 All multi fixes should be renamed to clean up.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/FixCorrectionProposal.java
import org.eclipse.ltk.ui.refactoring.RefactoringWizard;
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jdt.internal.corext.fix.CleanUpRefactoring;
import org.eclipse.jdt.internal.corext.fix.IFix;
import org.eclipse.jdt.internal.ui.JavaPlugin;
import org.eclipse.jdt.internal.ui.fix.CleanUpRefactoringWizard;
import org.eclipse.jdt.internal.ui.fix.IMultiFix;
import org.eclipse.jdt.internal.ui.refactoring.actions.RefactoringStarter;
/**
 * A correction proposal which uses an @see org.eclipse.jdt.internal.corext.fix.IFix to
 * fix a problem. A fix correction proposal may have an @see org.eclipse.jdt.internal.corext.fix.IMultiFix
 * attachet which can be executed instead of the provided IFix.
 */
public class FixCorrectionProposal extends CUCorrectionProposal implements ICompletionProposalExtension2 {
	private final IFix fFix;
	private final IMultiFix fMultiFix;
	public FixCorrectionProposal(IFix fix, IMultiFix multiFix, int relevance, Image image) {
		super(fix.getDescription(), fix.getCompilationUnit(), relevance, image);
		fFix= fix;
		fMultiFix= multiFix;
	}
	
	public IFix getFix() {
		return fFix;
	}
	/* (non-Javadoc)
	 * @see org.eclipse.jdt.internal.ui.text.correction.CUCorrectionProposal#createTextChange()
	 */
	protected TextChange createTextChange() throws CoreException {
		return getFix().createChange();