Merge branch 'master' into no-reformat-dialog-on-reformat-code-action
[idea/community.git] / platform / lang-impl / src / com / intellij / codeInsight / actions / RearrangeCodeProcessor.java
index 3d949fe2a8b99896e07b5761544af61e5dd60ca8..f8ae0ac7869eced95d406cdda8f5dce9a97be29f 100644 (file)
@@ -56,6 +56,16 @@ public class RearrangeCodeProcessor extends AbstractLayoutCodeProcessor {
                                 @NotNull SelectionModel selectionModel)
   {
     super(file.getProject(), file, PROGRESS_TEXT, COMMAND_NAME, false);
+
+  public RearrangeCodeProcessor(@NotNull AbstractLayoutCodeProcessor previousProcessor, @NotNull SelectionModel selectionModel) {
+    super(previousProcessor, COMMAND_NAME, PROGRESS_TEXT);
+    mySelectionModel = selectionModel;
+  }
+  
+  public RearrangeCodeProcessor(@NotNull Project project,
+                                @NotNull PsiFile file,
+                                @Nullable SelectionModel selectionModel) {
+    super(project, file, PROGRESS_TEXT, COMMAND_NAME, false);
     mySelectionModel = selectionModel;
   }