Skip to content

Remove stale items of a virtual table viewer without input - #4597

Open
akurtakov wants to merge 2 commits into
eclipse-platform:masterfrom
akurtakov:virtual-table-null-input
Open

akurtakov wants to merge 2 commits into
eclipse-platform:masterfrom
akurtakov:virtual-table-null-input

Conversation

@akurtakov

Copy link
Copy Markdown
Member

With a non-lazy content provider, refreshing a virtual table viewer whose input is null kept the item count and the cached elements of the previous input. A non-virtual table viewer removes all items in this case.

When the previous content provider was lazy, the cache only holds null entries. Any SWT.SetData sent for the stale items, e.g. while columns are created on Windows, then failed with a NullPointerException in StructuredViewer.associate(). With a previously cached non-lazy input, the stale elements were shown again.

Reset the cache and the item count when there is no input.

Assisted-by: Anthropic Claude Code (claude-opus-5-5)

akurtakov and others added 2 commits November 28, 2026 14:28
With a non-lazy content provider, refreshing a virtual table viewer
whose input is null kept the item count and the cached elements of the
previous input. A non-virtual table viewer removes all items in this
case.

When the previous content provider was lazy, the cache only holds null
entries. Any SWT.SetData sent for the stale items, e.g. while columns
are created on Windows, then failed with a NullPointerException in
StructuredViewer.associate(). With a previously cached non-lazy input,
the stale elements were shown again.

Reset the cache and the item count when there is no input.

Assisted-by: Anthropic Claude Code (claude-opus-5-5)
@eclipse-platform-bot

Copy link
Copy Markdown
Contributor

This pull request changes some projects for the first time in this development cycle.
Therefore the following files need a version increment:

bundles/org.eclipse.jface/META-INF/MANIFEST.MF

An additional commit containing all the necessary changes was pushed to the top of this PR's branch. To obtain these changes (for example if you want to push more changes) either fetch from your fork or apply the git patch.

Git patch
From 65d29942e07a2aa3f180e7928e1d9fd666009b2a Mon Sep 17 00:00:00 2001
From: Eclipse Platform Bot <platform-bot@eclipse.org>
Date: Sat, 28 Nov 2026 12:36:00 +0000
Subject: [PATCH] Version bump(s) for 4.43 stream


diff --git a/bundles/org.eclipse.jface/META-INF/MANIFEST.MF b/bundles/org.eclipse.jface/META-INF/MANIFEST.MF
index 298d4b34b9..4eb25fea6e 100644
--- a/bundles/org.eclipse.jface/META-INF/MANIFEST.MF
+++ b/bundles/org.eclipse.jface/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
 Bundle-ManifestVersion: 2
 Bundle-Name: %pluginName
 Bundle-SymbolicName: org.eclipse.jface;singleton:=true
-Bundle-Version: 3.41.0.qualifier
+Bundle-Version: 3.41.100.qualifier
 Bundle-Vendor: %providerName
 Bundle-Localization: plugin
 Export-Package: org.eclipse.jface,
-- 
2.56.1

Further information are available in Common Build Issues - Missing version increments.

@github-actions

Copy link
Copy Markdown
Contributor

Test Results

   867 files  ±0     867 suites  ±0   41m 9s ⏱️ - 23m 45s
 8 569 tests +2   8 329 ✅ +2  240 💤 ±0  0 ❌ ±0 
21 576 runs  +3  20 903 ✅ +3  673 💤 ±0  0 ❌ ±0 

Results for commit c5eb3f6. ± Comparison against base commit 297b071.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants