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 177518 - Don't initialize CsmFileTaskFactoryManager on start
Summary: Don't initialize CsmFileTaskFactoryManager on start
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords: PERFORMANCE
: 164684 (view as bug list)
Depends on: 173002
Blocks:
  Show dependency tree
 
Reported: 2009-11-24 07:43 UTC by Jaroslav Tulach
Modified: 2011-06-07 06:34 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Patch which makes the test pass (11.77 KB, patch)
2009-11-24 07:44 UTC, Jaroslav Tulach
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2009-11-24 07:43:10 UTC
Move the initialization of CsmFileTaskFactoryManager and other classes to a later time, when CND functionality is really needed. Initializing it in ModuleInstall is premature and negatively influence performance of those who have CND pack enabled, but don't work on CND projects right now.
Comment 1 Jaroslav Tulach 2009-11-24 07:44:10 UTC
Created attachment 91608 [details]
Patch which makes the test pass

To learn more about whitelist tests see:
http://wiki.netbeans.org/FitnessViaWhiteAndBlackList
Comment 2 Vladimir Voskresensky 2009-11-24 08:28:09 UTC
*** Bug 164684 has been marked as a duplicate of this bug. ***
Comment 3 Vladimir Voskresensky 2009-11-24 08:29:30 UTC
There is no infrastructure in Editor to lazily attach EditorRegistry listeners => have to use module install()
Comment 4 Jaroslav Tulach 2009-11-25 00:25:09 UTC
Why not initialize the listener when your dataobject is created or editor kit is loaded? There cannot be any C/C++/Fortran document until your data objects and kits or projects are created, can it?
Comment 5 Jaroslav Tulach 2009-11-25 00:33:12 UTC
Tentatively suggesting 6.9 milestone.
Comment 6 Jaroslav Tulach 2009-11-25 02:01:15 UTC
Tracking few more classes in
http://hg.netbeans.org/ergonomics/rev/461c2d054c62
Comment 7 Vladimir Voskresensky 2009-11-25 02:33:49 UTC
Hi, Jaroslav,
VV0:Thanks for chaning to 6.9, forgot that Next have another meaning...

VV1: (In reply to comment #4)
> Why not initialize the listener when your dataobject is created or editor kit
> is loaded? There cannot be any C/C++/Fortran document until your data objects
> and kits or projects are created, can it?
I don't like such approach, sorry. DataLoaders are placed in one module, editor staff is in other and CsmFileTaskFactoryManager are in the third place.
Will not introduce interdependency, sorry.
+ your approach doesn't work if someone likes to write external plug-in => it is workaround, not a solution.
so,
VV1: I'd prefer to have support in editor see issue 
http://www.netbeans.org/issues/show_bug.cgi?id=173002
Comment 8 Vladimir Voskresensky 2010-03-15 23:39:06 UTC
replaced installer by fake higlighting layer factory (looks like there is no interest to fix issue #173002)

http://hg.netbeans.org/cnd-main?cmd=changeset;node=5ecab55fc765
Comment 9 Quality Engineering 2011-06-07 06:34:58 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/
User: 
Log: