mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
show substituted parameter types in method completion
This commit is contained in:
@@ -62,7 +62,7 @@ public class MemberLookupHelper {
|
||||
final String params = myMergedOverloads
|
||||
? "(...)"
|
||||
: myMember instanceof PsiMethod
|
||||
? PsiFormatUtil.formatMethod((PsiMethod)myMember, PsiSubstitutor.EMPTY,
|
||||
? PsiFormatUtil.formatMethod((PsiMethod)myMember, substitutor,
|
||||
PsiFormatUtil.SHOW_PARAMETERS,
|
||||
PsiFormatUtil.SHOW_NAME | PsiFormatUtil.SHOW_TYPE)
|
||||
: "";
|
||||
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
import java.util.ArrayList;
|
||||
|
||||
class TestPoint2D {
|
||||
{
|
||||
new ArrayList<String>().ad<caret>
|
||||
|
||||
}
|
||||
}
|
||||
+12
@@ -129,6 +129,18 @@ public class NormalCompletionTest extends LightFixtureCompletionTestCase {
|
||||
assert presentation.itemTextBold
|
||||
}
|
||||
|
||||
public void testMethodItemPresentationGenerics() {
|
||||
configure()
|
||||
def presentation = new LookupElementPresentation()
|
||||
myItems[0].renderElement(presentation)
|
||||
assert "add" == presentation.itemText
|
||||
assert "(String o)" == presentation.tailText
|
||||
assert "boolean" == presentation.typeText
|
||||
|
||||
assert !presentation.tailGrayed
|
||||
assert presentation.itemTextBold
|
||||
}
|
||||
|
||||
public void testPreferLongerNamesOption() throws Exception {
|
||||
configureByFile("PreferLongerNamesOption.java");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user