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 9697 - [indentation]Language specific indentation engines should not indent other file types.
Summary: [indentation]Language specific indentation engines should not indent other fi...
Status: CLOSED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: Sun All
: P2 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
: 10742 (view as bug list)
Depends on:
Blocks: 8818 9293
  Show dependency tree
 
Reported: 2001-02-20 10:15 UTC by Jan Lahoda
Modified: 2007-11-05 13:44 UTC (History)
0 users

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 Jan Lahoda 2001-02-20 10:15:06 UTC
Try to set Java indentation engine to file of other type than Java (for example
HTML, JSP, ...) and try to type (for example '{', 'else', '<ENTER>'...).
The behaviour is terrible - usually deleted line.
Java indentation engine should refuse (in any way) to indent non-java files.
The same for all language specific indentation engines.
Comment 1 Jan Chalupa 2001-03-12 10:37:02 UTC
Version: 'Dev' -> 3.2
Comment 2 Jan Lahoda 2001-03-30 07:59:41 UTC
*** Issue 10742 has been marked as a duplicate of this issue. ***
Comment 3 Miloslav Metelka 2001-03-30 11:40:38 UTC
Fixed by adding Formatter.acceptSyntax(). The formatting is reverted to simple
(input is written to output without any change) if the formatter is not suitable
for the tokens.
Comment 4 Jan Chalupa 2001-05-05 22:08:42 UTC
Target milestone -> 3.2
Comment 5 Jan Lahoda 2001-06-14 13:37:30 UTC
Verified in development build 209 and releasse 3.2, build 38.
Comment 6 Quality Engineering 2003-06-30 18:10:24 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.