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 71451 - Auto-import during script edit
Summary: Auto-import during script edit
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker with 1 vote (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-16 15:49 UTC by brviking
Modified: 2010-09-21 10:03 UTC (History)
0 users

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 brviking 2006-01-16 15:49:48 UTC
While editing a scriplet in JSP, is interesting if import be added 
automatically while typing.

As example, users type

Contex|

And ctrl+space then chooses javax.naming.Context and editor auto-complete AND 
add import directive at top of page:

import='javax.naming.Context'

If user add two or three classes from same java or javax package, then it 
should be:

import="javax.naming.*"

Throught, it should be carefull, because we can have multi-import statements, 
and even multi-line imports:

import="javax.naming.Context,
        java.sql.Connection,
        javax.sql.DataSource"
Comment 1 Tomasz Slota 2007-11-23 14:19:57 UTC
Yeah, we've been thinking about it for a long time, but there's never been enough time.. Thank you for filing this issue, hopefully it will can be done for 6.1
Comment 2 Jiri Prox 2008-04-11 01:07:42 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 3 _ wadechandler 2009-01-04 05:11:50 UTC
Is this planned for 7.0? This is very very (lets put some emphasis on it...VERY) needed. Not having it really knocks
down on productivity within JSP pages which use scriptlets.
Comment 4 _ wadechandler 2009-01-04 05:16:13 UTC
Not only make it automatically add the import when completion is used, but too make fix imports work. 
Comment 5 _ wadechandler 2009-01-04 05:21:40 UTC
By that last comment I mean to give it the same "Fix Imports" action that the Java editor has.