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 98522 - Cursor is not in right position in Java Editor when edit event handler
Summary: Cursor is not in right position in Java Editor when edit event handler
Status: RESOLVED DUPLICATE of bug 103623
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: _ deva
URL:
Keywords:
Depends on: 103623
Blocks:
  Show dependency tree
 
Reported: 2007-03-21 17:47 UTC by Sherry Zhou
Modified: 2007-10-31 18:52 UTC (History)
0 users

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 Sherry Zhou 2007-03-21 17:47:47 UTC
NB M8 build

1. Add a dropdown component(or other components, such as listbox, button that
has event handler)
2. Right click at dropdown or select context menu Edit Event
Handler=>processValueChange Handler.
-- Jave Editor is open, the cursor is at the beginning of the line of method
definition:
   public void dropDown1_processValueChange(...){

It is expected to be in the first line of method body.
Comment 1 _ deva 2007-10-23 19:02:34 UTC
Retouche TreeMaker API ignores comments and whitespaces when the body is empty(#103623), because of which we cannot 
calculate the right place for cursor. This can be fixed correctly only when the underlying issue is fixed in API -
TreeMaker.Method(..., String body,....) 
Comment 2 _ deva 2007-10-31 18:52:22 UTC
Since not much can be done until 103623 is fixed, closing it as duplicate of it

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