IWorkbenchPage page = window.getActivePage();
ILogViewEditor editor =
(ILogViewEditor) page.getActiveEditor().getAdapter(ILogViewEditor.class);
if (editor != null) {
ILogResource log = editor.getLogResource();
IRestrictable rest = editor.getRestrictable();
List<ARestriction<?>> list = rest.getRestrictions();
// Add restriction provided by Quick Filter
boolean added = addNewRestriction(list, event, log);
FilterSettingsDialog dlg = new FilterSettingsDialog(
Display.getDefault().getActiveShell(), log, list, added);
if (dlg.open() == Window.OK) {
// Update input and refresh editor view
rest.setRestrictions(dlg.getRestrictions());
editor.goToPage(1);
// Request re-evaluation
IEvaluationService service =
(IEvaluationService) window.getService(IEvaluationService.class);