com.intellij.openapi.vfs.VirtualFile



Project JetBrains/intellij-community in file ...-openapi.src.com.intellij.util.xml.DomManager.java (2010-08-15)
@@ -20,7 +20,6 @@ import com.intellij.openapi.components.ServiceManager;
 import com.intellij.openapi.module.Module;
 import com.intellij.openapi.project.Project;
 import com.intellij.openapi.util.*;
-import com.intellij.openapi.vfs.VirtualFile;
 import com.intellij.psi.PsiReferenceFactory;
 import com.intellij.psi.xml.XmlAttribute;
 import com.intellij.psi.xml.XmlFile;
@@ -171,6 +170,4 @@ public abstract class DomManager implements ModificationTracker {
     final DomFileElement<DomElement> element = getFileElement(xmlFile);
     return element != null ? element.getFileDescription() : null;
   }
-
-  public abstract void forceRecomputeFile(VirtualFile file);
 }
Project JetBrains/intellij-community in file ...g.CustomImplementationFileBasedIndexExtension.java (2008-09-13)
@@ -3,9 +3,6 @@
  */
 package com.intellij.util.indexing;
 
-import com.intellij.openapi.vfs.VirtualFile;
-
 public interface CustomImplementationFileBasedIndexExtension<K, V, I> extends FileBasedIndexExtension<K, V> {
-  int perFileVersion(VirtualFile file);
   UpdatableIndex<K, V, I> createIndexImplementation(final FileBasedIndex owner, final IndexStorage<K, V> storage);
 }
\ No newline at end of file
Project JetBrains/intellij-community in file ...intellij.openapi.vfs.newvfs.events.VFileEvent.java (2007-06-15)
@@ -3,7 +3,6 @@
  */
 package com.intellij.openapi.vfs.newvfs.events;
 
-import com.intellij.openapi.vfs.VirtualFile;
 import com.intellij.openapi.vfs.VirtualFileSystem;
 
 public abstract class VFileEvent {
@@ -28,4 +27,7 @@ public abstract class VFileEvent {
   public abstract VirtualFileSystem getFileSystem();
 
   public abstract boolean isValid();
+
+  public abstract int hashCode();
+  public abstract boolean equals(Object o);
 }
\ No newline at end of file
Project JetBrains/intellij-community in file ....com.jetbrains.python.actions.AddImportHelper.java (2010-11-24)
@@ -1,7 +1,6 @@
 package com.jetbrains.python.actions;
 
 import com.intellij.openapi.diagnostic.Logger;
-import com.intellij.openapi.vfs.VirtualFile;
 import com.intellij.psi.*;
 import com.intellij.util.IncorrectOperationException;
 import com.jetbrains.python.PythonDocStringFinder;
@@ -68,7 +67,7 @@ public class AddImportHelper {
     if (asName == null) as_clause = "";
     else as_clause = " as " + asName;
     final PyImportStatement importNodeToInsert = PyElementGenerator.getInstance(file.getProject()).createImportStatementFromText(
-        "import " + name + as_clause + "\n\n");
+        "import " + name + as_clause);
     try {
       file.addBefore(importNodeToInsert, getInsertPosition(file));
     }
Project JetBrains/intellij-community in file ...ight.daemon.impl.AddNoInspectionCommentAction.java (2005-12-19)
@@ -4,11 +4,10 @@ import com.intellij.codeInsight.daemon.HighlightDisplayKey;
 import com.intellij.codeInsight.intention.IntentionAction;
 import com.intellij.codeInspection.InspectionsBundle;
 import com.intellij.codeInspection.LocalInspectionTool;
+import com.intellij.openapi.command.undo.UndoManager;
 import com.intellij.openapi.editor.Editor;
 import com.intellij.openapi.project.Project;
 import com.intellij.openapi.vfs.ReadonlyStatusHandler;
-import com.intellij.openapi.vfs.VirtualFile;
-import com.intellij.openapi.command.undo.UndoManager;
 import com.intellij.psi.*;
 import com.intellij.psi.util.PsiTreeUtil;
 import com.intellij.util.IncorrectOperationException;
@@ -55,7 +54,7 @@ public class AddNoInspectionCommentAction implements IntentionAction {
   public void invoke(Project project, Editor editor, PsiFile file) throws IncorrectOperationException {
     PsiStatement container = getContainer();
     final ReadonlyStatusHandler.OperationStatus status = ReadonlyStatusHandler.getInstance(project)
-      .ensureFilesWritable(new VirtualFile[]{container.getContainingFile().getVirtualFile()});
+      .ensureFilesWritable(container.getContainingFile().getVirtualFile());
     if (status.hasReadonlyFiles()) return;
     PsiElement prev = PsiTreeUtil.skipSiblingsBackward(container, new Class[]{PsiWhiteSpace.class});
     PsiElementFactory factory = myContext.getManager().getElementFactory();