Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 335486 - [discovery] Do not prompt for restart when the entry is only metadata
Summary: [discovery] Do not prompt for restart when the entry is only metadata
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: m2e (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Matthew Piggott CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-26 13:41 EST by Pascal Rapicault CLA
Modified: 2021-04-19 13:24 EDT (History)
0 users

See Also:


Attachments
Modify Restart policy (16.97 KB, patch)
2011-02-02 09:43 EST, Matthew Piggott CLA
no flags Details | Diff
Updated patch (16.78 KB, patch)
2011-02-02 10:19 EST, Matthew Piggott CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pascal Rapicault CLA 2011-01-26 13:41:30 EST
When we are installing an extension that only provides metadata, then we should not prompt for restart and refresh the projects. This will make for a better user experience.
Comment 1 Matthew Piggott CLA 2011-02-02 09:43:30 EST
Created attachment 188146 [details]
Modify Restart policy

In the attached patch I created a subclass of the InstallOperation which allows us to set the restart policy for the ProvisioningJobs that are returned by it.  Unfortunately because of bug 336015 I also needed to subclass the PreselectedIUsInstallWizard.

After speaking with Pascal we decided to keep the solution simple and use a tag on items in the catalog to mark that they do not require a restart.  If all items to be installed are of this type then the changes are applied, otherwise the restart policy is Yes/Not Now. (Apply being unavailable)
Comment 2 Matthew Piggott CLA 2011-02-02 10:19:43 EST
Created attachment 188152 [details]
Updated patch
Comment 3 Matthew Piggott CLA 2011-02-04 10:28:43 EST
Fixed
Comment 4 Denis Roy CLA 2021-04-19 13:24:33 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/