Commit Graph

20437 Commits

Author SHA1 Message Date
Mikhail Mutcianko 885d963c3f add bound property renaming by renaming xml attribute value 2015-02-26 15:25:26 +03:00
Mikhail Mutcianko 621193681f refactor AndroidResourceManager
- move more common methods from xml processor implementations to resource manager
- optimize imports, reformat code
2015-02-26 15:25:25 +03:00
Mikhail Mutcianko b5e267ed56 fix double renaming issue
- rebuild resource mapping cache on external layout file changes
- move duplicated code to AndroidResourceManager
2015-02-26 15:25:25 +03:00
Mikhail Mutcianko 1b50b226ae move android rename handler out of kotlin property renamer, extract resource manager class 2015-02-26 15:25:25 +03:00
Mikhail Mutcianko 395959bf21 reformat code, optimize imports 2015-02-26 15:25:24 +03:00
Mikhail Mutcianko 2f97e7fadb revert cli converter to stream parsing 2015-02-26 15:25:24 +03:00
Mikhail Mutcianko 996636aa62 add goto declaration support for synthetic android properties 2015-02-26 15:25:24 +03:00
Mikhail Mutcianko 934a3b0436 rename android synthetic id property also renames respective xml resource 2015-02-26 15:25:24 +03:00
Mikhail Mutcianko d464d89e3d add android synthetic element detecting helpers 2015-02-26 15:25:23 +03:00
dedoz 9899e78329 replace sax with psi based android ui xml parsing in plugin 2015-02-26 15:25:23 +03:00
Mikhail Mutcianko c24fccc659 fix xml resolving
- replace VirtualFileListener based approach with direct PsiFile reading
2015-02-26 15:25:23 +03:00
Mikhail Mutcianko 35b1cb4fc7 check if android metadata is present before inlining property 2015-02-26 15:25:22 +03:00
Mikhail Mutcianko 79cbfcd750 fix compiler argument tests 2015-02-26 15:25:22 +03:00
Mikhail Mutcianko 21408da521 insert missing copyrights, move ByteArrayClassLoader up 2015-02-26 15:25:22 +03:00
dedoz 8495e06285 add android xml bridge invocation test 2015-02-26 15:25:22 +03:00
Mikhail Mutcianko 2801253a9c add byte code generation 2015-02-26 15:25:21 +03:00
Mikhail Mutcianko 7536170e1d add android manifest support 2015-02-26 15:25:21 +03:00
Mikhail Mutcianko a4fb49c3dd fix R class not resolved in dummy file 2015-02-26 15:25:21 +03:00
Mikhail Mutcianko ab0c922f53 refactor XmlHandler, optimize imports, remove unused files 2015-02-26 15:25:20 +03:00
Mikhail Mutcianko 6371197041 add missing module and build dependencies 2015-02-26 15:25:20 +03:00
Mikhail Mutcianko 3c9ec30c20 add writePackage to KotlinWriter 2015-02-26 15:25:20 +03:00
Mikhail Mutcianko d107ad92a0 refactor converter initialization
- push lazyInit() down to IDE and Cli implementations
- no file listeners created in cli implementation anymore
- fix tests
2015-02-26 15:25:20 +03:00
Mikhail Mutcianko d557fa8d5d event based file processing
- use VirtualFileListener to wait for ui xml file updates
- optimize imports
2015-02-26 15:25:19 +03:00
Mikhail Mutcianko 208735d92e suppress xml errors in converter
- simply ignore malformed layouts, xml editor in ide will highlight them anyway
2015-02-26 15:25:19 +03:00
Mikhail Mutcianko eb7534f369 add converter output caching
- add two level caching: per xml conversion result and complete resulting JetFile,
  so that only modified xmls are actually converted, and if no change has been
  made to any of those, last successfully built psi file is returned
- merge AndroidUIXmlPathProvider and AndroidUIXmlParser
- update tests
2015-02-26 15:25:19 +03:00
Mikhail Mutcianko f5b9b155cd fix ant build
- add frontend.android content to sources path
2015-02-26 15:25:18 +03:00
Mikhail Mutcianko ec6f9c9fc5 add compiler key for providing android resources path 2015-02-26 15:25:18 +03:00
Mikhail Mutcianko afee95a37c fix npe when layout xml search path does not exist 2015-02-26 15:25:18 +03:00
Mikhail Mutcianko d5565db488 obey android project structure when searching for ui xmls
- search for android layout xmls in ProjectRoot/res/layout/ when using IDEPathProvider
2015-02-26 15:25:18 +03:00
Mikhail Mutcianko 2c44f5c4b7 missing files handling in converter
- silently continue if no files were found to convert
2015-02-26 15:25:17 +03:00
Mikhail Mutcianko 155d2fa979 ide analyzer integration stub
- add android ui xml path providers/stubs
- add generated file injection during analysis
2015-02-26 15:25:17 +03:00
Mikhail Mutcianko aa01d6d7cf auto cast widget to its original type
- change property return type signatures from View to actual widget type
- simplify and update tests
2015-02-26 15:25:17 +03:00
Mikhail Mutcianko 31dc8194f1 add converted result compilation test 2015-02-26 15:25:16 +03:00
Mikhail Mutcianko 1e8769b5f7 android UI xml bridge initial
- add frontend.android module
- add xml ids to kotlin extension properties converter
- add converter basic functional test
2015-02-26 15:25:16 +03:00
Nikolay Krasko c8c1ce521b Add kotlin runtime to idea-jps-common module dependency
#KT-6826 Fixed
2015-02-26 12:37:32 +03:00
Nikolay Krasko 98a2aa506e Minor: show conflicting elements 2015-02-26 12:37:29 +03:00
Alexander Udalov 6f0ccbfab8 Reuse class loader for kotlin-runtime.jar in codegen tests
Also delete questionable ClassPathInParentClassLoaderTest
2015-02-25 20:13:47 +03:00
Alexander Udalov b99b1883bc Drop unused parameter in JavaToKotlinClassMap and subclasses 2015-02-25 20:13:46 +03:00
Alexander Udalov fca7a8c4a2 Drop PrimitiveTypesUtil, store desc in JvmPrimitiveType 2015-02-25 20:13:46 +03:00
Alexander Udalov 27978a7e25 Clarify inapplicable platformName diagnostic message 2015-02-25 20:13:45 +03:00
Dmitry Jemerov 35e8e4d49a Support spellchecking in Kotlin string literals; remove unused and unnecessary support for custom suppressions of spelling errors 2015-02-25 18:00:59 +01:00
Natalia Ukhorskaya e0e203d7db Debugger: classLoader can be null (ex. classes from android application). JDIEval will use CallerClassLoader for find classes
#KT-6825 Fixed
2015-02-25 16:42:17 +03:00
Natalia Ukhorskaya 957d1c19c5 JDIEval: allow classLoader to be null (load class from caller classloader) 2015-02-25 16:42:17 +03:00
Andrey Breslav b0422990d9 KT-6527 Wrong diagnostics when compare dynamic to null
#KT-6527 Fixed
2015-02-25 14:59:22 +03:00
Andrey Breslav a00a118f94 EA-63343 - assert: DescriptorUtils.getClassDescriptorForTypeConstructor
#KT-6835 Fixed
2015-02-25 14:59:22 +03:00
Andrey Breslav d70d2ca146 Nullability of error types is not known
#KT-6829 Fixed
2015-02-25 14:59:21 +03:00
Nikolay Krasko f3919db592 Find usages and reference to delegation origin 2015-02-24 21:52:52 +03:00
Nikolay Krasko 377209f0c3 Do not report CONFLICTING_JVM_DECLARATIONS on delegated origin element 2015-02-24 21:33:55 +03:00
Stanislav Erokhin c6f8a1cfcc Add support local return from lambda with implicit unit type. 2015-02-24 14:14:49 +03:00
Stanislav Erokhin 57fd5cc84c Support local return in lambda without explicit return type 2015-02-24 14:14:49 +03:00