Class WorkbenchViewerSetup
EXPERIMENTAL. This class or interface has been added as part of a work in progress. There is no guarantee that this API will work or that it will remain the same. Please do not use this API without consulting with the API development team.
- Since:
- 3.130
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
EXPERIMENTAL.static void
setupViewer
(ColumnViewer viewer) EXPERIMENTAL.
-
Constructor Details
-
WorkbenchViewerSetup
public WorkbenchViewerSetup()
-
-
Method Details
-
getItemsLimit
public static int getItemsLimit()EXPERIMENTAL. This class or interface has been added as part of a work in progress. There is no guarantee that this API will work or that it will remain the same. Please do not use this API without consulting with the API development team.
Returns the current viewer limit set in theGeneral
preference page. -
setupViewer
EXPERIMENTAL. This class or interface has been added as part of a work in progress. There is no guarantee that this API will work or that it will remain the same. Please do not use this API without consulting with the API development team.
Configure aColumnViewer
to show limited items per parent before showing an ExpandableNode. Limit used is read from preferenceIWorkbenchPreferenceConstants.LARGE_VIEW_LIMIT
. Client must call this beforeViewer.setInput(Object)
User can change the viewer limit on preference page any time in the lifetime of the viewer. This setup takes care of refreshing the viewer with the new limit set.
- Parameters:
viewer
-ColumnViewer
which has to configured for showing limited items.
-