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 85869 - Consume semicolon typed inside method parameter
Summary: Consume semicolon typed inside method parameter
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-27 13:02 UTC by Max Sauer
Modified: 2007-01-17 10:09 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
screenshot (15.44 KB, image/png)
2006-09-27 13:03 UTC, Max Sauer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Max Sauer 2006-09-27 13:02:53 UTC
When using code completion to supply a method with only one possible parameter,
the method is pasted inside souce, with a param selected in blue, so a user can
easily overwrite it with desired value/variable. Semicolon is also provided at
the end of the line.

However, me being accustomed to old editor, I usually press semicolon to type it
and get to the end of the line, which results in an inappropriate semicolon. 

See attached screenshot.

Steps to reproduce:
-------------------
1) Open a java file
2) Type
  Math.ex| //pipe stands for carret
and invoke CC
3) Choose "exp(..)"
4) Type ie: "2.1" and ";"
--> The semicolon is inside parenthisis -- could we consume it and jump to the
end of the line?

---
NetBeans IDE Dev (Build 060927)
1.6.0-rc; Java HotSpot(TM) Server VM 1.6.0-rc-b99
Linux version 2.6.12-1.1390_FC4smp running on i386
en_US (nb); UTF-8
NetBeans-dev-060927
Comment 1 Max Sauer 2006-09-27 13:03:21 UTC
Created attachment 34578 [details]
screenshot