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 148942 - Code completion: sequences are not suggested in 'for' loop
Summary: Code completion: sequences are not suggested in 'for' loop
Status: VERIFIED WORKSFORME
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Petr Nejedly
URL:
Keywords:
Depends on:
Blocks: 154422
  Show dependency tree
 
Reported: 2008-10-02 11:26 UTC by Alexandr Scherbatiy
Modified: 2009-09-04 12:59 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 Alexandr Scherbatiy 2008-10-02 11:26:04 UTC
Steps to reproduce:

- Copy the code to the editor:
  --------------------------------------------------------
  var seq = [ "One", "Two", ];

  for ( num in ){
  }
  --------------------------------------------------------
- Position the cursor after 'in' keyword in the loop,
  type s and press <Ctrl+Space>   "for ( num in s)"

  Code completion does not suggest the 'seq' variable
Comment 1 Alexandr Scherbatiy 2008-10-02 11:27:45 UTC
JavaFX_trunk_NB_Plugin_NB65_cont: #286 	02-Oct-2008 05:19:08

Product Version         = NetBeans IDE Dev (Build 200809151401)
Operating System        = Windows XP version 5.1 running on x86
Java; VM; Vendor        = 1.5.0_09; Java HotSpot(TM) Client VM 1.5.0_09-b03; Sun Microsystems Inc.
Comment 2 Lark Fitzgerald 2008-10-17 21:40:21 UTC
Added testFXApplication1c.
Comment 4 Petr Nejedly 2009-09-02 14:09:09 UTC
It does suggest sequence variables now (NetBeans IDE Dev Build 200909011401).
While I would like different order of suggestions (sequence variables listed first, other primitive types filtered), I
consider this as fixed, or maybe "works for me" now.
Comment 5 Alexandr Scherbatiy 2009-09-04 12:59:57 UTC
verified in the dev build