Commit Graph

7020 Commits

Author SHA1 Message Date
Mikhail Mutcianko f507857930 fix R class field resolving
- resolve by class name and package defined in AndroidManifest.xml
2015-02-26 15:25:33 +03:00
Mikhail Mutcianko adbe9afd4a add android completion tests
- add android plugin test classes as test library
- add base android test cases for kotlin, setting up android facet and sdk
2015-02-26 15:25:32 +03:00
Mikhail Mutcianko 08245ffe1c add android properties box tests 2015-02-26 15:25:31 +03:00
dedoz f2ab424c41 add generated tests 2015-02-26 15:25:31 +03:00
Mikhail Mutcianko a56fa7f192 optimize imports 2015-02-26 15:25:31 +03:00
Mikhail Mutcianko 19e6b79cae minor refactorings 2015-02-26 15:25:30 +03:00
Mikhail Mutcianko 23fbc60e50 update android synthetic properties completion test
- add missing android classes as text into fixture
2015-02-26 15:25:30 +03:00
Mikhail Mutcianko ec0d1f5d06 fix android plugin libs dependencies 2015-02-26 15:25:30 +03:00
dedoz 972e0f28d0 add android xml to properties completion test 2015-02-26 15:25:28 +03:00
Mikhail Mutcianko c6b8cbbb01 add android layout file searching to kotlin jps plugin 2015-02-26 15:25:28 +03:00
Mikhail Mutcianko f49e28387e delegate android resource and manifest reading in ide to android support plugin 2015-02-26 15:25:28 +03:00
Mikhail Mutcianko 85e18a3d73 correct interpretation of android id usage mixed with id declarations 2015-02-26 15:25:27 +03:00
Mikhail Mutcianko 8e8b626994 implement find usages action for android synthetic properties 2015-02-26 15:25:27 +03:00
Mikhail Mutcianko d310b2021c add android xml reference and rename handling to JetSimpleNameReference 2015-02-26 15:25:27 +03:00
Mikhail Mutcianko 9c9bad2f78 android goto declaration handler reference fix
- goto handler now utilizes full featured reference resolving instead of simple name based resolving
2015-02-26 15:25:26 +03:00
Mikhail Mutcianko 37c851cafc fix excess xml parsing when renaming resources
- rebuild resource name -> xml attribute mappings same time as rebuilding synthetic properties
- update mappings during rename
2015-02-26 15:25:26 +03:00
Mikhail Mutcianko 9f20c36959 add synthetic property renaming by renaming R light class field 2015-02-26 15:25:26 +03:00
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 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
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 21408da521 insert missing copyrights, move ByteArrayClassLoader up 2015-02-26 15:25:22 +03:00
Mikhail Mutcianko 7536170e1d add android manifest support 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 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 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 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 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
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
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
Nikolay Krasko f3919db592 Find usages and reference to delegation origin 2015-02-24 21:52:52 +03:00
Stanislav Erokhin 57fd5cc84c Support local return in lambda without explicit return type 2015-02-24 14:14:49 +03:00
Nikolay Krasko 8ea9d39e98 Do not generate long lines and simplify merge in generated tests 2015-02-24 13:15:09 +03:00
Alexey Sedunov 95675176df Change Signature: Add test for KT-5784 "Generate import on function refactoring when parameter changes type"
#KT-5784 Fixed
2015-02-20 19:08:22 +03:00
Alexey Sedunov a21163b8c4 Change Signature: Add test for KT-4013 "'Change signature' does not add necessary imports"
#KT-4013 Fixed
2015-02-20 19:08:19 +03:00
Alexey Sedunov 8e2b0875c2 Intentions: Forbid conversion of vararg parameter to receiver 2015-02-20 19:08:17 +03:00
Alexey Sedunov 2af83c58c9 Create from usage: Use separate editor for templates which should be placed in Java files 2015-02-20 19:08:14 +03:00
Alexey Sedunov 6bdff82c3a Create from usage: Do not create functions/properties from import directives 2015-02-20 19:08:11 +03:00
Alexey Sedunov 41d51e0a13 Create from usage: Assume String return type for function whch is called inside of string template
#KT-6083 Fixed
2015-02-20 19:08:08 +03:00
Alexey Sedunov 0ae69e0d3e Create from usage: Do not generate function body if it's declared as a trait member
#KT-6078 Fixed
2015-02-20 17:28:41 +03:00
Alexey Sedunov 60d02dab0f Create from usage: Support generation of nested Java classes from usages in Kotlin code 2015-02-20 17:28:40 +03:00
Alexey Sedunov 5cd477279b Create from usage: Support static Java members 2015-02-20 17:28:39 +03:00
Alexey Sedunov 19fc9adffa Create from usage: Support generation of Java fields from usages in Kotlin code 2015-02-20 17:28:38 +03:00