@Override public Object execute(ExecutionEvent event) throws ExecutionException { IWorkbenchWindow activeWorkbenchWindow = HandlerUtil.getActiveWorkbenchWindow(event); IWorkbenchPage activePage = activeWorkbenchWindow.getActivePage(); if (activePage != null) { IViewPart view = activePage.findView(OverviewView.ID); if (view instanceof OverviewView) { OverviewView overviewView = (OverviewView) view; overviewView.refreshOverviewView(); } } return null; }
public void updateTableData() { overviewView.setTableData(quizModel.getQuestionList()); }