Commit Graph

13 Commits

Author SHA1 Message Date
Anna.Kozlova
f73b89ad6a add static import: take into account packages which should be always imported on demand (IDEA-127947) 2018-07-30 12:34:57 +02:00
Anna.Kozlova
84e2da2eeb add single import: ensure current ref to import is taken into account when check the limit (IDEA-127949) 2018-07-27 18:48:57 +02:00
Tagir Valeev
aa89c3b6fa CommentTracker: do not add a comment as a first child of PsiElement
Fixes IDEA-187526 "Add static import" with an intervening comment leads to exception
2018-03-02 16:22:19 +07:00
Tagir Valeev
44585d34d9 CommentTracker: support removal of reference qualifier; used in AddSingleMemberStaticImportAction 2018-01-18 12:00:24 +07:00
Anna.Kozlova
571b62d662 enable add import for inner classes (IDEA-183488) 2017-12-14 11:41:51 +01:00
Anna.Kozlova
01e64268f9 ensure method, imported statically, is not hidden by a local one (IDEA-175967) 2017-07-18 14:32:41 +02:00
Anna Kozlova
ed4a26a905 add single static import: ensure not available when conflict(IDEA-174983)
when methods (> 1) with same name exist in the containing class
2017-06-26 16:11:56 +03:00
Anna.Kozlova
83bb640734 ensure inserted single-static-import when conflicting on-demand imports are presented (IDEA-155031) 2016-11-25 09:56:52 +01:00
Anna Kozlova
4585214187 add single static import: don't replace instance member calls (IDEA-153929) 2016-05-26 18:56:33 +03:00
Anna Kozlova
d5ee2ec744 testdata fixed 2014-05-26 22:21:20 +04:00
anna
e8ef5ea7d7 allow to add static import for containing class when it already contains imported members (IDEA-96156) 2013-04-25 14:14:51 +02:00
anna
3d9008c296 add single static import: process nested references (IDEA-94951) 2013-04-24 16:27:01 +02:00
anna
15b1d535cd add single static import on inaccessible element - retrieve accessible or do not suggest intention (IDEA-18050 ) 2011-08-26 15:58:33 +02:00