java为什么我的e4应用程序插件不能被调用
我在Eclipse4应用程序中定义了自己的插件。我对javax有一个包依赖性。注释(1.2.0)
import javax.annotation.PostConstruct;
import org.eclipse.e4.core.contexts.ContextInjectionFactory;
import org.eclipse.e4.core.contexts.IEclipseContext;
public class LoginServiceAddon {
@PostConstruct
public void init(IEclipseContext context) {
LoginService service = context.get(LoginService.class);
if (service == null) {
service = ContextInjectionFactory.make(LoginServiceImpl.class, context);
context.set(LoginService.class, service);
}
}
}
我可以在插件中设置断点,但即使调用了标准插件,也不会命中
这种行为的原因可能是什么
共 (0) 个答案