• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Need Help, can only show the composite when resize the view manually

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

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.


If someone can help me .....


Thanks
 
reply
    Bookmark Topic Watch Topic
  • New Topic