posted 16 years ago
SWT!
getSite().getPage().addSelectionListener(new ISelectionListener() {
public void selectionChanged(final IWorkbenchPart workbenchPart,
final ISelection selection) {
IStructuredSelection structuredSelection = (IStructuredSelection) selection;
final TreeEntity treeEntity = (TreeEntity) structuredSelection
.getFirstElement();
setPartName(treeEntity.getName());
text.setText(treeEntity.getName());
try {
getSite().getPage().showView(CorporationView.ID,treeEntity.getName(),IWorkbenchPage.VIEW_CREATE);
//this,I will refresh another viewpart .How to do?