com.intellij.openapi.actionSystem.DataConstants



Project JetBrains/intellij-community in file ...j.openapi.editor.actions.MoveStatementHandler.java (2005-02-02)
@@ -3,7 +3,6 @@
  */
 package com.intellij.openapi.editor.actions;
 
-import com.intellij.openapi.actionSystem.DataConstants;
 import com.intellij.openapi.actionSystem.DataContext;
 import com.intellij.openapi.application.ApplicationManager;
 import com.intellij.openapi.diagnostic.Logger;
@@ -87,7 +86,7 @@ class MoveStatementHandler extends EditorActionHandler {
     if (editor.isOneLineMode()) {
       return false;
     }
-    final Project project = (Project)dataContext.getData(DataConstants.PROJECT);
+    final Project project = editor.getProject();
     final PsiDocumentManager documentManager = PsiDocumentManager.getInstance(project);
     final Document document = editor.getDocument();
     final PsiFile file = documentManager.getPsiFile(document);
Project JetBrains/intellij-community in file ...form-api.src.com.intellij.util.OpenSourceUtil.java (2009-12-28)
@@ -15,7 +15,6 @@
  */
 package com.intellij.util;
 
-import com.intellij.openapi.actionSystem.DataConstants;
 import com.intellij.openapi.actionSystem.DataContext;
 import com.intellij.openapi.actionSystem.DataProvider;
 import com.intellij.openapi.actionSystem.PlatformDataKeys;
@@ -31,7 +30,7 @@ public class OpenSourceUtil {
   }
 
   public static void openSourcesFrom(DataProvider context, boolean requestFocus) {
-    navigate((Navigatable[])context.getData(DataConstants.NAVIGATABLE_ARRAY), requestFocus);
+    navigate(PlatformDataKeys.NAVIGATABLE_ARRAY.getData(context), requestFocus);
   }
 
   public static void navigate(final Navigatable[] navigatables, final boolean requestFocus) {
Project JetBrains/intellij-community in file ...ellij.openapi.editor.impl.EditorComponentImpl.java (2006-05-18)
@@ -1,7 +1,6 @@
 package com.intellij.openapi.editor.impl;
 
 import com.intellij.ide.ui.UISettings;
-import com.intellij.openapi.actionSystem.DataConstants;
 import com.intellij.openapi.actionSystem.DataProvider;
 import com.intellij.openapi.actionSystem.ex.DataConstantsEx;
 import com.intellij.openapi.application.ApplicationManager;
@@ -35,9 +34,11 @@ public class EditorComponentImpl extends JComponent implements Scrollable, DataP
   public Object getData(String dataId) {
     if (myEditor.isRendererMode()) return null;
 
+    /*
     if (DataConstants.EDITOR.equals(dataId)) {
       return myEditor;
     }
+    */
     if (DataConstantsEx.DELETE_ELEMENT_PROVIDER.equals(dataId)) {
       return myEditor.getDeleteProvider();
     }
Project JetBrains/intellij-community in file ...ution.junit.AllInPackageConfigurationProducer.java (2007-08-16)
@@ -6,7 +6,6 @@ import com.intellij.execution.configurations.ModuleBasedConfiguration;
 import com.intellij.execution.impl.RunManagerImpl;
 import com.intellij.execution.impl.RunnerAndConfigurationSettingsImpl;
 import com.intellij.execution.testframework.TestSearchScope;
-import com.intellij.openapi.actionSystem.DataConstants;
 import com.intellij.openapi.module.Module;
 import com.intellij.openapi.project.Project;
 import com.intellij.openapi.vfs.VfsUtil;
@@ -44,7 +43,7 @@ public class AllInPackageConfigurationProducer extends JUnitConfigurationProduce
     } else {
       final RunnerAndConfigurationSettingsImpl template =
         ((RunManagerImpl)context.getRunManager()).getConfigurationTemplate(getConfigurationFactory());
-      final Module selectedModule = (Module)context.getDataContext().getData(DataConstants.MODULE);
+      final Module selectedModule = context.getModule();
       if (selectedModule != null) {
         final ModuleBasedConfiguration templateConfiguration = (ModuleBasedConfiguration)template.getConfiguration();
         if (templateConfiguration.getConfigurationModule().getModule() == null) {
Project JetBrains/intellij-community in file ...figuration.TestNGPackageConfigurationProducer.java (2007-08-16)
@@ -6,7 +6,6 @@ import com.intellij.execution.configurations.ModuleBasedConfiguration;
 import com.intellij.execution.impl.RunManagerImpl;
 import com.intellij.execution.impl.RunnerAndConfigurationSettingsImpl;
 import com.intellij.execution.testframework.TestSearchScope;
-import com.intellij.openapi.actionSystem.DataConstants;
 import com.intellij.openapi.module.Module;
 import com.intellij.openapi.project.Project;
 import com.intellij.openapi.vfs.VfsUtil;
@@ -46,7 +45,7 @@ public class TestNGPackageConfigurationProducer extends TestNGConfigurationProdu
     } else {
       final RunnerAndConfigurationSettingsImpl template =
         ((RunManagerImpl)context.getRunManager()).getConfigurationTemplate(getConfigurationFactory());
-      final Module selectedModule = (Module)context.getDataContext().getData(DataConstants.MODULE);
+      final Module selectedModule = context.getModule();
       if (selectedModule != null) {
         final ModuleBasedConfiguration templateConfiguration = (ModuleBasedConfiguration)template.getConfiguration();
         if (templateConfiguration.getConfigurationModule().getModule() == null) {