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 136056

Summary: Implement ClassIndex for javafx
Product: javafx Reporter: Petr Nejedly <pnejedly>
Component: EditorAssignee: Petr Nejedly <pnejedly>
Severity: blocker CC: dstrupl
Priority: P2 Keywords: RELNOTE
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: TASK Exception Reporter:
Bug Depends on:    
Bug Blocks: 125014, 130138, 135936, 149360    

Description Petr Nejedly 2008-05-29 09:05:09 UTC
ClassIndex is necessary for quite some functionality (completion of unimported classes, fix imports, quick open).

The ClassIndex should list all the JDK classes, all the FX SDK classes and all the user classes, which means a lot of
data. It might be possible to reuse the java project's ClassIndex for the platform content (JDK+FX SDK) and keep only
the project's additions.
Comment 1 Lark Fitzgerald 2008-06-19 18:34:41 UTC
This fix will not make it into the preview release.  Here are the ramifications of this issue.  This must be release 

There are several bugs made dependent on this one (and maybe there will be more):

The problem here is that without implementing this one editor cannot "see"
classes that are not explicitly imported in the edited source file.

If you have in your source file e.g.

import javafx.gui.*;

We will code complete classes from the package if you type e.g.

new X();

and place the cursor before the X. But without this we will miss them. We know
that the user expects that the code completion should work even when (s)he types


and hits Ctrl-Space but that this does not work is the result of the compiler
issue. But the missing classes for the not yet imported packages/classes is the
results of not having implemented 136056 ...
Comment 2 Petr Nejedly 2008-11-02 00:15:57 UTC
Implemented an in-memory index of Elements from .fx source files. No listening for changes yet, but it serves completion
and fix imports well, it seems.
Comment 3 Alexandr Scherbatiy 2008-12-18 11:46:42 UTC
Verified. At least the fix imports works.