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.
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.
We will code complete classes from the package if you type e.g.
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 ...
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.
Verified. At least the fix imports works.