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



Project JetBrains/intellij-community in file ...ges.editor.actionSystem.ImageEditorActionUtil.java (2007-11-08)
@@ -2,7 +2,7 @@ package org.intellij.images.editor.actionSystem;
 
 import com.intellij.openapi.actionSystem.AnActionEvent;
 import com.intellij.openapi.actionSystem.DataContext;
-import com.intellij.openapi.actionSystem.DataKeys;
+import com.intellij.openapi.actionSystem.PlatformDataKeys;
 import com.intellij.openapi.actionSystem.Presentation;
 import com.intellij.openapi.fileEditor.FileEditor;
 import org.intellij.images.editor.ImageEditor;
@@ -33,7 +33,7 @@ public final class ImageEditorActionUtil {
 
     public static ImageEditor getEditor(AnActionEvent e) {
         DataContext dataContext = e.getDataContext();
-      FileEditor editor = DataKeys.FILE_EDITOR.getData(dataContext);
+      FileEditor editor = PlatformDataKeys.FILE_EDITOR.getData(dataContext);
         if (editor instanceof ImageFileEditor) {
             ImageFileEditor fileEditor = (ImageFileEditor) editor;
             return fileEditor.getImageEditor();
Project JetBrains/intellij-community in file ...idea.maven.events.MavenStepsBeforeRunProvider.java (2007-11-08)
@@ -3,7 +3,7 @@ package org.jetbrains.idea.maven.events;
 import com.intellij.execution.StepsBeforeRunProvider;
 import com.intellij.execution.configurations.RunConfiguration;
 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.application.ModalityState;
 import com.intellij.openapi.progress.ProgressManager;
@@ -38,7 +38,7 @@ public class MavenStepsBeforeRunProvider implements StepsBeforeRunProvider {
             final MavenTask task = getState().getTask(configuration.getType(), configuration.getName());
             result [0] = task != null && getEventsHandler().execute(Arrays.asList(task));
           }
-        }, EventsBundle.message("execute.before.launch.steps.title"), true, DataKeys.PROJECT.getData(context));
+        }, EventsBundle.message("execute.before.launch.steps.title"), true, PlatformDataKeys.PROJECT.getData(context));
       }
     }, ModalityState.NON_MODAL);
     return result[0];
Project JetBrains/intellij-community in file ...maven.events.actions.IncludeExcludeTaskAction.java (2007-11-08)
@@ -1,7 +1,7 @@
 package org.jetbrains.idea.maven.events.actions;
 
 import com.intellij.openapi.actionSystem.AnActionEvent;
-import com.intellij.openapi.actionSystem.DataKeys;
+import com.intellij.openapi.actionSystem.PlatformDataKeys;
 import com.intellij.openapi.project.Project;
 import org.jetbrains.idea.maven.events.MavenEventsHandler;
 import org.jetbrains.idea.maven.events.MavenEventsState;
@@ -18,7 +18,7 @@ public abstract class IncludeExcludeTaskAction extends IncludeExcludeAction<Mave
   }
 
   private MavenEventsHandler getEventsHandler(final AnActionEvent e) {
-    final Project project = e.getData(DataKeys.PROJECT);
+    final Project project = e.getData(PlatformDataKeys.PROJECT);
     return project != null ? project.getComponent(MavenEventsHandler.class) : null;
   }
 
Project JetBrains/intellij-community in file ...idea.maven.navigator.action.PomTreeViewAction.java (2007-11-08)
@@ -1,7 +1,7 @@
 package org.jetbrains.idea.maven.navigator.action;
 
 import com.intellij.openapi.actionSystem.AnActionEvent;
-import com.intellij.openapi.actionSystem.DataKeys;
+import com.intellij.openapi.actionSystem.PlatformDataKeys;
 import com.intellij.openapi.actionSystem.ToggleAction;
 import com.intellij.openapi.project.Project;
 import org.jetbrains.annotations.Nullable;
@@ -16,7 +16,7 @@ public abstract class PomTreeViewAction extends ToggleAction {
 
   @Nullable
   private static MavenProjectNavigator getNavigator(AnActionEvent e) {
-    Project project = e.getData(DataKeys.PROJECT);
+    Project project = e.getData(PlatformDataKeys.PROJECT);
     return project == null ? null : MavenProjectNavigator.getInstance(project);
   }
 
Project JetBrains/intellij-community in file ...rains.idea.svn.actions.BrowseRepositoryAction.java (2007-11-08)
@@ -15,15 +15,15 @@
  */
 package org.jetbrains.idea.svn.actions;
 
+import com.intellij.openapi.Disposable;
 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.project.Project;
 import com.intellij.openapi.project.ProjectManager;
 import com.intellij.openapi.wm.ToolWindow;
 import com.intellij.openapi.wm.ToolWindowAnchor;
 import com.intellij.openapi.wm.ToolWindowManager;
-import com.intellij.openapi.Disposable;
 import com.intellij.peer.PeerFactory;
 import com.intellij.ui.content.Content;
 import org.jetbrains.idea.svn.dialogs.RepositoryBrowserDialog;
@@ -35,7 +35,7 @@ public class BrowseRepositoryAction extends AnAction {
   public static final String REPOSITORY_BROWSER_TOOLWINDOW = "SVN Repositories";
 
   public void actionPerformed(AnActionEvent e) {
-    Project project = e.getData(DataKeys.PROJECT);
+    Project project = e.getData(PlatformDataKeys.PROJECT);
     if (project == null) {
       RepositoryBrowserDialog dialog = new RepositoryBrowserDialog(ProjectManager.getInstance().getDefaultProject());
       dialog.show();