com.intellij.openapi.actionSystem.DataKeyscom.intellij.openapi.actionSystem.LangDataKeys



Project JetBrains/intellij-community in file ...llij.structuralsearch.plugin.ui.SearchContext.java (2008-01-25)
@@ -1,7 +1,7 @@
 package com.intellij.structuralsearch.plugin.ui;
 
 import com.intellij.openapi.actionSystem.DataContext;
-import com.intellij.openapi.actionSystem.DataKeys;
+import com.intellij.openapi.actionSystem.LangDataKeys;
 import com.intellij.openapi.actionSystem.PlatformDataKeys;
 import com.intellij.openapi.editor.Editor;
 import com.intellij.openapi.fileEditor.FileEditorManager;
@@ -55,7 +55,7 @@ public final class SearchContext implements DataProvider, Cloneable {
     }
     setProject(project);
 
-    setFile(DataKeys.PSI_FILE.getData(context));
+    setFile(LangDataKeys.PSI_FILE.getData(context));
     setCurrentFile(PlatformDataKeys.VIRTUAL_FILE.getData(context));
   }
 
Project JetBrains/intellij-community in file ...ion.junit2.configuration.CommonJavaParameters.java (2008-01-25)
@@ -2,7 +2,7 @@ package com.intellij.execution.junit2.configuration;
 
 import com.intellij.execution.ExecutionBundle;
 import com.intellij.execution.RunJavaConfiguration;
-import com.intellij.openapi.actionSystem.DataKeys;
+import com.intellij.openapi.actionSystem.LangDataKeys;
 import com.intellij.openapi.diagnostic.Logger;
 import com.intellij.openapi.fileChooser.FileChooser;
 import com.intellij.openapi.fileChooser.FileChooserDescriptor;
@@ -44,7 +44,7 @@ public class CommonJavaParameters extends JPanel {
       public void actionPerformed(ActionEvent e) {
         FileChooserDescriptor fileChooserDescriptor = FileChooserDescriptorFactory.createSingleFolderDescriptor();
         fileChooserDescriptor.setTitle(ExecutionBundle.message("select.working.directory.message"));
-        fileChooserDescriptor.putUserData(DataKeys.MODULE_CONTEXT, myModule);
+        fileChooserDescriptor.putUserData(LangDataKeys.MODULE_CONTEXT, myModule);
         VirtualFile[] files = FileChooser.chooseFiles(myWorkingDirectory, fileChooserDescriptor);
         if (files.length != 0) {
           setText(RunJavaConfiguration.WORKING_DIRECTORY_PROPERTY, files[0].getPresentableUrl());
Project JetBrains/intellij-community in file ...llij.refactoring.actions.ExtractIncludeAction.java (2008-01-25)
@@ -4,7 +4,7 @@ import com.intellij.lang.Language;
 import com.intellij.lang.html.HTMLLanguage;
 import com.intellij.lang.xhtml.XHTMLLanguage;
 import com.intellij.openapi.actionSystem.DataContext;
-import com.intellij.openapi.actionSystem.DataKeys;
+import com.intellij.openapi.actionSystem.LangDataKeys;
 import com.intellij.psi.PsiElement;
 import com.intellij.psi.PsiFile;
 import com.intellij.psi.util.PsiUtil;
@@ -34,7 +34,7 @@ public class ExtractIncludeAction extends BaseRefactoringAction {
   }
 
   public RefactoringActionHandler getHandler(DataContext dataContext) {
-    PsiFile file = DataKeys.PSI_FILE.getData(dataContext);
+    PsiFile file = LangDataKeys.PSI_FILE.getData(dataContext);
     if (PsiUtil.isInJspFile(file)) {
       return new ExtractJspIncludeFileHandler(file);
     }
Project JetBrains/intellij-community in file ...ellij.refactoring.actions.ExtractMethodAction.java (2008-01-25)
@@ -4,7 +4,7 @@ package com.intellij.refactoring.actions;
 import com.intellij.lang.Language;
 import com.intellij.lang.LanguageRefactoringSupport;
 import com.intellij.openapi.actionSystem.DataContext;
-import com.intellij.openapi.actionSystem.DataKeys;
+import com.intellij.openapi.actionSystem.LangDataKeys;
 import com.intellij.psi.PsiElement;
 import com.intellij.refactoring.RefactoringActionHandler;
 
@@ -21,7 +21,7 @@ public class ExtractMethodAction extends BaseRefactoringAction {
   }
 
   public RefactoringActionHandler getHandler(DataContext dataContext) {
-    final Language language = DataKeys.LANGUAGE.getData(dataContext);
+    final Language language = LangDataKeys.LANGUAGE.getData(dataContext);
     if (language != null) {
       return LanguageRefactoringSupport.INSTANCE.forLanguage(language).getExtractMethodHandler();
     }
Project JetBrains/intellij-community in file ...j.refactoring.actions.IntroduceVariableAction.java (2008-01-25)
@@ -4,7 +4,7 @@ package com.intellij.refactoring.actions;
 import com.intellij.lang.Language;
 import com.intellij.lang.LanguageRefactoringSupport;
 import com.intellij.openapi.actionSystem.DataContext;
-import com.intellij.openapi.actionSystem.DataKeys;
+import com.intellij.openapi.actionSystem.LangDataKeys;
 import com.intellij.psi.PsiElement;
 import com.intellij.refactoring.RefactoringActionHandler;
 
@@ -25,7 +25,7 @@ public class IntroduceVariableAction extends BaseRefactoringAction {
   }
 
   protected RefactoringActionHandler getHandler(DataContext dataContext) {
-    final Language language = DataKeys.LANGUAGE.getData(dataContext);
+    final Language language = LangDataKeys.LANGUAGE.getData(dataContext);
     if (language != null) {
       return LanguageRefactoringSupport.INSTANCE.forLanguage(language).getIntroduceVariableHandler();
     }