Eclipse RCP | How to get current View from Widget side?
I am developing an Widget for Ecl开发者_StackOverflow社区ipse RCP. I made a Shell, which I want to combine with Events (Resize, Move etc.) in a View, in which I have a Composite. How from the Composite point of View I can get it's View, in which this Composite is placed?
You can always call getParent() to get the parent control. If the composite you are interested in is not the direct parent, consider passing the control you want into the constructor, and keeping track of it that way.
精彩评论