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 67319 - Editor settings updated when non Java file is opened
Summary: Editor settings updated when non Java file is opened
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Settings (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords: PERFORMANCE
Depends on: 90403
Blocks:
  Show dependency tree
 
Reported: 2005-10-21 17:27 UTC by _ rkubacki
Modified: 2008-06-24 19:13 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
typical stack trace (4.67 KB, text/plain)
2005-10-21 17:30 UTC, _ rkubacki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ rkubacki 2005-10-21 17:27:32 UTC
build 200510201800, JDK 1.5.0

When JSP/HTML file is opened the org.netbeans.editor.Settings class fires >100
settings changes to its listeners. Note that there can be many listeners. I see
15 of them in my IDE - ToolTipUI, EditorUI, NbEditorUI, status bar, side bars,
NbEditorDocument instances, Caret, Completion, Kit, GluphGutter.

The same happens for XML when I click on the node.

This slows down init of various kits mostly done when opening various editor for
the first time.
Comment 1 _ rkubacki 2005-10-21 17:30:24 UTC
Created attachment 26231 [details]
typical stack trace
Comment 2 Miloslav Metelka 2005-11-09 16:01:52 UTC
I assume that this happens just before the first opening of the file of the
particular mime-type, right?
Anyway we will attempt to resolve this into 5.0.
Comment 3 _ rkubacki 2005-11-10 20:44:27 UTC
Yes, it affects first opening.
Comment 4 Jan Jancura 2006-01-03 09:02:13 UTC
Too late to fix in nb5.0.
Comment 5 Jiri Prox 2008-04-11 00:45:16 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 6 Vitezslav Stejskal 2008-06-24 19:13:55 UTC
The old settings infrastructure (Settings, BaseOptions, initializers, etc) has been deprecated and moved to
editor.deprecated.pre61settings module. The editor infrastructure as well as almost all modules in the base IDE are no
longer using it. There should be no or only a few SettingsListener instances registered.