ide analyzer integration stub

- add android ui xml path providers/stubs
- add generated file injection during analysis
This commit is contained in:
Mikhail Mutcianko
2014-07-16 16:22:14 +04:00
committed by Yan Zhulanow
parent aa01d6d7cf
commit 155d2fa979
9 changed files with 61 additions and 8 deletions
+2 -1
View File
@@ -39,10 +39,11 @@
<orderEntry type="module" module-name="serialization.jvm" />
<orderEntry type="library" scope="PROVIDED" name="maven" level="project" />
<orderEntry type="module" module-name="eval4j" />
<orderEntry type="module" module-name="frontend.android" />
<orderEntry type="module" module-name="idea-analysis" exported="" />
<orderEntry type="module" module-name="kotlin-android-plugin" />
<orderEntry type="module" module-name="js.frontend" />
<orderEntry type="library" scope="PROVIDED" name="coverage-plugin" level="project" />
<orderEntry type="module" module-name="util" />
</component>
</module>
</module>
+3
View File
@@ -192,6 +192,9 @@
<projectService serviceInterface="org.jetbrains.kotlin.idea.stubindex.SubpackagesIndexService"
serviceImplementation="org.jetbrains.kotlin.idea.stubindex.SubpackagesIndexService"/>
<projectService serviceInterface="org.jetbrains.jet.lang.resolve.android.AndroidUIXmlPathProvider"
serviceImplementation="org.jetbrains.jet.plugin.android.IDEAndroidUIXmlPathProvider"/>
<projectService serviceInterface="org.jetbrains.kotlin.idea.caches.resolve.LibraryModificationTracker"
serviceImplementation="org.jetbrains.kotlin.idea.caches.resolve.LibraryModificationTracker"/>
@@ -0,0 +1,12 @@
package org.jetbrains.jet.plugin.android
import com.intellij.openapi.project.Project
import org.jetbrains.jet.lang.resolve.android.AndroidUIXmlPathProvider
import java.io.File
class IDEAndroidUIXmlPathProvider(val project: Project): AndroidUIXmlPathProvider {
override fun getPaths(): MutableCollection<File> {
return arrayListOf(File("/tmp/android/"))
}
}