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 106708 - BP 0.1.2: AutocompleteTextfield is missing code help
Summary: BP 0.1.2: AutocompleteTextfield is missing code help
Status: RESOLVED DUPLICATE of bug 103623
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Pavel Flaska
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-14 18:44 UTC by Lark Fitzgerald
Modified: 2007-06-25 11:25 UTC (History)
1 user (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 Lark Fitzgerald 2007-06-14 18:44:51 UTC
NB6: 200706130000
Woodstock 4.1 200706132309
Blueprints: 0.1.2


The autocomplete signature looks like:
public void autoComplete1_complete(FacesContext context, String prefix, CompletionResult result) {
}

In 0.1.1 it use to look like:
public void autoComplete1_complete(FacesContext context, String prefix, CompletionResult result) {
//result.addItem("Hello");
//result.addItem(prefix.toUpperCase());
}

This existed for demo/tutorial purposes.
Comment 1 Matthew Bohm 2007-06-22 01:35:43 UTC
The complib has not changed in this regard. It must be that the platform has changed. Reassigning to edwingo, hoping he
has insights or otherwise knows the appropriate platform engineer to address this.
Comment 2 _ edwingo 2007-06-22 17:23:25 UTC
I believe insync is responsible for inserting the code based on the metadata that is part of the component. So I will
reassign to someone who works on insync.
Comment 3 _ sandipchitale 2007-06-22 20:59:24 UTC
I am able to reproduce this. Most likely TreeMaker (a Retouche utility class issue). Investigating further...
Comment 4 _ sandipchitale 2007-06-22 21:20:10 UTC
This seems to a problem in 

Class:  org.netbeans.api.java.source.TreeMaker
Method: public MethodTree Method(ModifiersTree modifiers,
                      CharSequence name,
                      Tree returnType,
                      List<? extends TypeParameterTree> typeParameters,
                      List<? extends VariableTree> parameters,
                      List<? extends ExpressionTree> throwsList,
                      String bodyText,
                      ExpressionTree defaultValue) 

When the passed in body text it only // comments or a statement follwed by // comments, the // comments are not 
presisted.

Lark, can you please attach the complib and details steps to reproduce for Retouche folks? Thanks.
Comment 5 Pavel Flaska 2007-06-25 11:25:37 UTC
Yes, it is known problem. Currently comments are always related to statement, if there is no statement, comment is not
printed. Thanks for the report.

*** This issue has been marked as a duplicate of 103623 ***