Hi All,
How could I change the title on an View that extends AbstractView?
By title I mean the text that is on the top left of the internal frame (if I use RCP56)
It is defined in messages.properties under:
viewName.caption=My Title!
Thanks
Benoit
Hi All,
How could I change the title on an View that extends AbstractView?
By title I mean the text that is on the top left of the internal frame (if I use RCP56)
It is defined in messages.properties under:
viewName.caption=My Title!
Thanks
Benoit
viewName.label = My Title
should do it.
Jonny
Originally Posted by benoitx
Hi Jonny
Thanks for your reply. My fault for asking an imprecise question.
I meant to change the title programmatically. My application is launching an internal frame and the title depends on the content.
1/ How to change programmatically
2/ when in the lifecycle should I change it? in createControl?
Thanks
Benoit
Actually, I wondered why you were asking such a simple question.
I just override getDisplayName, getCaption, getDescription in my concrete view subclass to have a title and tooltips that depend on content. Is there a reason you can't do that?
Originally Posted by benoitx
Well, I'd start with ignorance and confusion... I was looking for a setTitle etc and then was happily digging my grave in PageComponentContext etc... Thanks for putting me back on track!Originally Posted by jwray
Benoit.
By the way why title string has to be changed through override of "get..." and not through a "set" operation ?
Feedback welcome![]()