com.intellij.openapi.actionSystem.DataKeys



Project JetBrains/intellij-community in file ...pi.diff.actions.CompareClipboardWithSelection.java (2007-11-11)
@@ -1,7 +1,6 @@
 package com.intellij.openapi.diff.actions;
 
 import com.intellij.openapi.actionSystem.DataContext;
-import com.intellij.openapi.actionSystem.DataKeys;
 import com.intellij.openapi.actionSystem.PlatformDataKeys;
 import com.intellij.openapi.diff.*;
 import com.intellij.openapi.editor.Document;
@@ -22,7 +21,7 @@ public class CompareClipboardWithSelection extends BaseDiffAction {
   protected DiffRequest getDiffData(DataContext dataContext) {
     Project project = PlatformDataKeys.PROJECT.getData(dataContext);
     if (project == null) return null;
-    Editor editorData = DataKeys.EDITOR.getData(dataContext);
+    Editor editorData = PlatformDataKeys.EDITOR.getData(dataContext);
     Editor editor = editorData != null ? editorData : FileEditorManager.getInstance(project).getSelectedTextEditor();
     if (editor == null) return null;
     return new ClipboardSelectionContents(editor, project);
Project JetBrains/intellij-community in file ...rc.com.intellij.find.actions.FindUsagesAction.java (2007-12-24)
@@ -6,7 +6,6 @@ import com.intellij.find.FindBundle;
 import com.intellij.find.findUsages.PsiElement2UsageTargetAdapter;
 import com.intellij.openapi.actionSystem.AnAction;
 import com.intellij.openapi.actionSystem.AnActionEvent;
-import com.intellij.openapi.actionSystem.DataKeys;
 import com.intellij.openapi.actionSystem.PlatformDataKeys;
 import com.intellij.openapi.editor.Editor;
 import com.intellij.openapi.project.Project;
@@ -40,7 +39,7 @@ public class FindUsagesAction extends AnAction {
   }
 
   private static void chooseAmbiguousTarget(final AnActionEvent e, final Project project) {
-    Editor editor = e.getData(DataKeys.EDITOR);
+    Editor editor = e.getData(PlatformDataKeys.EDITOR);
     if (editor != null) {
       int offset = editor.getCaretModel().getOffset();
       if (GotoDeclarationAction.chooseAmbiguousTarget(project, editor, offset, new PsiElementProcessor<PsiElement>() {
Project JetBrains/intellij-community in file ...s.idea.svn.dialogs.RepositoryBrowserComponent.java (2007-12-03)
@@ -16,7 +16,6 @@
 package org.jetbrains.idea.svn.dialogs;
 
 import com.intellij.openapi.Disposable;
-import com.intellij.openapi.actionSystem.DataKeys;
 import com.intellij.openapi.actionSystem.DataProvider;
 import com.intellij.openapi.actionSystem.PlatformDataKeys;
 import com.intellij.openapi.fileEditor.OpenFileDescriptor;
@@ -200,7 +199,7 @@ public class RepositoryBrowserComponent extends JPanel implements Disposable, Da
 
   @Nullable
   public Object getData(@NonNls String dataId) {
-    if (DataKeys.NAVIGATABLE.getName().equals(dataId)) {
+    if (PlatformDataKeys.NAVIGATABLE.getName().equals(dataId)) {
       final Project project = myVCS.getProject();
       if (project == null || project.isDefault()) {
         return null;
Project JetBrains/intellij-community in file ...ntellij.uiDesigner.actions.GenerateMainAction.java (2008-01-25)
@@ -8,7 +8,6 @@ import com.intellij.codeInsight.generation.GenerateMembersUtil;
 import com.intellij.codeInsight.generation.PsiGenerationInfo;
 import com.intellij.openapi.actionSystem.AnAction;
 import com.intellij.openapi.actionSystem.AnActionEvent;
-import com.intellij.openapi.actionSystem.DataKeys;
 import com.intellij.openapi.actionSystem.PlatformDataKeys;
 import com.intellij.openapi.application.ApplicationManager;
 import com.intellij.openapi.command.CommandProcessor;
@@ -42,7 +41,7 @@ public class GenerateMainAction extends AnAction {
   public void actionPerformed(AnActionEvent e) {
     final Project project = e.getData(PlatformDataKeys.PROJECT);
     assert project != null;
-    final Editor editor = e.getData(DataKeys.EDITOR);
+    final Editor editor = e.getData(PlatformDataKeys.EDITOR);
     assert editor != null;
     final int offset = editor.getCaretModel().getOffset();
     final PsiFile file = PsiDocumentManager.getInstance(project).getPsiFile(editor.getDocument());
@@ -117,7 +116,7 @@ public class GenerateMainAction extends AnAction {
   private static boolean isActionEnabled(final AnActionEvent e) {
     Project project = e.getData(PlatformDataKeys.PROJECT);
     if (project == null) return false;
-    Editor editor = e.getData(DataKeys.EDITOR);
+    Editor editor = e.getData(PlatformDataKeys.EDITOR);
     if (editor == null) return false;
     int offset = editor.getCaretModel().getOffset();
     PsiFile file = PsiDocumentManager.getInstance(project).getPsiFile(editor.getDocument());
Project JetBrains/intellij-community in file ...lij.appengine.actions.UploadApplicationAction.java (2013-04-09)
@@ -6,7 +6,6 @@ import com.intellij.appengine.util.AppEngineUtil;
 import com.intellij.facet.ProjectFacetManager;
 import com.intellij.openapi.actionSystem.AnAction;
 import com.intellij.openapi.actionSystem.AnActionEvent;
-import com.intellij.openapi.actionSystem.DataKeys;
 import com.intellij.openapi.project.Project;
 import com.intellij.openapi.ui.Messages;
 import com.intellij.packaging.artifacts.Artifact;
@@ -19,12 +18,12 @@ import java.util.List;
 public class UploadApplicationAction extends AnAction {
   @Override
   public void update(AnActionEvent e) {
-    final Project project = e.getData(DataKeys.PROJECT);
+    final Project project = e.getProject();
     e.getPresentation().setVisible(project != null && !ProjectFacetManager.getInstance(project).getFacets(AppEngineFacet.ID).isEmpty());
   }
 
   public void actionPerformed(AnActionEvent e) {
-    final Project project = e.getData(DataKeys.PROJECT);
+    final Project project = e.getProject();
     if (project != null) {
       final List<Artifact> artifacts = AppEngineUtil.collectWebArtifacts(project, true);
       if (artifacts.isEmpty()) {