0

Is there is any way to redraw or refresh the MPart so that following method will call again.

@PostConstruct
    public void createPartControl(Composite parent) {
 }

Because I want to show one SWT control in this view on some conditions.

Sumit Singh
  • 15,743
  • 6
  • 59
  • 89
  • Probably better to change the visibility of the control rather than try and recreate the whole part. – greg-449 Oct 01 '13 at 09:02
  • @greg-449 what it means can you please elaborate. – Sumit Singh Oct 01 '13 at 09:06
  • I mean create the control in `createPartControl` but call `setVisible(false)` and exclude it from the layout (`GridData.exclude = true`). When you want to show the control `setVisible(true)`, remove the exclude and call `layout(true)` on the composite. – greg-449 Oct 01 '13 at 09:23

0 Answers0