e4中的org.eclipse.e4.core.contexts.IContextFunction

(轉載自:http://414149609.iteye.com/blog/1646251html 這個實驗頗有意思,簡單有效地證實了EclipseContext每次取一個值以前都會執行compute方法。實際e4 RCP開發過程當中,經常結合Declarative Service來充分發揮e4的Dependency Injection的做用。簡單來講就是當一個類的構造函數有@inject的標籤,e
相關文章
相關標籤/搜索