문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top