com.intellij.openapi.actionSystem.DataKeyscom.intellij.openapi.actionSystem.PlatformDataKeys



Project JetBrains/intellij-community in file ....editor.actionSystem.EditorWriteActionHandler.java (2007-11-08)
@@ -16,7 +16,7 @@
 package com.intellij.openapi.editor.actionSystem;
 
 import com.intellij.openapi.actionSystem.DataContext;
-import com.intellij.openapi.actionSystem.DataKeys;
+import com.intellij.openapi.actionSystem.PlatformDataKeys;
 import com.intellij.openapi.application.ApplicationManager;
 import com.intellij.openapi.editor.*;
 import com.intellij.openapi.editor.event.DocumentEvent;
@@ -28,7 +28,7 @@ public abstract class EditorWriteActionHandler extends EditorActionHandler {
     if (editor.isViewer()) return;
 
     if (!editor.getDocument().isWritable()) {
-      if (!FileDocumentManager.fileForDocumentCheckedOutSuccessfully(editor.getDocument(), DataKeys.PROJECT.getData(dataContext)))
+      if (!FileDocumentManager.fileForDocumentCheckedOutSuccessfully(editor.getDocument(), PlatformDataKeys.PROJECT.getData(dataContext)))
         return;
     }
 
Project JetBrains/intellij-community in file ...ger.actions.ToggleLineBreakpointActionHandler.java (2008-01-25)
@@ -7,7 +7,7 @@ import com.intellij.debugger.ui.breakpoints.Breakpoint;
 import com.intellij.debugger.ui.breakpoints.BreakpointManager;
 import com.intellij.debugger.ui.breakpoints.LineBreakpoint;
 import com.intellij.openapi.actionSystem.AnActionEvent;
-import com.intellij.openapi.actionSystem.DataKeys;
+import com.intellij.openapi.actionSystem.PlatformDataKeys;
 import com.intellij.openapi.editor.Document;
 import com.intellij.openapi.editor.Editor;
 import com.intellij.openapi.fileEditor.FileDocumentManager;
@@ -67,7 +67,7 @@ public class ToggleLineBreakpointActionHandler extends DebuggerActionHandler {
 
   @Nullable
   private static PlaceInDocument getPlace(@NotNull final Project project, AnActionEvent event) {
-    Editor editor = event.getData(DataKeys.EDITOR);
+    Editor editor = event.getData(PlatformDataKeys.EDITOR);
     if(editor == null) {
       editor = FileEditorManager.getInstance(project).getSelectedTextEditor();
     }
Project JetBrains/intellij-community in file ...com.intellij.refactoring.IntroduceHandlerBase.java (2008-01-25)
@@ -5,7 +5,7 @@
 package com.intellij.refactoring;
 
 import com.intellij.openapi.actionSystem.DataContext;
-import com.intellij.openapi.actionSystem.DataKeys;
+import com.intellij.openapi.actionSystem.PlatformDataKeys;
 import com.intellij.openapi.diagnostic.Logger;
 import com.intellij.openapi.editor.Editor;
 import com.intellij.openapi.project.Project;
@@ -24,7 +24,7 @@ public abstract class IntroduceHandlerBase {
     final PsiElement tempExpr = elements[0];
     final Editor editor;
     if (dataContext != null) {
-      final Editor editorFromDC = DataKeys.EDITOR.getData(dataContext);
+      final Editor editorFromDC = PlatformDataKeys.EDITOR.getData(dataContext);
       final PsiFile cachedPsiFile = PsiDocumentManager.getInstance(project).getCachedPsiFile(editorFromDC.getDocument());
       if (cachedPsiFile != null && PsiTreeUtil.isAncestor(cachedPsiFile, tempExpr, false)) {
         editor = editorFromDC;
Project JetBrains/intellij-community in file ...ij.refactoring.rename.PsiElementRenameHandler.java (2008-01-25)
@@ -4,7 +4,7 @@ import com.intellij.featureStatistics.FeatureUsageTracker;
 import com.intellij.ide.util.SuperMethodWarningUtil;
 import com.intellij.lang.ant.PsiAntElement;
 import com.intellij.openapi.actionSystem.DataContext;
-import com.intellij.openapi.actionSystem.DataKeys;
+import com.intellij.openapi.actionSystem.PlatformDataKeys;
 import com.intellij.openapi.application.ApplicationManager;
 import com.intellij.openapi.diagnostic.Logger;
 import com.intellij.openapi.editor.Editor;
@@ -48,7 +48,7 @@ public class PsiElementRenameHandler implements RenameHandler {
     PsiElement element = elements.length == 1 ? elements[0] : null;
     if (element == null) element = getElement(dataContext);
     LOG.assertTrue(element != null);
-    Editor editor = DataKeys.EDITOR.getData(dataContext);
+    Editor editor = PlatformDataKeys.EDITOR.getData(dataContext);
     invoke(element, project, element, editor);
   }
 
Project JetBrains/intellij-community in file ....com.intellij.execution.filters.YourkitFilter.java (2008-01-25)
@@ -18,7 +18,7 @@ package com.intellij.execution.filters;
 import com.intellij.ide.DataManager;
 import com.intellij.ide.util.EditSourceUtil;
 import com.intellij.ide.util.PsiElementListCellRenderer;
-import com.intellij.openapi.actionSystem.DataKeys;
+import com.intellij.openapi.actionSystem.PlatformDataKeys;
 import com.intellij.openapi.diagnostic.Logger;
 import com.intellij.openapi.editor.Editor;
 import com.intellij.openapi.project.Project;
@@ -104,7 +104,7 @@ public class YourkitFilter implements Filter{
         }
       };
 
-      final Editor editor = DataKeys.EDITOR.getData(DataManager.getInstance().getDataContext());
+      final Editor editor = PlatformDataKeys.EDITOR.getData(DataManager.getInstance().getDataContext());
 
       new PopupChooserBuilder(list).
         setTitle("Choose file").