Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 342024

Summary: RFE: check for potential devhelp updates at startup
Product: [Tools] Linux Tools Reporter: Andrew Overholt <overholt>
Component: LibhoverAssignee: Jeff Johnston <jjohnstn>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: 2.0   
Hardware: PC   
OS: Linux   
Whiteboard: stalebug

Description Andrew Overholt CLA 2011-04-06 09:48:48 EDT
I don't know if this is possible, but it would be nice if devhelp content was dynamically loaded so that underlying filesystem changes (additions, removals) were honoured as they happened.
Comment 1 Jeff Johnston CLA 2011-04-06 12:18:48 EDT
(In reply to comment #0)
> I don't know if this is possible, but it would be nice if devhelp content was
> dynamically loaded so that underlying filesystem changes (additions, removals)
> were honoured as they happened.

This isn't feasible.  The timing of a hover event is too small to be parsing the data at runtime (there can be a lot of it).  A hash table is created and the content (in this case html) is massaged to make it quick to convert to the CDT format.

One could sit in a thread and wait to see if the contents change to keep the data up to date automatically, but I do not feel this is a good use of a full-time thread since the updating won't occur often enough to justify it.

At present, the data is in one hash table all of devhelp so the entire parse would need to be run.  If the other RFE to add granularity were done, then the parse could be sped up by only performing on components that have changed.

It would be feasible to run the parse on start-up each time since it can be run in the background and the current contents are still available while the parse occurs.  If the user chooses to update the contents while Eclipse is open, the manual parse can be initiated.
Comment 2 Andrew Overholt CLA 2011-06-09 16:26:24 EDT
Modifying summary to reflect request to do it on startup.
Comment 3 Eclipse Genie CLA 2014-06-03 18:43:10 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 4 Jeff Johnston CLA 2014-06-03 19:02:44 EDT
Devhelp contents are parsed on start-up of the plug-in.