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 139417 - CC after import should offer only packages
Summary: CC after import should offer only packages
Status: RESOLVED WORKSFORME
Alias: None
Product: groovy
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Janicek
URL:
Keywords:
: 141423 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-07-09 15:40 UTC by Lukas Jungmann
Modified: 2011-12-02 14:20 UTC (History)
3 users (show)

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 Lukas Jungmann 2008-07-09 15:40:15 UTC
type "import co" and press Ctrl+Space (to invoke CC)

=> in java editor "co" gets usually automatically expanded to "com" - if there's no other package starting with "co" on
the project's classpath; in the other case only packages starting with "co" are offered

=> in groovy class editor CC always become visible and offers also abbreviations (like continue, contains) which it
should not offer in this case
Comment 1 schmidtm 2008-07-30 13:37:13 UTC
This issue was discussed on dev@groovy.netbeans.org with the subject:

"GsfCodeTemplateFilter, CodeTemplateFilter. Was: Turning off abbreviations"

The bottom-line is, that we gotta get some delegation-mechanism in GSF to filter this out.

Sorry, to bother you with this - but Tor, could you have a look at it?
Comment 2 Torbjorn Norbye 2008-08-29 19:58:02 UTC
In the discussion thread you pointed to you agreed that the priority here was P3, not P2. Also, in the thread I proposed
some specific things to make this less problematic (like removing the "co=continue" abbreviation).
Comment 3 schmidtm 2008-11-17 15:38:26 UTC
*** Issue 141423 has been marked as a duplicate of this issue. ***
Comment 4 Petr Hejl 2008-12-15 12:14:26 UTC
Reproducible. Should be fixed for 7.0.
Comment 5 Martin Janicek 2011-12-02 14:20:50 UTC
This is no longer reproducible. I've tried:

1. Create new Groovy class
2. Type import co| 

..com is automatically completed and when typing dot after com only correct packages are offered. Closing as WORKSFORME.