Switched to use of new method for import insertion

This commit is contained in:
Valentin Kipyatkov
2015-02-09 19:56:40 +03:00
parent 20c62a2835
commit 8f7cf38e67
@@ -77,7 +77,7 @@ public abstract class KotlinCallableInsertHandler : BaseDeclarationInsertHandler
if (DescriptorUtils.isTopLevelDeclaration(descriptor)) {
ApplicationManager.getApplication()?.runWriteAction {
ImportInsertHelper.getInstance(context.getProject()).addImportDirectiveIfNeeded(DescriptorUtils.getFqNameSafe(descriptor), file)
ImportInsertHelper.getInstance(context.getProject()).importDescriptor(file, descriptor)
}
}
}