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.
Summary: | Cannot delete duplicated 'Fonts & Colors' profile | ||
---|---|---|---|
Product: | editor | Reporter: | stwr |
Component: | Options | Assignee: | Milutin Kristofic <mkristofic> |
Status: | REOPENED --- | ||
Severity: | normal | CC: | esapien, theofanis |
Priority: | P3 | ||
Version: | 8.1 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
stwr
2015-08-02 07:03:46 UTC
Delete button restores to default, but the duplicate profile still available. It works for me. 1, I duplicate profile Netbeans and named it Netbeans 2 2, I delete Netbeans 2 3, Netbeans 2 is not anymore in combo box. Can you describe your steps and what happens to you? Sure. I executed following, a bit extended, scenario. Each step is followed by its results represented individually by single '>'. --Use Case-- 1. Open Options, Fonts & Colors > My current profile is 'Netbeans' 2. Hit 'Duplicate...', name it 'Netbeans 2', confirm by 'OK' > The profile 'Netbeans 2' is created > The profile 'Netbeans 2' is selected > The 'Apply' button is active 3. Hit 'Apply' > The profile 'Netbeans 2' remains selected > The 'Apply' button is not active 4. Hit 'Delete' > The profile 'Netbeans 2' is not contained in the list of profiles > The profile 'Netbeans 5.5' is selected now > The 'Apply' button is active 5. Hit 'Apply' > The profile 'Netbeans 2' is back in the list of profiles and has the last index > The 'Apply' button is not active 6. Select 'Netbeans 2' from the list of profiles 7. Hit 'Delete' > The profile 'Netbeans 2' is not contained in the list of profiles > The 'Apply' button is not active 8. Close Options 9. Open Options, Fonts & Colors > The profile 'Netbeans 2' is back in the list of profiles and has the last index Cool, thank you very much for detailed steps, I can reproduce it now, I will try to fix it. I fixed an issue with Annotations that prevented duplicated profile to be deleted. http://hg.netbeans.org/jet-main/rev/eed26a5bbaf7 However, there is still bug with synchronization. Since pressing apply (or ok button) is deleting profile, loading all profiles into combobox is sometimes faster than deleting profile. It's now always deleted, but user needs press OK, or apply twice. I will look at the solution. I am CCing Fanis, since he rewrite a code around isChanged and applyChanges in FontsAndColors panels, I made some changes, but it is not enough. At least now you can delete profile with OK button. Integrated into 'main-silver', will be available in build *201508060002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/eed26a5bbaf7 User: Milutin Kristofic <mkristofic@netbeans.org> Log: #254065 - Cannot delete duplicated 'Fonts & Colors' profile *** Bug 245174 has been marked as a duplicate of this bug. *** Product Version: NetBeans IDE Dev (Build 201508290002) Java: 1.8.0_60-ea; Java HotSpot(TM) 64-Bit Server VM 25.60-b23 Runtime: Java(TM) SE Runtime Environment 1.8.0_60-ea-b25 System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb) User directory: C:\Users\cendrowiczm\AppData\Roaming\NetBeans\dev Cache directory: C:\Users\cendrowiczm\AppData\Local\NetBeans\Cache\dev I can confirm that: - there are 50% of chances (it will be removed or not :)) that the duplicated profile will be removed from the list once it is deleted and OD are confirmed by Apply - the duplicated profile does not exist in the list of profiles once it was deleted and entire OD has been reopened |