101112131415161718
public class ClearHandler extends AbstractHandler { @Override public Object execute(ExecutionEvent event) throws ExecutionException { Events eventsView = (Events) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().findView(Events.VIEW_ID); eventsView.clearTable(); return null; }