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 55509 - Object created from template should be indented using current indent settings
Summary: Object created from template should be indented using current indent settings
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 4.x
Hardware: PC All
: P3 blocker (vote)
Assignee: Tomasz Slota
URL:
Keywords:
: 39481 114308 (view as bug list)
Depends on: 88962
Blocks:
  Show dependency tree
 
Reported: 2005-02-24 17:00 UTC by athompson
Modified: 2012-07-30 21:03 UTC (History)
1 user (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 athompson 2005-02-24 17:00:46 UTC
templates are formatted as they are inserted, so
if a user wants only spaces (they have 'insert
spaces for tabs' option set) they will still get
spaces. however the opposite is not true; if a
user wants tabs and the template contains spaces,
they are stuck with spaces unless they reformat.

there are many templates which use spaces. they
should be reformatted to use tabs so the choice is
left to the user.
Comment 1 Miloslav Metelka 2005-03-02 21:39:44 UTC
The java templates all go through the indentation engine so once you
have e.g. a Tab Size set to 4 in the editor settings and spaces per
tab to 4 in the indentation engine and expand tabs set to false then
you should see the tab characters in the file created from template.
I've tested it with the Main.java class template in the recent dev
builds. Could you please provide a concrete example where this fails?
Thanks.
Comment 2 athompson 2005-03-11 18:48:03 UTC
adding new jsp or jspx pages to web projects add the pages with spaces, for one.
maybe they aren't making it through the indentation engine?
Comment 3 Miloslav Metelka 2005-03-14 09:18:42 UTC
Yes, it might be the case. Reassigning to web module for evaluation.
Comment 4 zikmund 2005-03-14 09:35:46 UTC
Web templates don't use indentation engine :( - see issue 39481.
Comment 5 Milan Kuchtiak 2005-11-29 09:15:03 UTC
The formatter should be called after object is created.
Comment 6 Jaroslav Pospisil 2006-03-13 13:43:41 UTC
TM 5.0->TBD
Comment 7 Marek Fukala 2006-06-01 10:08:22 UTC
*** Issue 39481 has been marked as a duplicate of this issue. ***
Comment 8 athompson 2007-05-21 16:50:08 UTC
still relevant with 6.0
Comment 9 Tomasz Slota 2007-10-16 08:40:54 UTC
*** Issue 114308 has been marked as a duplicate of this issue. ***
Comment 10 Jiri Prox 2008-04-11 01:13:23 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 11 Marek Fukala 2010-05-13 14:19:53 UTC
its already fixed, the templates are indented after being inserted