Bug 63020 - [RCP] Features are parsed during Update UI startup
Summary: [RCP] Features are parsed during Update UI startup
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 RC1   Edit
Assignee: Andrew Eidsness CLA
QA Contact:
URL:
Whiteboard:
Keywords: performance
Depends on:
Blocks:
 
Reported: 2004-05-19 13:01 EDT by Dorian Birsan CLA
Modified: 2004-06-09 09:35 EDT (History)
3 users (show)

See Also:


Attachments
remove feature parsing during #preStartup (4.35 KB, patch)
2004-06-02 14:00 EDT, Andrew Eidsness CLA
no flags Details | Diff
changed line ending (4.25 KB, patch)
2004-06-02 14:09 EDT, Andrew Eidsness CLA
no flags Details | Diff
another attempt at proper line endings (4.25 KB, patch)
2004-06-02 14:15 EDT, Andrew Eidsness CLA
no flags Details | Diff
final attempt at nice line endings (same content) (4.25 KB, text/plain)
2004-06-02 14:16 EDT, Andrew Eidsness CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dorian Birsan CLA 2004-05-19 13:01:58 EDT
Is the code for reading feature info in IDEWorkbenchAdvisor.preStartup() 
needed during startup?
The code triggers parsing of each feature  about.* files.
Comment 1 Nick Edgar CLA 2004-05-19 13:15:05 EDT
Please consider for M9, to help reduce startup time.
Comment 2 Andrew Eidsness CLA 2004-05-19 13:46:30 EDT
The IDEWorkbenchAdvisor is loading the about info to read the welcome 
perspective id.  I heard a rumour welcome pages were going away, is this IDE 
code still needed?

Also, I think that our AboutInfo should use lazy initialization for each value 
(the current behaviour is to load all values in the #readFeatureInfo method).  I 
have a patch to make that change, but I don't think it will impact this 
particular case.  In order for the welcomePerspectiveId to be returned to the 
IDEWorkbenchAdvisor we need to get the product and then iterator through all 
bundleGroupProviders to find the proper one.  Then we need to get the property 
out of that bundleGroup.  I expect this will cause update to read all the .ini 
files.
Comment 3 Dorian Birsan CLA 2004-05-19 14:13:20 EDT
Iterating over the bundle groups and checking their id should not load the 
about.* files. Once you know which bundle group you need info for, then the 
corresponding files will be loaded.

I don't know much about the welcome page going away, it may be the new Intro 
work that is going on (and will have the same issues :-)
Comment 4 Nick Edgar CLA 2004-05-19 14:29:56 EDT
For the old welcome support, the IDE looks for newly installed features, opens
any new welcome pages, and switches to any corresponding welcome perspective(s).

With the new intro support, we can probably just remove this, but it's a
scenario that WSADIE once cared about.  Dejan, do you know how they want the new
intro support to work when laying down WSADIE on top of an existing WSAD?
Comment 5 Dejan Glozic CLA 2004-05-19 14:35:04 EDT
WSADIE will have its own intro. We provided support that will allow them to 
selectively reach into WSAD intro content and reference selected links and 
other content. Therefore WSADIE has the option of surfacing some WSAD links, 
pages etc. in their own intro but they don't have to. The idea of the new 
intro is that it should focus on the most important features of the top-most 
product, rather than being a mechanical list of 'Welcome to...'. Of course, 
there is always 'About' dialog with a list of features.
Comment 6 Nick Edgar CLA 2004-05-19 15:08:14 EDT
The about dialog doesn't require talking to Update Core.
So let's just pull the code from preStartup.
Comment 7 Andrew Eidsness CLA 2004-06-02 14:00:28 EDT
Created attachment 11483 [details]
remove feature parsing during #preStartup

This patch changes the #preStartup behaviour to avoid parsing features.  In RC1
the behaviour was to parse the features on startup to build a list of new
welcome perspective ids.  However, this list wouldn't be used unless the new
intro EP was not extended.  This patch changes the startup so that the list is
not built in that case either.

I've tested this on the base eclipse install (an intro extension exists) and
observed in the debugger that the feature parsing does not happen.  I also
modified the platform plugin.xml file to remove the intro extension an observed
the legacy behaviour (features parsed and welcome page opened on first run).
Comment 8 Andrew Eidsness CLA 2004-06-02 14:09:27 EDT
Created attachment 11486 [details]
changed line ending

Same content, but I've changed from PC to UNIX line ending to see if that fixes
the format when viewed in my browser.
Comment 9 Andrew Eidsness CLA 2004-06-02 14:15:09 EDT
Created attachment 11487 [details]
another attempt at proper line endings

Same content.

This time I'm using a .txt extension to try to fix the format.
Comment 10 Andrew Eidsness CLA 2004-06-02 14:16:20 EDT
Created attachment 11488 [details]
final attempt at nice line endings (same content)

This time I didn't click the "patch" box.
Comment 11 Andrew Eidsness CLA 2004-06-03 10:44:39 EDT
The patch has been reviewed by tod and submitted to HEAD.
Comment 12 Andrew Eidsness CLA 2004-06-09 09:35:08 EDT
I've verified that this fix is in the may 7 integration build.