Question

I am new to Eclipse 4. I am trying to refactor existing application and move some domain related UI and code to fragment plugin. In existing application I have used lifeCycleURI property of plugin to link java class to register some services at IEclipseContext. But fragment tag at plugin.xml do not recognizes 'property name="lifeCycleURI"'.

How can I register life cycle manager code for fragment plugin?

Était-ce utile?

La solution

Only the org.eclipse.core.runtime.products extension supports the life cycle class, you can't define life cycles for plugins or fragments.

If you want to define OSGi services you can do that with a Component Definition. OSGi services are automatically added to the IEclipseContext.

You can also use a ContextFunction to lazily add to the context. see here

You can also add to the context using an Addon

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top