blob: 80be6207e8439c9a371ce0115736d515037d4c49 [file] [log] [blame]
/*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
package org.eclipse.jdt.ui.tests.refactoring;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jdt.internal.corext.refactoring.NullChange;
import org.eclipse.jdt.internal.corext.refactoring.base.IChange;
import org.eclipse.jdt.internal.corext.refactoring.base.IRefactoring;
import org.eclipse.jdt.internal.corext.refactoring.base.RefactoringStatus;
/**
* useful for tests
*/
public class NullRefactoring implements IRefactoring {
public IChange createChange(IProgressMonitor pm){
pm.beginTask("", 1);
pm.worked(1);
pm.done();
return new NullChange("NullRefactoring");
}
public RefactoringStatus checkPreconditions(IProgressMonitor pm){
pm.beginTask("", 1);
pm.worked(1);
pm.done();
return new RefactoringStatus();
}
public String getName(){
return "Null Refactoring";
}
}