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

Bug 335486

Summary: [discovery] Do not prompt for restart when the entry is only metadata
Product: z_Archived Reporter: Pascal Rapicault <pascal>
Component: m2eAssignee: Matthew Piggott <matthew>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
Modify Restart policy
none
Updated patch none

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/