Community
Participate
Working Groups
We currently don't support to restart an application from the lifecycle hook. We should allow to return: * Boolean: false indicating shutdown * Integer: 0/null indicating proceeding, any other value as the return code returned from the start-method
I have just added Bug 445451 which adresses the same need with a different approach.
I am thinking about trying this approach, as it has the benefit of introducing a lot less API than Bug 445451, but I am missing the possibility to also support a "restart with a cleared persisted state", as you would need it after an update. What do you think about returning an enum like this: LifecycleRV { CONTINUE, SHUTDOWN, RESTART, RESTART_CLEAR_STATE }
Implementation proposal: https://git.eclipse.org/r/34102
*** Bug 445451 has been marked as a duplicate of this bug. ***
pushed with http://git.eclipse.org/c/efxclipse/org.eclipse.efxclipse.git/commit/?id=8b48d270d13408e11d91558b4af726df6f122e04 as noted on the review showing the useage at the wiki would be a great addition.
Please review wiki: https://wiki.eclipse.org/Efxclipse/Runtime/Recipes#Extended_.40PostContextCreate_Features
Very good - we should also document the Boolean return type - IIRC this is also an enhancement against the SWT version which does NOT support this!
Ok. I extended the wiki to cover this.