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 17446 - More Indentation Engine Problems
Summary: More Indentation Engine Problems
Status: CLOSED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-11-08 23:12 UTC by Adam Blinkinsop
Modified: 2007-09-26 09:14 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 Adam Blinkinsop 2001-11-08 23:12:09 UTC
After changing the options for the indentation engine (all of them) to NOT 
expand tabs to spaces, new classes created from the template (at least the New-
>RMI->Sockets->Socket class) still expand their tabs internally to spaces, as 
well as completely ignoring all of the other indentation engine options one 
might happen to set.

I'm using beta 3.
Comment 1 Jan Lahoda 2001-11-09 15:20:41 UTC
Hi,
   AFAIK, java module is not reformatting whole source code when
instantiating template, so the code can not be reformatted.
I would recommend you to either reformat the template or to reformat
the code after new file created untill java module will not reformat
the code.
Passign to java module to add some comment.
Comment 2 Svata Dedic 2001-11-09 16:27:16 UTC
Sadly, this is "as designed". The idea behind formatting templates was
that the template *is* already formatted (since it is
user-customizable, you can do the formatting, if different from the
default). The reason why it is piped through the indentation engine is
the macros, which can be inside the template. The replacement string
may obscur formatting of the neighbouring text, so it is indented
(through Indentation Engine). The rest (except macros) is left
unchanged so the user-default formatting is preserved.

If you feel uncomfortable with the above, please file an enhancement
request against java module - but please describe how it should work
and how do you think we can distinguish preformatted templates from
the ones which needs to be formatted.
Comment 3 Quality Engineering 2003-07-01 13:12:22 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 4 Quality Engineering 2003-07-01 13:21:49 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.