Commit Graph

7813 Commits

Author SHA1 Message Date
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
Evgeny Gerashchenko 4f3fced932 Passing real original element to EditSignatureBalloon to make external annotations work for compiled class files. 2012-09-13 19:41:43 +04:00
Evgeny Gerashchenko 65df11e75b Finding Kotlin signature annotations for compiled class without sources. 2012-09-13 19:41:42 +04:00
Evgeny Gerashchenko 707b9db2fc Got rid of possible NPE 2012-09-13 19:41:42 +04:00
Evgeny Gerashchenko 7efbd44d63 Added escaping/unescaping signatures when saving/loading from annotations. 2012-09-13 19:41:42 +04:00
Evgeny Gerashchenko 04431b2fa4 Prohibit Kotlin signature for private methods. 2012-09-13 19:41:42 +04:00
Evgeny Gerashchenko 2a37ba70ac Invoking signature editor after creating. 2012-09-13 19:41:42 +04:00
Evgeny Gerashchenko bb02c6f8f7 Generified EditSignatureBalloon.show(), so it can work with Editor, but without Point. 2012-09-13 19:41:42 +04:00
Evgeny Gerashchenko 80f46af6ad Added "Specify Kotlin Signature" intention. 2012-09-13 19:41:42 +04:00
Evgeny Gerashchenko ba9db41273 Added Delete button to EditSignatureBalloon 2012-09-13 19:41:42 +04:00
Evgeny Gerashchenko 7876b569fd Minor. Reformatted SpecifyTypeExplicitlyAction. 2012-09-13 19:41:41 +04:00
Evgeny Gerashchenko 02bf7c2b9c Added action which disables Kotlin signatures icons. 2012-09-13 19:41:41 +04:00
Evgeny Gerashchenko a3eccfedfa Blocking clicks through balloon. 2012-09-13 19:41:41 +04:00
Evgeny Gerashchenko e38a5478fb Removed different color for caret row in balloon to avoid confusing. 2012-09-13 19:41:41 +04:00
Evgeny Gerashchenko 784ac19ef9 Added extra space in editor, since we cannot resize already created balloon. 2012-09-13 19:41:41 +04:00
Evgeny Gerashchenko 44a6fb1f6f Added handling for Ctrl+Enter and Esc in EditSignatureBalloon. 2012-09-13 19:41:41 +04:00
Evgeny Gerashchenko c0d156b767 Putting balloon strictly over icon gutter icon. 2012-09-13 19:41:41 +04:00
Evgeny Gerashchenko c01c352d88 Extracted methods from EditSignatureBalloon. 2012-09-13 19:41:41 +04:00
Evgeny Gerashchenko 4ffa757376 Moved EditSignatureBalloon class to top level. 2012-09-13 19:41:41 +04:00
Evgeny Gerashchenko 6318ffc0f7 Replaced dialog for editing Kotlin signature with balloon. 2012-09-13 19:41:41 +04:00
Evgeny Gerashchenko eafdfa5e6a Justified editor settings. 2012-09-13 19:41:40 +04:00
Evgeny Gerashchenko 927e2839b0 Added editor for external annotations. 2012-09-13 19:41:40 +04:00
Evgeny Gerashchenko 903c87d832 Added navigation to Kotlin alternative signature if it is not external. 2012-09-13 19:41:40 +04:00
Evgeny Gerashchenko 3b865f0121 Added line marker for Java methods which have alternative Kotlin signature. 2012-09-13 19:41:40 +04:00
Evgeny Gerashchenko 6a77ffbfe2 JetDummyClassFileViewProvider.isEventSystemEnabled() returns false instead of true to make editor actions work for compiled Kotlin class. Overridden JetFile.getVirtualFile() in dummy JetFile to return not null. 2012-09-13 19:38:47 +04:00
Evgeny Gerashchenko d99daec7de Minor. Renamed fields, optimized imports, added 'final'. 2012-09-13 19:38:46 +04:00
Evgeny Gerashchenko 919f9c2735 Using descriptor renderer in Show Expression Type. 2012-09-13 19:38:46 +04:00
Evgeny Gerashchenko df38012a54 Slightly better diagnostic when LibrariesWithSourcesTest doesn't find any references. 2012-09-13 19:38:46 +04:00
Evgeny Gerashchenko e83a9b7eaa Added check for null values in collection passed to CompilerConfiguration. 2012-09-13 19:38:46 +04:00
Evgeny Gerashchenko 08fc54d969 Fixed test data after IDEA update. 2012-09-13 19:07:58 +04:00
Evgeny Gerashchenko c6c96eeb16 Updated IDEA to last EAP 122.327 2012-09-13 19:06:49 +04:00
Svetlana Isakova 585a709bbd minor improvement 2012-09-13 17:28:31 +04:00
Svetlana Isakova b7b15f8379 extracted method 'isSameName' + rename 2012-09-13 17:28:31 +04:00
Svetlana Isakova a4694f767a change anonymous class to TypeTransformingVisitor 2012-09-13 17:28:31 +04:00
Svetlana Isakova 0d1790a4f4 alternative signature applies for names
mapped in standard library (and differs from auto transformed Java signature)
e.g.Collections.copy(MutableList, List)
2012-09-13 17:28:31 +04:00
Svetlana Isakova b080c8f768 added toString for better debug to CallableDescriptorCollectors 2012-09-13 17:28:31 +04:00
Svetlana Isakova 75479c7acd extracted method mapPlatformClass(FqName) 2012-09-13 17:28:31 +04:00
Svetlana Isakova f799df9126 AsmTypeConstants, KotlinToJavaTypesMap moved to frontend.java module 2012-09-13 17:28:31 +04:00
Svetlana Isakova 3daed10e5c removed ClassName class 2012-09-13 17:28:31 +04:00
Svetlana Isakova 5407d4ac36 returned 'getPrimitiveArrayClassDescriptor' to JetStandardLibrary 2012-09-13 17:28:31 +04:00
Svetlana Isakova c015b552f6 add asm constant types to the TYPES_MAP as well 2012-09-13 17:28:31 +04:00
Svetlana Isakova 3c083c83e2 alternative signature applicability check changed 2012-09-13 17:28:30 +04:00
Svetlana Isakova bbc5869ed4 changes in Collection interfaces
MutableList returns MutableListIterator
MutableMap returns MutableSet as keySet(), values(), entrySet()
2012-09-13 17:28:30 +04:00