Class ProgressViewer
java.lang.Object
org.eclipse.jface.viewers.Viewer
org.eclipse.jface.viewers.ContentViewer
org.eclipse.jface.viewers.StructuredViewer
com._1c.g5.v8.activitytracking.ui.internal.progress.ProgressViewer
- All Implemented Interfaces:
IInputProvider
,IInputSelectionProvider
,IPostSelectionProvider
,ISelectionProvider
The progress viewer.
Note: borrowed from org.eclipse.ui.internal.progress.DetailedProgressViewer
Note: borrowed from org.eclipse.ui.internal.progress.DetailedProgressViewer
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jface.viewers.StructuredViewer
StructuredViewer.ColorAndFontCollector, StructuredViewer.ColorAndFontCollectorWithProviders
-
Field Summary
Fields inherited from class org.eclipse.jface.viewers.Viewer
WIDGET_DATA_KEY
-
Constructor Summary
ConstructorsConstructorDescriptionProgressViewer
(org.eclipse.swt.widgets.Composite parent, int style) Create a new instance of the receiver with a control that is a child of parent with style style. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the specifiedelements
to the viewer.protected org.eclipse.swt.widgets.Widget
doFindInputItem
(Object element) protected org.eclipse.swt.widgets.Widget
doFindItem
(Object element) protected void
doUpdateItem
(org.eclipse.swt.widgets.Widget item, Object element, boolean fullMap) org.eclipse.swt.widgets.Control
protected void
inputChanged
(Object input, Object oldInput) protected void
internalRefresh
(Object element) void
Removes the specifiedelements
to the viewer.void
protected void
selectNext
(ProgressItem item) Select the next item in the receiver.protected void
selectPrevious
(ProgressItem item) Select the previous item in the receiver.void
setFocus()
Set focus on the current selection.protected void
setSelectionToWidget
(List l, boolean reveal) Methods inherited from class org.eclipse.jface.viewers.StructuredViewer
addDoubleClickListener, addDragSupport, addDropSupport, addFilter, addOpenListener, addPostSelectionChangedListener, assertContentProviderType, assertElementsNotNull, associate, buildLabel, disassociate, equals, filter, findItem, findItems, fireDoubleClick, fireOpen, firePostSelectionChanged, getColorAndFontCollector, getComparator, getComparer, getFilteredChildren, getFilters, getItem, getRawChildren, getRoot, getSelection, getSortedChildren, getSorter, getStructuredSelection, handleDispose, handleDoubleSelect, handleInvalidSelection, handleLabelProviderChanged, handleOpen, handlePostSelect, handleSelect, hasFilters, hookControl, internalRefresh, internalUpdate, mapElement, needsRefilter, preservingSelection, refresh, refresh, refresh, refresh, refreshItem, removeDoubleClickListener, removeFilter, removeOpenListener, removePostSelectionChangedListener, resetFilters, setComparator, setComparer, setContentProvider, setFilters, setInput, setLabelProvider, setSelection, setSelectionToWidget, setSorter, setUseHashlookup, testFindItem, testFindItems, unmapAllElements, unmapElement, unmapElement, update, update, updateItem, updateSelection, usingElementMap
Methods inherited from class org.eclipse.jface.viewers.ContentViewer
getContentProvider, getInput, getLabelProvider, labelProviderChanged
Methods inherited from class org.eclipse.jface.viewers.Viewer
addHelpListener, addSelectionChangedListener, fireHelpRequested, fireSelectionChanged, getData, handleHelpRequest, removeHelpListener, removeSelectionChangedListener, scrollDown, scrollUp, setData, setSelection
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.jface.viewers.ISelectionProvider
addSelectionChangedListener, removeSelectionChangedListener, setSelection
-
Constructor Details
-
ProgressViewer
public ProgressViewer(org.eclipse.swt.widgets.Composite parent, int style) Create a new instance of the receiver with a control that is a child of parent with style style.- Parameters:
parent
- the parent composite, cannot benull
.style
- the style
-
-
Method Details
-
add
Adds the specifiedelements
to the viewer.- Parameters:
elements
- the elements to add, cannot benull
.
-
remove
Removes the specifiedelements
to the viewer.- Parameters:
elements
- the elements to remove, cannot benull
.
-
getControl
public org.eclipse.swt.widgets.Control getControl()- Specified by:
getControl
in classViewer
-
setFocus
public void setFocus()Set focus on the current selection. -
reveal
- Specified by:
reveal
in classStructuredViewer
-
selectPrevious
Select the previous item in the receiver.- Parameters:
item
- the item, cannot benull
.
-
selectNext
Select the next item in the receiver.- Parameters:
item
- the item, cannot benull
.
-
doFindInputItem
- Specified by:
doFindInputItem
in classStructuredViewer
-
doFindItem
- Specified by:
doFindItem
in classStructuredViewer
-
doUpdateItem
- Specified by:
doUpdateItem
in classStructuredViewer
-
getSelectionFromWidget
- Specified by:
getSelectionFromWidget
in classStructuredViewer
-
inputChanged
- Overrides:
inputChanged
in classViewer
-
internalRefresh
- Specified by:
internalRefresh
in classStructuredViewer
-
setSelectionToWidget
- Specified by:
setSelectionToWidget
in classStructuredViewer
-