com.intellij.openapi.project.Projectcom.intellij.openapi.module.Module



Project JetBrains/intellij-community in file ...t.impl.ui.libraries.LibrariesValidatorContext.java (2008-10-03)
@@ -4,7 +4,7 @@
 
 package com.intellij.facet.impl.ui.libraries;
 
-import com.intellij.openapi.project.Project;
+import com.intellij.openapi.module.Module;
 import com.intellij.openapi.roots.ModifiableRootModel;
 import com.intellij.openapi.roots.ModuleRootModel;
 import com.intellij.openapi.roots.ui.configuration.ModulesProvider;
@@ -25,8 +25,8 @@ public interface LibrariesValidatorContext {
   @NotNull
   ModulesProvider getModulesProvider();
 
-  @Nullable
-  Project getProject();
+  @NotNull
+  Module getModule();
 
   LibrariesContainer getLibrariesContainer();
 
Project JetBrains/intellij-community in file ...r.intentions.dynamic.ui.DynamicPropertyDialog.java (2008-03-10)
@@ -1,17 +1,17 @@
 package org.jetbrains.plugins.groovy.annotator.intentions.dynamic.ui;
 
-import com.intellij.openapi.project.Project;
-import org.jetbrains.plugins.groovy.annotator.intentions.dynamic.virtual.DynamicVirtualProperty;
-import org.jetbrains.plugins.groovy.lang.psi.api.statements.expressions.GrReferenceExpression;
+import com.intellij.openapi.module.Module;
 import org.jetbrains.plugins.groovy.GroovyBundle;
+import org.jetbrains.plugins.groovy.annotator.intentions.dynamic.elements.DPropertyElement;
+import org.jetbrains.plugins.groovy.lang.psi.api.statements.expressions.GrReferenceExpression;
 
 /**
  * User: Dmitry.Krasilschikov
  * Date: 18.02.2008
  */
 public class DynamicPropertyDialog extends DynamicDialog {
-  public DynamicPropertyDialog(Project project, DynamicVirtualProperty virtualProperty, GrReferenceExpression referenceExpression) {
-    super(project, virtualProperty, referenceExpression);
+  public DynamicPropertyDialog(Module module, DPropertyElement virtualProperty, GrReferenceExpression referenceExpression) {
+    super(module, virtualProperty, referenceExpression);
 
     setTitle(GroovyBundle.message("add.dynamic.property"));
     setUpTypeLabel(GroovyBundle.message("dynamic.method.property.type"));
Project JetBrains/intellij-community in file ...ompiler.impl.javaCompiler.jikes.JikesSettings.java (2012-03-26)
@@ -19,7 +19,8 @@ import com.intellij.compiler.impl.javaCompiler.javac.JavacSettings;
 import com.intellij.openapi.components.State;
 import com.intellij.openapi.components.Storage;
 import com.intellij.openapi.components.StorageScheme;
-import com.intellij.openapi.project.Project;
+import com.intellij.openapi.module.Module;
+import com.intellij.util.Chunk;
 
 import java.util.Collection;
 
@@ -34,8 +35,8 @@ public class JikesSettings extends JavacSettings {
   public String JIKES_PATH = "";
   public boolean IS_EMACS_ERRORS_MODE = true;
 
-  public Collection<String> getOptions(Project project) {
-    final Collection<String> options = super.getOptions(project);
+  public Collection<String> getOptions(Chunk<Module> chunk) {
+    final Collection<String> options = super.getOptions(chunk);
     if(IS_EMACS_ERRORS_MODE) {
       options.add("+E");
     }
Project JetBrains/intellij-community in file ...tellij.compiler.impl.rmiCompiler.RmicSettings.java (2012-03-26)
@@ -19,7 +19,8 @@ import com.intellij.compiler.impl.javaCompiler.javac.JavacSettings;
 import com.intellij.openapi.components.State;
 import com.intellij.openapi.components.Storage;
 import com.intellij.openapi.components.StorageScheme;
-import com.intellij.openapi.project.Project;
+import com.intellij.openapi.module.Module;
+import com.intellij.util.Chunk;
 
 import java.util.Collection;
 
@@ -38,8 +39,8 @@ public class RmicSettings extends JavacSettings {
     DEPRECATION = false; // in this configuration deprecation is false by default
   }
 
-  public Collection<String> getOptions(Project project) {
-    final Collection<String> options = super.getOptions(project);
+  public Collection<String> getOptions(Chunk<Module> chunk) {
+    final Collection<String> options = super.getOptions(chunk);
     if(GENERATE_IIOP_STUBS) {
       options.add("-iiop");
     }
Project JetBrains/intellij-community in file ...m.intellij.util.xml.impl.DomInvocationHandler.java (2006-02-28)
@@ -3,11 +3,12 @@
  */
 package com.intellij.util.xml.impl;
 
+import com.intellij.javaee.model.ElementPresentation;
+import com.intellij.javaee.model.ElementPresentationManager;
 import com.intellij.openapi.diagnostic.Logger;
+import com.intellij.openapi.module.Module;
+import com.intellij.openapi.module.impl.ModuleUtil;
 import com.intellij.openapi.util.Pair;
-import com.intellij.openapi.fileEditor.ex.FileEditorManagerEx;
-import com.intellij.openapi.fileEditor.OpenFileDescriptor;
-import com.intellij.openapi.project.Project;
 import com.intellij.psi.PsiLock;
 import com.intellij.psi.search.GlobalSearchScope;
 import com.intellij.psi.xml.XmlFile;
@@ -18,8 +19,6 @@ import com.intellij.util.xml.*;
 import com.intellij.util.xml.events.CollectionElementAddedEvent;
 import com.intellij.util.xml.events.ElementDefinedEvent;
 import com.intellij.util.xml.events.ElementUndefinedEvent;
-import com.intellij.javaee.model.ElementPresentation;
-import com.intellij.javaee.model.ElementPresentationManager;
 import net.sf.cglib.proxy.InvocationHandler;
 import org.jetbrains.annotations.NotNull;
 import org.jetbrains.annotations.Nullable;
@@ -89,6 +88,10 @@ public abstract class DomInvocationHandler implements InvocationHandler, DomElem
     return myType;
   }
 
+  public final Module getModule() {
+    return ModuleUtil.findModuleForPsiElement(getFile());
+  }
+
   public XmlTag ensureTagExists() {
     if (myXmlTag != null) return myXmlTag;