Need Help, can only show the composite when resize the view manually
posted 7 years ago
I am writing an eclipse plugin that extend the View extension point to create my own view. I can' t use JFace for my view so i have to work directly with SWt using the parent Composite given in parameter of the CreatePartControl method invoked when the user click on Windows -> Show View -> My Own View.
When the user clicks to instanciate the view, this one apperas empty, data needed to draw the view will come later. So, i decided in the createPartControl method to store a reference of the parent and work later on this parent. But the problem is the following: when, later out of the CreatePartControl method, i add some other composite (canvas for example) to this parent nothing happened and my new composite are not displayed!!! Why ?? and what sould i do to display them ?? After small tests i notice that if i resized the parent composite then my new composites are displayed!!! But i didn't find a method that allows my composite to be displayed.