IDEA-76142: Gradle support - cannot update IDEA projects once one of build.gradle...
[idea/community.git] / plugins / gradle / testSources / org / jetbrains / plugins / gradle / testutil / IntellijProjectBuilder.groovy
index 2cea42fa39a783a6c2927daac9fe3686e514941d..4948c10dd0cb77130af42a793f990e0710357b9e 100644 (file)
@@ -2,11 +2,12 @@ package org.jetbrains.plugins.gradle.testutil
 
 import com.intellij.pom.java.LanguageLevel
 import com.intellij.openapi.module.Module
-import com.intellij.openapi.roots.RootPolicy
+
 import com.intellij.openapi.roots.libraries.Library
 import com.intellij.openapi.roots.LibraryOrderEntry
-import groovy.mock.interceptor.StubFor
+
 import com.intellij.openapi.project.Project
+import com.intellij.openapi.util.IconLoader
 
 /** 
  * @author Denis Zhdanov
@@ -16,15 +17,16 @@ class IntellijProjectBuilder extends AbstractProjectBuilder {
   
   def projectStub = [:]
   def project = projectStub as Project
-  def projectStructureHelper = [
+  def platformFacade = [
     getModules: { modules },
-    getOrderEntries: { dependencies[it] }
+    getOrderEntries: { dependencies[it] },
+    getProjectIcon: { IconLoader.getIcon("/nodes/ideaProject.png") }
   ]
 
   @Override
   protected createProject(String name, LanguageLevel languageLevel) {
     projectStub.getName = { name }
-    projectStructureHelper.getLanguageLevel = { languageLevel }
+    platformFacade.getLanguageLevel = { languageLevel }
     project
   }