PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() {
public void run() {
//打开或者刷新视图
try {
IWorkbenchPage activePage = PlatformUI.getWorkbench()
.getActiveWorkbenchWindow().getActivePage();
PropertySheet part = (PropertySheet)activePage.showView(IPageLayout.ID_PROP_SHEET);
FormPropertySheetPage page = (FormPropertySheetPage) part.getCurrentPage();
page.refresh();
} catch (Exception e) {
e.printStackTrace();
}
}
});
public void run() {
//打开或者刷新视图
try {
IWorkbenchPage activePage = PlatformUI.getWorkbench()
.getActiveWorkbenchWindow().getActivePage();
PropertySheet part = (PropertySheet)activePage.showView(IPageLayout.ID_PROP_SHEET);
FormPropertySheetPage page = (FormPropertySheetPage) part.getCurrentPage();
page.refresh();
} catch (Exception e) {
e.printStackTrace();
}
}
});