Class UISearchHelper
- java.lang.Object
-
- com._1c.g5.v8.dt.common.ui.controls.search.UISearchHelper
-
public final class UISearchHelper extends Object
Special helper for searching elements in UI controls- Restriction:
- This class is not intended to be sub-classed by clients.
- Restriction:
- This class is not intended to be instantiated by clients.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
expandTreeViewerStepByStep(org.eclipse.swt.widgets.Display actualDisplay, org.eclipse.ui.navigator.CommonViewer viewer, int delayBeforeExpandAll, int stepDelaying, ISelection selection)
Expand all items inCommonViewer
step by step and selected element fromselection
after expanding
First step:CommonViewer
will be expand to 2 levels.static org.eclipse.core.runtime.IProgressMonitor
getActiveSearchMonitor(String searchPattern)
Gets actualIProgressMonitor
by the search pattern fromSearchBox
-
-
-
Method Detail
-
expandTreeViewerStepByStep
public static void expandTreeViewerStepByStep(org.eclipse.swt.widgets.Display actualDisplay, org.eclipse.ui.navigator.CommonViewer viewer, int delayBeforeExpandAll, int stepDelaying, ISelection selection)
Expand all items inCommonViewer
step by step and selected element fromselection
after expanding
- First step:
CommonViewer
will be expand to 2 levels. - Second step: wait
delayBeforeExpandAll
before tree will be expand all - Next step: each branch corresponding to the top items of
CommonViewer
(see methodsTree.getTopItem()
) will be expand all with delay equals tostepDelaying
- Final step: try to select item corresponding to the
selection
- Parameters:
actualDisplay
- actualDisplay
, can't benull
viewer
- actualCommonViewer
for expanding all operation, can't benull
delayBeforeExpandAll
- time in milliseconds before tree will be expand allstepDelaying
- time in milliseconds before next branch from top tree item will be expand allselection
- selectionISelection
for choose inviewer
after expanding, can benull
if there is no selection
- First step:
-
getActiveSearchMonitor
public static org.eclipse.core.runtime.IProgressMonitor getActiveSearchMonitor(String searchPattern)
Gets actualIProgressMonitor
by the search pattern fromSearchBox
- Parameters:
searchPattern
- search pattern fromSearchBox
, can't benull
- Returns:
- actual search
IProgressMonitor
ornull
if there is no searching operation with pattern equalssearchPattern
-
-