Fix compilation error
This commit is contained in:
committed by
Nikolay Krasko
parent
fbe192b75f
commit
93a3d3a4c4
+1
-1
@@ -52,7 +52,7 @@ import javax.swing.JComponent
|
||||
public class KotlinFieldBreakpointType : JavaBreakpointType<KotlinPropertyBreakpointProperties>, XLineBreakpointType<KotlinPropertyBreakpointProperties>(
|
||||
"kotlin-field", JetBundle.message("debugger.field.watchpoints.tab.title")
|
||||
) {
|
||||
override fun createJavaBreakpoint(project: Project, breakpoint: XBreakpoint<KotlinPropertyBreakpointProperties>): Breakpoint<*> {
|
||||
override fun createJavaBreakpoint(project: Project, breakpoint: XBreakpoint<KotlinPropertyBreakpointProperties>): Breakpoint<KotlinPropertyBreakpointProperties> {
|
||||
return KotlinFieldBreakpoint(project, breakpoint)
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -40,7 +40,7 @@ public class AndroidGotoDeclarationHandler : GotoDeclarationHandler {
|
||||
val moduleInfo = sourceElement.getModuleInfo()
|
||||
if (moduleInfo !is ModuleSourceInfo) return null
|
||||
|
||||
val parser = ModuleServiceManager.getService(moduleInfo.module, javaClass<AndroidUIXmlProcessor>())
|
||||
val parser = ModuleServiceManager.getService(moduleInfo.module, javaClass<AndroidUIXmlProcessor>())!!
|
||||
val psiElements = parser.resourceManager.propertyToXmlAttributes(property)
|
||||
val valueElements = psiElements.map { (it as? XmlAttribute)?.getValueElement() as? PsiElement }.filterNotNull()
|
||||
if (valueElements.isNotEmpty()) return valueElements.toTypedArray()
|
||||
|
||||
+2
-2
@@ -93,7 +93,7 @@ public class AndroidRenameProcessor : RenamePsiElementProcessor() {
|
||||
) {
|
||||
val module = jetProperty.getModule() ?: return
|
||||
|
||||
val processor = ModuleServiceManager.getService(module, javaClass<AndroidUIXmlProcessor>())
|
||||
val processor = ModuleServiceManager.getService(module, javaClass<AndroidUIXmlProcessor>())!!
|
||||
val resourceManager = processor.resourceManager
|
||||
|
||||
val psiElements = resourceManager.propertyToXmlAttributes(jetProperty).map { it as? XmlAttribute }.filterNotNull()
|
||||
@@ -120,7 +120,7 @@ public class AndroidRenameProcessor : RenamePsiElementProcessor() {
|
||||
val module = attribute.getModule() ?: ModuleUtilCore.findModuleForFile(
|
||||
attribute.getContainingFile().getVirtualFile(), attribute.getProject()) ?: return
|
||||
|
||||
val processor = ModuleServiceManager.getService(module, javaClass<AndroidUIXmlProcessor>())
|
||||
val processor = ModuleServiceManager.getService(module, javaClass<AndroidUIXmlProcessor>())!!
|
||||
if (element == null) return
|
||||
val oldPropName = AndroidResourceUtil.getResourceNameByReferenceText(attribute.getValue())
|
||||
val newPropName = idToName(newName)
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@ public class IDEAndroidExternalDeclarationsProvider(private val project: Project
|
||||
if (moduleInfo !is ModuleSourceInfo) return listOf()
|
||||
|
||||
val module = moduleInfo.module
|
||||
val parser = ModuleServiceManager.getService(module, javaClass<AndroidUIXmlProcessor>())
|
||||
val parser = ModuleServiceManager.getService(module, javaClass<AndroidUIXmlProcessor>())!!
|
||||
val syntheticFiles = parser.parseToPsi()
|
||||
syntheticFiles?.forEach { it.moduleInfo = moduleInfo }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user