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 154767 - Editor/Formatting Options not refreshed after enabling plugins
Summary: Editor/Formatting Options not refreshed after enabling plugins
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-05 14:53 UTC by Petr Dvorak
Modified: 2009-03-26 16:59 UTC (History)
3 users (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 Petr Dvorak 2008-12-05 14:53:04 UTC
Product Version: NetBeans IDE Dev (Build 081204)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b13
System: Linux version 2.6.27-10-generic running on i386; UTF-8; en_US (nb)

1. Start fresh "ergonomic IDE"
2. Invoke Tools>Options>Editor>Formatting
3. Close Options dialog, click OK
4. Create a new Java Appication
5. Invoke Tools>Options
-> Editor>Formatting is selected, but:
   1. Language combobox contains "text/x-java" instead of "Java"
   2. Tabs are missing: Task List, Mark Occurrences, Hints
-> Everything works after IDE restart
Comment 1 Petr Dvorak 2008-12-05 15:04:15 UTC
The same after installing C++, etc.
Comment 2 Jaroslav Tulach 2008-12-17 08:44:51 UTC
This problem seems to be present in standard Java SE IDE:

0a. download Java SE IDE (the smallest Java one)
0b. go to Tools/Plugins/Installed tab
0c. right click Java and choose "Deactivate Category Java"
1. let the IDE restart

2. Invoke Tools>Options>Editor>Formatting
3. Close Options dialog, click OK
4. Go to  Tools/Plugins/Installed, rightclick Java and choose "Activate Category Java"
5. Invoke Tools>Options
-> Editor>Formatting is selected, but:
   1. Language combobox contains "text/x-java" instead of "Java"
-> Everything works after IDE restart
Comment 3 Vitezslav Stejskal 2008-12-17 11:40:18 UTC
I guess the editor panels do not listen on changes in SystemFileSystem in order to pick up newly installed languages. It
has never really been needed. I suspect that a lot of editor settings / mimelookup related code won't work for the same
reason.
Comment 4 Quality Engineering 2009-02-11 08:05:10 UTC
Integrated into 'main-golden', will be available in build *200902110201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/70878efd8318
User: Vita Stejskal <vstejskal@netbeans.org>
Log: #154767: partial fix; better listening on the System FileSystem changes
Comment 5 Vitezslav Stejskal 2009-02-11 17:06:25 UTC
I think I fixed most the problems. However, the steps as they are mentioned here may still lead to strange results. The
reason is that 'Deactivate Category Java' is not an inverse operation to 'Activating Java' by the ergonomics logic. I
had to use -J-Dplugin.manager.modules.only=true in order to be able to really turn off modules in the "Java" category.
I'm not sure if that is a problem or designed behavior of Plugin Manager, but I believe that editor options and settings
are now ergonomics friendly :-).

http://hg.netbeans.org/jet-main/rev/24c7775923c6
http://hg.netbeans.org/jet-main/rev/e6a170239b3a
http://hg.netbeans.org/jet-main/rev/672b4c515cef
Comment 6 Quality Engineering 2009-02-12 08:21:44 UTC
Integrated into 'main-golden', will be available in build *200902120201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/24c7775923c6
User: Vita Stejskal <vstejskal@netbeans.org>
Log: #154767: better behavior when turning on/off modules (ie. ergonomics fixes)
Comment 7 Petr Dvorak 2009-03-26 16:59:49 UTC
V.