0
我正在運行execute方法,但是我在下面的代碼中給出了一些logError錯誤。請幫忙!PDE(java中的插件開發)
public Object execute(ExecutionEvent event) throws ExecutionException {
//get the active window
IWorkbenchWindow window=HandlerUtil.getActiveWorkbenchWindowChecked(event);
if(window==null)
return null;
//get the active page
IWorkbenchPage page= window.getActivePage();
if(page==null)
return null;
//open and activate the Favorite view
try{
page.showView(ViewPart.ID);
}
catch(PartInitException e){
FavoritesLog.logError("Failed to open the favorites view", e);
}
return null;
}
請編輯您的問題,以包括你得到的例外。 – ShiDoiSi 2011-09-08 13:41:22