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 71936 - Adv. Options | Indentation | Number of spaces per indent does not work
Summary: Adv. Options | Indentation | Number of spaces per indent does not work
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker with 1 vote (vote)
Assignee: Jan Jancura
URL:
Keywords:
: 75731 76390 86639 86749 89520 (view as bug list)
Depends on:
Blocks: 75270
  Show dependency tree
 
Reported: 2006-01-27 16:21 UTC by Max Sauer
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 Max Sauer 2006-01-27 16:21:25 UTC
The "Number of spaces per indent" is not remembered correctly for editors
different than Java Editor. Re-invocation of options or switching to Basic mode
couses the settings to be lost.

Steps to reproduce:
-------------------
1) Open a html file
2) Reformat the code
3) Open Tools|Options|Advanced|Editing|Indentation Engines|HTML In. E.
4) Change "Number of spaces per indent" to ie. 25
5) Close OD
6) Reformat code
--> changes are applied correctly
7) Invoke Tools|Options
8) Press OK
9) Reformat code
--> chnages were reverted

[NB 5.0 fcs 200601251500, JDK 1.6.0rc b69, solaris 10/sparc]
Comment 1 Daniel Prusa 2006-03-21 15:23:11 UTC

*** This issue has been marked as a duplicate of 70424 ***
Comment 2 Max Sauer 2006-05-09 09:44:31 UTC
This is definetely not a duplicate of 70424, which refers to change of
indentation engine inside Tools | Options | Advanced Options | Editing | Editor
Settings | Java Editor.

This issue refers to forgotten settings inside
Tools|Options|Advanced|Editing|Indentation Engines. These settings are not
remembered at all, except of "Java". In case we do not intend to support
different indentaion settings inside different editors, these settings should be
removed.

The problem persists in current builds.

--------
NB 5.5 beta 200605020200
--------  
Comment 3 Max Sauer 2006-05-09 09:47:02 UTC
*** Issue 75731 has been marked as a duplicate of this issue. ***
Comment 4 Max Sauer 2006-05-09 10:02:33 UTC
P3->P2. since this is the prio of the duplicate, and other issues depend on this..
Comment 5 Jan Jancura 2006-06-12 15:18:33 UTC
Tools|Options|Advanced|Editing|Indentation Engines|...
should be removed from old options dialog.
Comment 6 Max Sauer 2006-06-13 08:30:36 UTC
There is a patch which removes this section. Should be applied on 5.5. See issue
77768.
Comment 7 Jiri Prox 2006-10-06 11:42:48 UTC
*** Issue 86639 has been marked as a duplicate of this issue. ***
Comment 8 Vitezslav Stejskal 2006-10-13 06:05:53 UTC
When changing indentation settings from Tools/Options -> Editor -> Indentation
all the indentation engines (for all languages) will be updated after applying
the changes (i.e. clicking Ok or going to 'Advanced Options'). However when
fiddling with a particular engine in 'Advanced options' the changes won't affect
any other engine. They also won't show up in the 'Basic options' panel unless
it's a java indentation engine you've been playing with.

Checking in IndentationModel.java;
/cvs/editor/options/src/org/netbeans/modules/options/indentation/IndentationModel.java,v
 <--  IndentationModel.java
new revision: 1.5; previous revision: 1.4
done
Checking in IndentationPanel.java;
/cvs/editor/options/src/org/netbeans/modules/options/indentation/IndentationPanel.java,v
 <--  IndentationPanel.java
new revision: 1.24; previous revision: 1.23
done
Comment 9 Max Sauer 2006-10-30 09:34:24 UTC
Thanks for the fix, but the initial scenerio is still reproducible in current
trunk. Please follow the mentioned steps to reproduce.

---
NetBeans IDE Dev (Build 061030)
1.6.0-rc; Java HotSpot(TM) Server VM 1.6.0-rc-b103
Linux version 2.6.12-1.1390_FC4smp running on i386
en_US (nb); UTF-8
Comment 10 Vladimir Kvashin 2006-11-14 16:36:19 UTC
*** Issue 86749 has been marked as a duplicate of this issue. ***
Comment 11 Vladimir Kvashin 2006-11-14 16:41:47 UTC
*** Issue 76390 has been marked as a duplicate of this issue. ***
Comment 12 Jiri Prox 2006-11-20 10:01:06 UTC
*** Issue 89520 has been marked as a duplicate of this issue. ***
Comment 13 Vitezslav Stejskal 2007-07-18 18:32:15 UTC
Fixed with issue #66187. The example is now XML not java. Also the indentation/formatting of HTML seems broken at the
moment. Please verify the fix on SQL, DTD or some other documents. They might not have the 'reformat action', but you
can use the indentation (eg. select a block and press tab, shift-tab; it should move the lines by the 'number of spaces
per indent' spaces.
Comment 14 Max Sauer 2007-08-06 10:20:30 UTC
Verified on SQL and DTD indent. engines. Thanks for the fix.
---
Product Version: NetBeans IDE Dev (Build 070806) 
Java: 1.6.0_01; Java HotSpot(TM) 64-Bit Server VM 1.6.0_01-b04 
System: SunOS version 5.10 running on sparcv9; ISO646-US; 
en (nb) Userdir: /home/ms159439/.netbeans/dev