SearchNewsDialog
ISearchCondition
TODO Unfortunately this Dialog copies a lot of existing code from NewsTableControl
146147148149150151152153154
} /* Open Dialog and Search */ if (conditions.size() >= 1 && !fBrowser.getControl().isDisposed()) { boolean matchAllConditions = AUTHOR_HANDLER_ID.equals(id); SearchNewsDialog dialog = new SearchNewsDialog(fBrowser.getControl().getShell(), conditions, matchAllConditions, true); dialog.open(); } }
430431432433434435436437438439440441442
final boolean useLowScoreFilter = TITLE_HANDLER_ID.equals(id); /* See Bug 747 - run asynced */ delayInUI(new Runnable() { public void run() { SearchNewsDialog dialog = new SearchNewsDialog(fBrowser.getControl().getShell(), conditions, true, true); dialog.setUseLowScoreFilter(useLowScoreFilter); dialog.open(); } }); } }
8182838485868788
for (IEntity entity : entitiesTmp) { if (entity instanceof IFolder) ModelUtils.normalize((IFolder) entity, entities); } SearchNewsDialog dialog = new SearchNewsDialog(fWindow.getShell(), entities); dialog.open(); }
4748495051525354
/* * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction) */ public void run(IAction action) { SearchNewsDialog dialog = new SearchNewsDialog(fWindow.getShell()); dialog.open(); }
151152153154155156157158159
7576777879808182
List<IFolderChild> entities = ModelUtils.getFoldersBookMarksBins(selection); /* Normalize */ CoreUtils.normalize(entities); SearchNewsDialog dialog = new SearchNewsDialog(fWindow.getShell(), entities); dialog.open(); }
726727728729730731732733734735736737
if (conditions.size() >= 1 && !fBrowser.getControl().isDisposed()) { /* See Bug 747 - run asynced */ delayInUI(new Runnable() { public void run() { SearchNewsDialog dialog = new SearchNewsDialog(fBrowser.getControl().getShell(), conditions, true, true); dialog.setUseLowScoreFilter(useLowScoreFilter); dialog.open(); } }); } }
4344454647484950515253
* @see org.eclipse.core.commands.AbstractHandler#execute(org.eclipse.core.commands.ExecutionEvent) */ public Object execute(ExecutionEvent event) { Shell shell = OwlUI.getActiveShell(); if (shell != null) { SearchNewsDialog dialog = new SearchNewsDialog(shell); dialog.open(); } return null; //As per JavaDoc }
7778798081828384
6869707172737475