How to refresh a customview which extends a org.eclipse.ui.part.ViewPart; [message #460134] |
Thu, 14 December 2006 10:12 |
Eclipse User |
|
|
|
hi all,
can any one please help me how to refresh a view. dynamically ..
i have created an RCP application with 2 views one on left hand side and another on right side. the left view consists of a tree viewer.. and right view contains a form which displays the attibutes( with certain text boxes and label controls ) of the child element of the tree selected. my problem is i could display the attributes in the right hand side view but i need to refresh the view before i display the new set of attributes for any other newly selected node...
i have tried the following code to refresh the view but for all in vain :-(
private void draw(){
toolkit = new FormToolkit(parent.getDisplay());
form = toolkit.createScrolledForm(parent);
TableWrapLayout layout = new TableWrapLayout();
form.getBody().setLayout(layout);
}
public void refreshView(){
// first dispose the form
form.dispose();
toolkit.dispose();
// it will create form in the draw function
draw();
}
many thanx in advance.
krishna
|
|
|
Powered by
FUDForum. Page generated in 0.45515 seconds