]> git.uio.no Git - ifi-stolz-refaktor.git/blobdiff - case-study/refaktor-before/src/no/uio/ifi/refaktor/change/performers/ExtractMethodRefactoringPerformer.java
Case Study: adding data and statistics
[ifi-stolz-refaktor.git] / case-study / refaktor-before / src / no / uio / ifi / refaktor / change / performers / ExtractMethodRefactoringPerformer.java
diff --git a/case-study/refaktor-before/src/no/uio/ifi/refaktor/change/performers/ExtractMethodRefactoringPerformer.java b/case-study/refaktor-before/src/no/uio/ifi/refaktor/change/performers/ExtractMethodRefactoringPerformer.java
new file mode 100644 (file)
index 0000000..8a3acd2
--- /dev/null
@@ -0,0 +1,21 @@
+package no.uio.ifi.refaktor.change.performers;
+
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.ltk.core.refactoring.CheckConditionsOperation;
+import org.eclipse.ltk.core.refactoring.Refactoring;
+
+public class ExtractMethodRefactoringPerformer extends SimpleRefactoringPerformer {
+
+       private boolean replaceDuplicates;
+
+       public ExtractMethodRefactoringPerformer(IProgressMonitor monitor, boolean replaceDuplicates) {
+               super(monitor);
+               this.replaceDuplicates = replaceDuplicates;
+       }
+       
+       @Override
+       protected CheckConditionsOperation createCheckConditionsOperation(Refactoring refactoring, int style) {
+               return new ExtractMethodRefactoringCheckConditionsOperation(refactoring, style, replaceDuplicates);
+       }
+
+}