Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » How to refresh/ redraw MPart(How to refresh/ redraw MPart)
How to refresh/ redraw MPart [message #1122124] Tue, 01 October 2013 04:54 Go to next message
sumit singh is currently offline sumit singh
Messages: 91
Registered: October 2012
Location: Bangalore
Member

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.

[Updated on: Tue, 01 October 2013 04:54]

Report message to a moderator

Re: How to refresh/ redraw MPart [message #1122137 is a reply to message #1122124] Tue, 01 October 2013 05:01 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 4651
Registered: July 2009
Senior Member
Open and close ;-) - but more seriously no, you need to e.g. send an
event to the view so that it disposes its current content and recreates it.

Tom

On 01.10.13 10:54, sumit singh wrote:
> Is there is any way to redraw 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.
Re: How to refresh/ redraw MPart [message #1122141 is a reply to message #1122137] Tue, 01 October 2013 05:09 Go to previous message
sumit singh is currently offline sumit singh
Messages: 91
Registered: October 2012
Location: Bangalore
Member

Hi Thomas,

Can you please give me one example. Means how to send an
event to the view so that it disposes its current content and recreates it.
Previous Topic:com.ibm.icu => the small version please.
Next Topic:Add Dialogs to Application Model
Goto Forum:
  


Current Time: Mon Oct 07 15:24:28 EDT 2013

Powered by FUDForum. Page generated in 0.01886 seconds