fix nested alternative resolve
authorpeter <peter@jetbrains.com>
Wed, 18 Feb 2015 12:37:42 +0000 (13:37 +0100)
committerpeter <peter@jetbrains.com>
Wed, 18 Feb 2015 15:18:46 +0000 (16:18 +0100)
platform/lang-impl/src/com/intellij/codeInsight/editorActions/PasteHandler.java

index be5e0250adb41cd8b3d48ea79cd83cc4bc051826..89d0ab4d5348108894c7508b91e7ba7d32783ea9 100644 (file)
@@ -157,18 +157,13 @@ public class PasteHandler extends EditorActionHandler implements EditorTextInser
     final Map<CopyPastePostProcessor, List<? extends TextBlockTransferableData>> extraData = new HashMap<CopyPastePostProcessor, List<? extends TextBlockTransferableData>>();
     final Collection<TextBlockTransferableData> allValues = new ArrayList<TextBlockTransferableData>();
 
-    DumbService.getInstance(project).withAlternativeResolveEnabled(new Runnable() {
-      @Override
-      public void run() {
-        for (CopyPastePostProcessor<? extends TextBlockTransferableData> processor : Extensions.getExtensions(CopyPastePostProcessor.EP_NAME)) {
-          List<? extends TextBlockTransferableData> data = processor.extractTransferableData(content);
-          if (!data.isEmpty()) {
-            extraData.put(processor, data);
-            allValues.addAll(data);
-          }
-        }
+    for (CopyPastePostProcessor<? extends TextBlockTransferableData> processor : Extensions.getExtensions(CopyPastePostProcessor.EP_NAME)) {
+      List<? extends TextBlockTransferableData> data = processor.extractTransferableData(content);
+      if (!data.isEmpty()) {
+        extraData.put(processor, data);
+        allValues.addAll(data);
       }
-    });
+    }
 
     text = TextBlockTransferable.convertLineSeparators(editor, text, allValues);