com.intellij.psi.PsiFile



API Populatity

6 Client projects

Project: com.intellij

Package: com.intellij.psi

Project JetBrains/intellij-community in file ...l.com.intellij.ide.impl.dataRules.PsiFileRule.java (2006-07-05)
@@ -5,14 +5,12 @@ import com.intellij.openapi.actionSystem.DataProvider;
 import com.intellij.openapi.project.Project;
 import com.intellij.openapi.vfs.VirtualFile;
 import com.intellij.psi.PsiElement;
-import com.intellij.psi.PsiFile;
 import com.intellij.psi.PsiManager;
 
 public class PsiFileRule implements GetDataRule {
   public Object getData(DataProvider dataProvider) {
     final PsiElement element = (PsiElement)dataProvider.getData(DataConstants.PSI_ELEMENT);
     if (element != null){
-      if (element instanceof PsiFile) return element;
       return element.getContainingFile();
     }
     Project project = (Project)dataProvider.getData(DataConstants.PROJECT);
Project JetBrains/intellij-community in file ...ght.completion.actions.HippieCompletionAction.java (2012-02-03)
@@ -18,15 +18,15 @@ package com.intellij.codeInsight.completion.actions;
 
 import com.intellij.codeInsight.CodeInsightActionHandler;
 import com.intellij.codeInsight.actions.BaseCodeInsightAction;
+import com.intellij.featureStatistics.FeatureUsageTracker;
 import com.intellij.openapi.editor.Editor;
-import com.intellij.openapi.project.Project;
 import com.intellij.openapi.project.DumbAware;
-import com.intellij.psi.PsiFile;
-import com.intellij.featureStatistics.FeatureUsageTracker;
+import com.intellij.openapi.project.Project;
 import org.jetbrains.annotations.NotNull;
 
 public class HippieCompletionAction extends BaseCodeInsightAction implements DumbAware {
   public HippieCompletionAction() {
+    super(false);
     setEnabledInModalContext(true);
   }
 
Project JetBrains/intellij-community in file ....plugins.groovy.lang.psi.GroovyElementFactory.java (2007-12-28)
@@ -18,6 +18,7 @@ package org.jetbrains.plugins.groovy.lang.psi;
 import com.intellij.openapi.project.Project;
 import com.intellij.psi.PsiElement;
 import com.intellij.psi.PsiType;
+import com.intellij.psi.PsiFile;
 import com.intellij.util.IncorrectOperationException;
 import org.jetbrains.annotations.NotNull;
 import org.jetbrains.annotations.Nullable;
@@ -110,4 +111,6 @@ public abstract class GroovyElementFactory {
   public abstract PsiElement createDotToken(String newDot);
 
   public abstract GrMethod createMethodFromText(String methodText);
+
+  public abstract PsiFile createGroovyFile(String idText, boolean isPhisical);
 }