Commit Graph

7855 Commits

Author SHA1 Message Date
James Strachan 3d66ebd0e1 added partial fix for KT-2765 so we can specify the paths to where annotations.xml files can be found 2012-09-14 15:04:09 +01:00
Natalia.Ukhorskaya c5db89e534 Generated field for classObject is now final
EA-38323 Fixed - Illegal field modifiers in class
2012-09-14 16:41:13 +04:00
Evgeny Gerashchenko 812b9453d1 Extracted KotlinSignatureUtil.isAnnotationEditable method. Made it work in the case of internal internal annotation. 2012-09-14 16:12:17 +04:00
Evgeny Gerashchenko 0665ad409a Hidden "Delete" action and renamed "Edit" to "View" when external annotation is read-only. 2012-09-14 16:12:17 +04:00
Evgeny Gerashchenko be4c0194d9 Fixed balloon position for library with sources. 2012-09-14 16:12:17 +04:00
Evgeny Gerashchenko c33b880a57 EA-39177 - CCE: ArrayIterator.generate
If local variable is auto-casted to array, it should be iterated as array.
2012-09-14 16:12:16 +04:00
Evgeny Gerashchenko 2f89352d80 Added AUTOCAST mark when expression is used as for-loop iterable. 2012-09-14 16:12:16 +04:00
Evgeny Gerashchenko 6ea3d8e300 Replaced Predicate<WritableSlice> with TraceEntryFilter, which accepts key and slice. 2012-09-14 16:12:16 +04:00
Evgeny Gerashchenko 144dddf8b0 Added force getting document to reload its content if it is compiled Kotlin class. 2012-09-14 16:12:16 +04:00
James Strachan 9c3d1071cd added more DRY compareBy function and helper class 2012-09-14 12:44:09 +01:00
James Strachan 51122a288d tried more concise comparison code 2012-09-14 12:05:06 +01:00
James Strachan 1e9b1bdea6 Merge branch 'master' of github.com:JetBrains/kotlin 2012-09-14 11:27:52 +01:00
James Strachan 5647701c24 added a little sample test case of data classes 2012-09-14 11:19:13 +01:00
James Strachan 81d83cd4f0 added component1() / component2() methods to Map.Entry along with a test case so that maps can be iterated over via: for ((k, v) in map) 2012-09-14 11:18:35 +01:00
Natalia.Ukhorskaya 645b784b40 EA-38625 Fixed - Part 2 - UOE: NamespaceType.throwException 2012-09-14 14:11:45 +04:00
Nikolay Krasko 7ad0fd56f3 EA-39175 Completion fails if MultiDeclaration is present on top level in file 2012-09-13 21:06:18 +04:00
Nikolay Krasko a95ba27b7d KT-2758 Errors in lazy resolve: Unknown TYPEDEF
Unknown declaration: TYPEDEF: Unknown declaration: TYPEDEF
 #KT-2758 Fixed
 EA-38287 Fixed
