Commit e78984c
committed
Implement filter-based table viewer via the new FilterTable class
This moves the viewer-agnostic components of the FilterTree widget into
an AbstractFilteredStructuredViewer base class, which is then used to
implement the FilterTable widget.
The base class has been moved to org.eclipse.jface.text together with
the TextMatcher, to allow it to be used together with both an E3 and E4
workbench.
For the AbstractFilteredStructuredViewer, following methods have been
added to support this abstraction:
- isShowFilterControls()
- isQuickSelectionMode()
- init(int)
For the FilteredTree, following fields and methods have been marked as
for-removal:
- filterToolBar
- clearButtonControl
- updateToolbar(boolean)
To avoid code-duplication as a result of bug 260664, the code of
clearText() has been moved to a separate doClearText() method, so that
the same code can be invoked inside the listeners, without having to
worry about clearText() being overridden by subclasses.
This change adds a dependency from org.eclipse.jface.text to
org.eclipse.ui.workbench.1 parent 3eaaeb6 commit e78984c
File tree
20 files changed
+1678
-4
lines changed- bundles
- org.eclipse.e4.ui.dialogs/src/org/eclipse/e4/ui/dialogs/filteredtree
- org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/dialogs
- examples/org.eclipse.ui.examples.filter
- .settings
- META-INF
- src/org/eclipse/ui/examples/filter
- tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests
- filteredtree
20 files changed
+1678
-4
lines changedLines changed: 478 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
277 | | - | |
278 | | - | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
279 | 281 | | |
280 | | - | |
281 | | - | |
| 282 | + | |
282 | 283 | | |
283 | 284 | | |
284 | 285 | | |
| |||
0 commit comments