/** * Nothing to see here. Returns the items for the given element. * * @param viewer * @param element * @return the Widgets corresponding to the element * * @noreference This method is not intended to be referenced by clients. */ protected static Widget[] getItems(StructuredViewer viewer, Object element) { return viewer.findItems(element); }
/** * Hook for testing. * @param element * @return Widget[] * @since 1.0 */ public Widget[] testFindItems(Object element) { return findItems(element); }
/** * Nothing to see here. Returns the items for the given element. * * @param viewer * @param element * @return the Widgets corresponding to the element * * @noreference This method is not intended to be referenced by clients. */ protected static Widget[] getItems(StructuredViewer viewer, Object element) { return viewer.findItems(element); }
/** * Hook for testing. * @param element * @return Widget[] * @since 3.2 */ public Widget[] testFindItems(Object element) { return findItems(element); }
/** * Nothing to see here. Returns the items for the given element. * * @param viewer * @param element * @return the Widgets corresponding to the element * * @noreference This method is not intended to be referenced by clients. */ protected static Widget[] getItems(StructuredViewer viewer, Object element) { return viewer.findItems(element); }
/** * Hook for testing. * @param element * @return Widget[] * @since 3.2 */ public Widget[] testFindItems(Object element) { return findItems(element); }
/** * Finds the widget which represents the given element. * <p> * The default implementation of this method tries first to find the widget * for the given element assuming that it is the viewer's input; this is * done by calling <code>doFindInputItem</code>. If it is not found * there, it is looked up in the internal element map provided that this * feature has been enabled. If the element map is disabled, the widget is * found via <code>doFindInputItem</code>. * </p> * * @param element * the element * @return the corresponding widget, or <code>null</code> if none */ protected final Widget findItem(Object element) { Widget[] result = findItems(element); return result.length == 0 ? null : result[0]; }
/** * Finds the widget which represents the given element. * <p> * The default implementation of this method tries first to find the widget * for the given element assuming that it is the viewer's input; this is * done by calling <code>doFindInputItem</code>. If it is not found * there, it is looked up in the internal element map provided that this * feature has been enabled. If the element map is disabled, the widget is * found via <code>doFindInputItem</code>. * </p> * * @param element * the element * @return the corresponding widget, or <code>null</code> if none */ protected final Widget findItem(Object element) { Widget[] result = findItems(element); return result.length == 0 ? null : result[0]; }
/** * Finds the widget which represents the given element. * <p> * The default implementation of this method tries first to find the widget * for the given element assuming that it is the viewer's input; this is * done by calling <code>doFindInputItem</code>. If it is not found * there, it is looked up in the internal element map provided that this * feature has been enabled. If the element map is disabled, the widget is * found via <code>doFindInputItem</code>. * </p> * * @param element * the element * @return the corresponding widget, or <code>null</code> if none */ protected final Widget findItem(Object element) { Widget[] result = findItems(element); return result.length == 0 ? null : result[0]; }
Widget[] items = findItems(element);
Widget[] items = findItems(element);
Widget[] items = findItems(element);