2012-09-13 21:06:18 +04:00
Nikolay Krasko 40f559bcdc Additional test for wrapping functions 2012-09-13 21:06:17 +04:00
Natalia.Ukhorskaya 6516786979 EA-38625 Fixed - UOE: NamespaceType.throwException 2012-09-13 20:04:10 +04:00
Evgeny Gerashchenko 6b81ba1aef Using real annotation owner when creating popup menu action group to make it work for library without sources. 2012-09-13 19:41:46 +04:00
Evgeny Gerashchenko 9e4ebe6982 Replaced assert to if-check to avoid when dramatically changing root. 2012-09-13 19:41:46 +04:00
Evgeny Gerashchenko ea208965d5 Fixed focus requesting in signature balloon 2012-09-13 19:41:46 +04:00
Evgeny Gerashchenko 502aa1141f Moved invokeEditSignature from EditSignatureBalloon to EditSignatureAction, since it's more natural now. 2012-09-13 19:41:45 +04:00
Evgeny Gerashchenko 331456bab4 Removed "Delete" button from edit signature balloon. 2012-09-13 19:41:45 +04:00
Evgeny Gerashchenko 2a8687b4a5 Added "Delete" context menu action. 2012-09-13 19:41:45 +04:00
Evgeny Gerashchenko 11bba8dd77 Fixed line y-coordinate calculation for popup menu action. Popup menu invocation doesn't move caret, so we can't rely on caret position. 2012-09-13 19:41:45 +04:00
Evgeny Gerashchenko fe126b2d99 Added context menu to Kotlin signature icon with "Edit" action. 2012-09-13 19:41:45 +04:00
Evgeny Gerashchenko 091e1f9601 Using UIUtil instead of manual checking for action click. 2012-09-13 19:41:45 +04:00
Evgeny Gerashchenko c368cbe53e Subclassed EditSignatureBalloon from Disposable to pass it to addDocumentListener(). 2012-09-13 19:41:45 +04:00
Evgeny Gerashchenko c6b723f0ca Set save button enabled iff alt-signature doesn't have syntax errors. 2012-09-13 19:41:45 +04:00
Evgeny Gerashchenko 528fb0ce4f Got rid of getPreferredSize() hack in EdiSignatureBalloon. 2012-09-13 19:41:45 +04:00
Evgeny Gerashchenko df2a6f0c88 Extracted inner class from createPanel() method. 2012-09-13 19:41:45 +04:00
Evgeny Gerashchenko ecf68127df Minor refactoring. Replaced some ifs with asserts, added @NotNull/@Nullable annotations. 2012-09-13 19:41:44 +04:00
Evgeny Gerashchenko 089881e63b Creating LightVirtualFile for editor to enable syntax errors highlighting. 2012-09-13 19:41:44 +04:00
Evgeny Gerashchenko 6e3ce8ac89 Minor. Added comment and simplified code in KotlinSignatureUtil. 2012-09-13 19:41:44 +04:00
Evgeny Gerashchenko 75571092e1 Escaping HTML in Kotlin signature tooltips. 2012-09-13 19:41:44 +04:00
Evgeny Gerashchenko 43017f2035 Enabled Esc for read-only version of edit signature balloon. 2012-09-13 19:41:44 +04:00
Evgeny Gerashchenko c0f633d280 Ctrl+Enter instead of Cmd+Enter on Mac for save and hide. 2012-09-13 19:41:44 +04:00
Evgeny Gerashchenko ea9dfeba66 Disabled "Add Kotlin Signature" intention for constructors. 2012-09-13 19:41:44 +04:00
Evgeny Gerashchenko 7b1979ddca KT-2609 Copy @NotNull data from IDEA's JDK annotations
#KT-2609 fixed
2012-09-13 19:41:44 +04:00
Evgeny Gerashchenko 743e8af7c2 Annotating static methods. 2012-09-13 19:41:44 +04:00
Evgeny Gerashchenko 91b15fe85e Refreshing icons on receiving externalAnnotationsChangedExternally event. 2012-09-13 19:41:43 +04:00
Evgeny Gerashchenko 19e4803b79 Moved various util methods related for reading and editing Kotlin signature annotation utils to util class. Moved invokeEditSignature() to EditSignatureBalloon. Added static imports. Reformatted code a little bit. 2012-09-13 19:41:43 +04:00
Evgeny Gerashchenko bdccb28ebe Moved all Kotlin signatures UI into separate package. 2012-09-13 19:41:43 +04:00
Evgeny Gerashchenko 5768e16afd Added custom icon for AddKotlinSignatureAnnotation intention. 2012-09-13 19:41:43 +04:00
Evgeny Gerashchenko ea434065cb Listening to external annotations manager's events. 2012-09-13 19:41:43 +04:00
Evgeny Gerashchenko 7dd98479cc Made lineY calculation in EditSignatureBalloon simpler and more reliable. 2012-09-13 19:41:43 +04:00
Evgeny Gerashchenko 7d12a27cc4 Made signature balloon read-only if owning annotations XML file is read-only. 2012-09-13 19:41:43 +04:00
Evgeny Gerashchenko 96c01b725f Enabled AddKotlinSignatureAnnotation action available for methods without body. 2012-09-13 19:41:43 +04:00
Evgeny Gerashchenko bb0f0b19b2 Modifying external annotation within same XML. 2012-09-13 19:41:43 +04:00