Life cycle hook is not called (anymore!) [message #1612920] |
Thu, 12 February 2015 09:32 |
|
Dear experts,
I am trying to configure something as simple as a life-cycle hook.
I am running a feature-based product which requires a feature including a fragment application: that's the layout.
I indeed managed to get the application to run the life-cycle hook after registering the correspondent URI in the plugin.xml lifeCycleURI runtime property.
This hook was in a E4LifeCycle java file within the main project package (in case this is an important detail, which should not I guess).
Then.. I decided to refactor all of this by moving the hook to a new Manager file in a foo.lifecycle package, because I might need a whole package in the future for these setup/teardown tasks.
After this, the hook is not called anymore, and I can't get it to work.
I clearly updated the plugin.xml property to point to the correct bundleclass, I cleaned all builds, I cleaned the run/debug configurations, I dropped/re-created the run/debug configurations, I restarted Eclipse, I restarted Eclipse with -clean option, I dropped/re-added feature and plugin dependencies, I prayed to God before launching, I moved the hook back to the original position and re-updated re-clean re-started everything but the hook is not called, I promised Allah I would have joined the caliphate. Hook is not called!
I am new to Eclipse RCP development, I might be missing something: any help?
I can ensure you the property name and value in the plugin configuration are correct.
thanks for helping,
-Piero
[Updated on: Thu, 12 February 2015 09:33] Report message to a moderator
|
|
|
Re: Life cycle hook is not called (anymore!) [message #1613315 is a reply to message #1612920] |
Thu, 12 February 2015 15:19 |
Eclipse User |
|
|
|
My guess: you're not exporting the package from your bundle manifest.
Put a breakpoint in E4Application#createE4Workbench() around this code:
String lifeCycleURI = getArgValue(IWorkbench.LIFE_CYCLE_URI_ARG, applicationContext, false);
if (lifeCycleURI != null) {
lcManager = factory.create(lifeCycleURI, appContext);
and step through it. Use The Source, Luke!
Brian.
|
|
|
|
Powered by
FUDForum. Page generated in 0.02123 seconds