Templates and imports [message #175510] |
Thu, 19 October 2006 10:28  |
Eclipse User |
|
|
|
Originally posted by: wojtek.a.com
If I have a code template such as:
----------------------------------------
catch( SQLException e )
{
${cursor}// TODO handle bad SQL execution
}
finally
{
try
{
conn.close();
}
catch( SQLException e )
{
// oh well ....
}
}
----------------------------------------
When this code is inserted, then the SQLException is flagged as not being found. I need to place the cursor after SQLException then CTRL-SPACE which
inserts the import statement.
Is there some setting which will automatically insert imports for code templates? There is no variable right now where I can place the correct import
statement.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.21751 seconds