View title is empty when using Peaberry GuiceExtensionFactory
Opened this issue · 2 comments
mcculls commented
Originally reported on Google Code with 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?
Reported by aforsell1971
on 2011-03-29 22:19:50
mcculls commented
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.
Reported by mcculls
on 2011-04-03 21:46:32
mcculls commented
Reported by mcculls
on 2012-08-04 21:41:05
- Labels added: Peaberry-Extension