Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to refresh a customview which extends a org.eclipse.ui.part.ViewPart;
How to refresh a customview which extends a org.eclipse.ui.part.ViewPart; [message #460134] Thu, 14 December 2006 10:12
Eclipse UserFriend
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
Previous Topic:Programmatically obtain configuration details
Next Topic:Update Site
Goto Forum:
  


Current Time: Thu Mar 27 03:41:27 EDT 2025

Powered by FUDForum. Page generated in 0.45515 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top