Why is C'tor of UIElement protected? [message #335297] |
Tue, 31 March 2009 07:25  |
Eclipse User |
|
|
|
Hello,
I'm using a custom self written control (HyperlinkMenu). I successfully
pluged my control into the Eclipse IHandlerService, so enablement and
disablement of commands are getting tracked and displayed by the control
(Using a HyperlingMenuManager and a HyperlinkMenuContributionItem).
Currently I wand so participate from IElementUpdater and therefore use
UIElement since (I think) using it is the only way to get the
updateElement() of IElementUpdater events passed to my control.
Unfortunately the constructor of UIElement is protected. So without having
to use Java reflection it is impossible for me to use it (I think).
Is there any good reason why the Class is unusable from outside?
And does someone know a way how to take advantage from IElementUpdater
without using hacks like reflections?
If anybody is interested in HyperlinkMenu just reply and I'll post it.
Thanks,
Jan
|
|
|
|
Powered by
FUDForum. Page generated in 0.02205 seconds