com.intellij.codeInsight.CodeInsightUtilBasecom.intellij.codeInsight.FileModificationService



Project JetBrains/intellij-community in file ...j.codeInsight.daemon.impl.actions.SuppressFix.java (2013-04-25)
@@ -16,7 +16,7 @@
 package com.intellij.codeInsight.daemon.impl.actions;
 
 import com.intellij.codeInsight.AnnotationUtil;
-import com.intellij.codeInsight.CodeInsightUtilBase;
+import com.intellij.codeInsight.FileModificationService;
 import com.intellij.codeInsight.daemon.DaemonCodeAnalyzer;
 import com.intellij.codeInsight.daemon.HighlightDisplayKey;
 import com.intellij.codeInsight.intention.AddAnnotationFix;
@@ -108,7 +108,7 @@ public class SuppressFix extends SuppressIntentionAction {
   public void invoke(@NotNull final Project project, final Editor editor, @NotNull final PsiElement element) throws IncorrectOperationException {
     PsiDocCommentOwner container = getContainer(element);
     assert container != null;
-    if (!CodeInsightUtilBase.preparePsiElementForWrite(container)) return;
+    if (!FileModificationService.getInstance().preparePsiElementForWrite(container)) return;
     if (use15Suppressions(container)) {
       final PsiModifierList modifierList = container.getModifierList();
       if (modifierList != null) {
Project JetBrains/intellij-community in file ...ight.daemon.impl.actions.SuppressParameterFix.java (2013-04-25)
@@ -15,7 +15,7 @@
  */
 package com.intellij.codeInsight.daemon.impl.actions;
 
-import com.intellij.codeInsight.CodeInsightUtilBase;
+import com.intellij.codeInsight.FileModificationService;
 import com.intellij.codeInsight.daemon.DaemonCodeAnalyzer;
 import com.intellij.codeInsight.daemon.HighlightDisplayKey;
 import com.intellij.codeInspection.InspectionsBundle;
@@ -68,7 +68,7 @@ public class SuppressParameterFix extends SuppressIntentionAction {
   public void invoke(@NotNull final Project project, final Editor editor, @NotNull final PsiElement element) throws IncorrectOperationException {
     PsiParameter container = PsiTreeUtil.getParentOfType(element, PsiParameter.class, false);
     assert container != null;
-    if (!CodeInsightUtilBase.preparePsiElementForWrite(container)) return;
+    if (!FileModificationService.getInstance().preparePsiElementForWrite(container)) return;
     final PsiModifierList modifierList = container.getModifierList();
     if (modifierList != null) {
       final String id = SuppressFix.getID(container, myAlternativeID);
Project JetBrains/intellij-community in file ...daemon.impl.analysis.AnnotationsHighlightUtil.java (2013-04-25)
@@ -15,7 +15,7 @@
  */
 package com.intellij.codeInsight.daemon.impl.analysis;
 
-import com.intellij.codeInsight.CodeInsightUtilBase;
+import com.intellij.codeInsight.FileModificationService;
 import com.intellij.codeInsight.daemon.JavaErrorMessages;
 import com.intellij.codeInsight.daemon.impl.HighlightInfo;
 import com.intellij.codeInsight.daemon.impl.HighlightInfoType;
@@ -719,7 +719,7 @@ public class AnnotationsHighlightUtil {
 
     @Override
     public void invoke(@NotNull Project project, Editor editor, PsiFile file) throws IncorrectOperationException {
-      if (!CodeInsightUtilBase.prepareFileForWrite(file)) return;
+      if (!FileModificationService.getInstance().prepareFileForWrite(file)) return;
       myAnnotation.delete();
     }
 
Project JetBrains/intellij-community in file ...sight.daemon.impl.analysis.HighlightClassUtil.java (2013-04-25)
@@ -22,8 +22,8 @@
 package com.intellij.codeInsight.daemon.impl.analysis;
 
 import com.intellij.codeInsight.ClassUtil;
-import com.intellij.codeInsight.CodeInsightUtilBase;
 import com.intellij.codeInsight.ExceptionUtil;
+import com.intellij.codeInsight.FileModificationService;
 import com.intellij.codeInsight.daemon.JavaErrorMessages;
 import com.intellij.codeInsight.daemon.impl.HighlightInfo;
 import com.intellij.codeInsight.daemon.impl.HighlightInfoType;
@@ -974,7 +974,7 @@ public class HighlightClassUtil {
                        @NotNull final PsiElement startElement,
                        @NotNull PsiElement endElement) {
       final PsiFile containingFile = startElement.getContainingFile();
-      if (editor == null || !CodeInsightUtilBase.prepareFileForWrite(containingFile)) return;
+      if (editor == null || !FileModificationService.getInstance().prepareFileForWrite(containingFile)) return;
       PsiJavaCodeReferenceElement classReference = ((PsiNewExpression)startElement).getClassReference();
       if (classReference == null) return;
       final PsiClass psiClass = (PsiClass)classReference.resolve();
Project JetBrains/intellij-community in file ...t.daemon.impl.quickfix.AddExceptionToCatchFix.java (2013-04-25)
@@ -15,8 +15,8 @@
  */
 package com.intellij.codeInsight.daemon.impl.quickfix;
 
-import com.intellij.codeInsight.CodeInsightUtilBase;
 import com.intellij.codeInsight.ExceptionUtil;
+import com.intellij.codeInsight.FileModificationService;
 import com.intellij.codeInsight.daemon.QuickFixBundle;
 import com.intellij.codeInsight.generation.surroundWith.SurroundWithUtil;
 import com.intellij.codeInsight.intention.impl.BaseIntentionAction;
@@ -46,7 +46,7 @@ public class AddExceptionToCatchFix extends BaseIntentionAction {
 
   @Override
   public void invoke(@NotNull Project project, Editor editor, PsiFile file) {
-    if (!CodeInsightUtilBase.prepareFileForWrite(file)) return;
+    if (!FileModificationService.getInstance().prepareFileForWrite(file)) return;
     int offset = editor.getCaretModel().getOffset();
 
     PsiDocumentManager.getInstance(project).commitAllDocuments();