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 13977 - New -> Field action enhancement
Summary: New -> Field action enhancement
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: Hints & Annotations (show other bugs)
Version: 3.x
Hardware: PC All
: P4 blocker (vote)
Assignee: tasklist-issues@contrib
URL:
Keywords:
Depends on: 17825
Blocks:
  Show dependency tree
 
Reported: 2001-07-26 18:03 UTC by Petr Slegr
Modified: 2016-07-07 07:29 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Slegr 2001-07-26 18:03:19 UTC
When I write code I often will use some field in method body before I will
declare it. For same cases (ESPECIALLY for constants) would be useful New ->
Field action enhancement:

On proper token in editor (i.e. correct Java identifier) it would be possible
via some shortcut invoke New Field dialog where following items would be prefilled:
 - name - from written token
 - type - guessed from context
 - some modifier - e.g. for uppercase identifier "public static final" modifiers
would be offered.

Now user could modify thes values, complete initial value if needed and by OK
comit changes to source and then continue in coding without jump to place for
fields declaration and back...
Comment 1 Svata Dedic 2001-11-19 12:15:50 UTC
Type guessing depends on detailed code analysis. The rest... editor 
folks, aren't you interested ?
Comment 2 Jan Chalupa 2001-11-27 12:49:55 UTC
Target milestone -> 3.3.1.
Comment 3 Svata Dedic 2002-05-21 17:49:58 UTC
Cleaning up before 4.0 planning
Comment 4 Marek Grummich 2002-07-19 21:05:59 UTC
Target milestone was changed from 'not determined' to TBD.
Comment 5 Martin Matula 2004-11-15 12:39:59 UTC
This should be addressed by a tasklist module (suggestions feature).
Comment 6 Martin Balin 2016-07-07 07:29:39 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss