Java Code Examples for org.eclipse.jface.viewers.TableViewer#replace()
The following examples show how to use
org.eclipse.jface.viewers.TableViewer#replace() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PatListeContentProvider.java From elexis-3-core with Eclipse Public License 1.0 | 6 votes |
@Override public void updateElement(int index){ if (!bValid) { getElements(commonViewer); } TableViewer tv = (TableViewer) commonViewer.getViewerWidget(); if (pats.length > index) { tv.replace(pats[index], index); } else { Object elementAt = tv.getElementAt(index); if(elementAt != null) { tv.replace(StringConstants.DASH, index); } } }
Example 2
Source File: SegmentStoreContentProvider.java From tracecompass with Eclipse Public License 2.0 | 5 votes |
@Override public void updateElement(int index) { final TableViewer tableViewer = fTableViewer; SegmentStoreWithRange<?> store = fStore; if (tableViewer == null || store == null) { return; } tableViewer.replace(store.getElement(index), index); }
Example 3
Source File: LamiTableContentProvider.java From tracecompass with Eclipse Public License 2.0 | 5 votes |
@Override public void updateElement(int index) { final TableViewer tableViewer = fTableViewer; final List<LamiTableEntry> entries = fCurrentEntries; if ((tableViewer != null) && (entries.size() > index) && !fOngoingUpdate) { fOngoingUpdate = true; tableViewer.replace(entries.get(index), index); fOngoingUpdate = false; } }
Example 4
Source File: FlatDataLoader.java From elexis-3-core with Eclipse Public License 1.0 | 5 votes |
public void updateElement(int index){ if (filtered != null) { if (index >= 0 && index < filtered.size()) { Object o = filtered.get(index); if (o != null) { TableViewer tv = (TableViewer) cv.getViewerWidget(); tv.replace(filtered.get(index), index); } } } }
Example 5
Source File: LazyCommonViewerContentProvider.java From elexis-3-core with Eclipse Public License 1.0 | 5 votes |
@Override public void updateElement(int index){ if (loadedElements != null && loadedElements.length > 0) { Object[] copy = new Object[loadedElements.length]; System.arraycopy(loadedElements, 0, copy, 0, loadedElements.length); if (index >= 0 && index < copy.length) { Object o = copy[index]; if (o != null) { TableViewer tv = (TableViewer) commonViewer.getViewerWidget(); tv.replace(o, index); } } } }