Skip to content

Comments

Remove code duplication in GridData2 #964#1381

Draft
ptziegler wants to merge 1 commit intoeclipse-windowbuilder:masterfrom
ptziegler:issue964
Draft

Remove code duplication in GridData2 #964#1381
ptziegler wants to merge 1 commit intoeclipse-windowbuilder:masterfrom
ptziegler:issue964

Conversation

@ptziegler
Copy link
Contributor

Rather than copying the fields of the SWT GridData, the GridData2 now stores a reference of the original GridData object.

Using a copy of the original class brings the risk of incompatibilities, if the class is ever updated on the SWT side. So its only purpose should be to cache the bounds for the grid cell and delegate all other task to the base class.

Contributes to
#964

Rather than copying the fields of the SWT `GridData`, the `GridData2`
now stores a reference of the original `GridData` object.

Using a copy of the original class brings the risk of incompatibilities,
if the class is ever updated on the SWT side. So its only purpose should
be to cache the bounds for the grid cell and delegate all other task to
the base class.

Contributes to
eclipse-windowbuilder#964
@ptziegler ptziegler marked this pull request as draft February 13, 2026 05:52
@github-actions
Copy link

Test Results

 2 720 files  ±0   2 720 suites  ±0   12h 55m 22s ⏱️ + 10m 56s
 7 018 tests ±0   6 756 ✅  - 204   58 💤 ±0  0 ❌ ±0  204 🔥 +204 
28 072 runs  ±0  27 014 ✅  - 816  242 💤 ±0  0 ❌ ±0  816 🔥 +816 

For more details on these errors, see this check.

Results for commit c3ff1b4. ± Comparison against base commit 11c9cfb.

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.

1 participant