This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 65484 - [50cat] Lack of Horizontal Scrollbar in CC window
Summary: [50cat] Lack of Horizontal Scrollbar in CC window
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker with 6 votes (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-30 07:29 UTC by wulgar
Modified: 2007-11-05 13:38 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wulgar 2005-09-30 07:29:47 UTC
[ BUILD # : Beta ]
[ JDK VERSION : 1.5.0_05 ]

When in project is a lot of overloades methods with long list of arguments there is no possibility to know which method must use.

It's a big regression since Nb4.1
Comment 1 Martin Roskanin 2005-09-30 13:41:14 UTC
this should be fixed. The competion item is also ugly cutted.
Comment 2 Roman Strobl 2005-10-24 12:30:39 UTC
Please take a look at this issue - notice the number of votes.
Comment 3 Miloslav Metelka 2005-10-24 13:11:08 UTC
This is an intentional change. Typically the overloaded methods do the same thing. 
The full version of the method is displayed in the documentation popup which we
consider as a sufficient solution for this situation.
What I currently miss is that it's necessary to scroll horizontally in the doc
popup in order to see all the parameters. Word-wrap would IMHO be better here. I
have entered issue 67422 for this problem
Comment 4 wulgar 2005-10-24 13:25:09 UTC
I dont agree with you. A lot pepole writes 'autocommenting' code with no
documentation. I dont like it but it's a fact, and I must live with it. 

When there is no javadoc for method at javadoc window is: "Javadoc not found... etc"

Totally unusable.
Comment 5 misterm 2005-10-24 14:12:33 UTC
I agree this feature should be added to NB 5.0.
Comment 6 Miloslav Metelka 2005-10-24 16:25:23 UTC
> A lot pepole writes 'autocommenting' code with no documentation.

IMHO we should always display at least the method signature (word-wrapped
ideally) even if there's no explicit javadoc. Jano R., do you agree?
Comment 7 Miloslav Metelka 2005-10-31 16:17:39 UTC
I've found additional problem that we would have to face with the horizontal
scrollbar presence - displaying of the method/field types on the right side of
the completion popup. With the horizontal scrollbar present the types could not
be displayed right-aligned effectively as they could become completely invisible
if the h. scrollbar would be present. With horizontal scrollbar we would
probably have to return back to the original displaying of the return types on
the left which is IMHO far less readable. Having two individually scrollable
columns (one for method signature and one for type) is IMHO also not a nice
solution as currently the narrower type makes space that is occupied by
(possibly wider) method signature.

What about using a tooltip for displaying of the full signature in case it does
not fit? I mean if the item does not fit and the user hovers with th mouse over
the particular item then the tooltip would display the full signature. If the
item fits nothing would display.
Comment 8 jrojcek 2005-11-04 17:45:02 UTC
What I would suggest is to reuse the JavaDoc window for that purpose. Even though there's no JavaDoc, we 
could at least show the full method declaration in that window (right below or above the message about 
missing Javadoc). Final design TBD.

Would this work for you?
Comment 9 Dusan Balek 2005-12-06 12:56:50 UTC
Fixed in [maintrunk]. Full class/method/field signature is always displayed in
the JavaDoc window (even if the corresponding JavaDoc is missing).

Checking in lib/src/org/netbeans/editor/ext/java/JavaCompletionJavaDoc.java;
/cvs/java/editor/lib/src/org/netbeans/editor/ext/java/JavaCompletionJavaDoc.java,v
 <--  JavaCompletionJavaDoc.java
new revision: 1.3; previous revision: 1.2
done
Checking in src/org/netbeans/modules/editor/java/NbJMICompletionJavaDoc.java;
/cvs/java/editor/src/org/netbeans/modules/editor/java/NbJMICompletionJavaDoc.java,v
 <--  NbJMICompletionJavaDoc.java
new revision: 1.23; previous revision: 1.22
done