New issue 56 by aforsell...@gmail.com: View title is empty when using
Peaberry GuiceExtensionFactory
http://code.google.com/p/peaberry/issues/detail?id=56
What steps will reproduce the problem?
1. Use the GuiceExtensionFactory for an existing View to be able to inject
OSGi service
2. Run application
3. The title of the view is empty, even though the "name" is specified in
the view extension, like this:
<extension
point="org.eclipse.ui.views">
<view
class="org.ops4j.peaberry.eclipse.GuiceExtensionFactory:productview.ProductView"
id="productview.ProductView"
name="Product View">
</view>
</extension>
A workaround seems to be to use setPartName("Product View") in
ProductView.createPartControl.
Why does this happen?
GuiceExtensionFactory delegates to the Eclipse
ExtensionRegistry "createExecutableExtension" method, which should pass on
the configuration to the instance. Does this only happen when you prefix
the factory class? If so then a simple testcase would be helpful.