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 233978 - Tabs and Indent settings revert to default
Summary: Tabs and Indent settings revert to default
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-06 02:25 UTC by MackSix
Modified: 2013-08-12 02:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Project to use for reproduction (28.13 KB, application/zip)
2013-08-06 02:25 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2013-08-06 02:25:12 UTC
Created attachment 138325 [details]
Project to use for reproduction

1. Open attached project and open wrapping.Wrapping1.java.
2. Goto Tools>>Options>>Editor>>Formatting, Language:Java, Category: Tabs and Indents.
3. Uncheck "Use All Languages Settings".
4. Set Right Margin: 40.
5. Change Category to Wrapping.
6. Change the first 3 options below to "If Long".
6. Click Apply button.
7. Click OK button.
8. Notice the right margin line initially is at 40, but jumps back to 80. The setting is reverted back.

Expected: The setting stays at 40.

Workaround: Click apply on Tabs and Indents panel first, then change Wrapping setting.

Product Version: NetBeans IDE Dev (Build 201308042300)
Java: 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b16
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)

Additionally, if I uncheck "Use All Languages Settings" without changing anything and click Apply, the setting does not persist and the checkbox is automatically checked again.
Comment 1 MackSix 2013-08-06 02:31:02 UTC
Comment on attachment 138325 [details]
Project to use for reproduction

You actually don't need to use the attached project file, just open up any Java source file.
Comment 2 Dusan Balek 2013-08-08 16:42:05 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/c46b93bd1315
Comment 3 Quality Engineering 2013-08-12 02:15:20 UTC
Integrated into 'main-silver', will be available in build *201308112300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/c46b93bd1315
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #233978: Tabs and Indent settings revert to default - fixed.