Skip to content

Migrate 5 OldSchoolEffect examples to GraphicsExample#3199

Open
vogella wants to merge 1 commit intoeclipse-platform:masterfrom
vogella:migrate-5-oldschool-effects
Open

Migrate 5 OldSchoolEffect examples to GraphicsExample#3199
vogella wants to merge 1 commit intoeclipse-platform:masterfrom
vogella:migrate-5-oldschool-effects

Conversation

@vogella
Copy link
Copy Markdown
Contributor

@vogella vogella commented Apr 7, 2026

Summary

Migrates 5 pure algorithmic effects from SWT-OldSchoolEffect to the SWT GraphicsExample framework:

Effect Source Tab Class
Burning Sea burningsea/BurningSea.java BurningSeaTab
Copper Bars copper/Coppers.java CopperBarsTab
Fire fire/Fire.java FireTab
Moiré moire/Moire.java MoireTab
Raster Bars rasterbars/RasterBars.java RasterBarsTab

Migration Checklist

  • No Color disposal (modern SWT)
  • Use simple new Color(r, g, b) constructor
  • Dispose Images in dispose() and before recreation
  • Dispose GC after use
  • No compiler errors or warnings (build succeeds)
  • $NON-NLS-1$ markers on resource string keys
  • Proper EPL-2.0 copyright header with original author credit
  • Category = "Misc"
  • Localized strings in examples_graphics.properties
  • Inner classes for helpers where needed

Build Verification

mvn clean verify -Dnative=gtk.linux.x86_64 -DskipTests

✅ BUILD SUCCESS

Contributes to #3189

Migrate the following effects from SWT-OldSchoolEffect to
AnimatedGraphicsTab implementations in the GraphicsExample:

- BurningSea → BurningSeaTab
- Coppers → CopperBarsTab
- Fire → FireTab
- Moire → MoireTab
- RasterBars → RasterBarsTab

Each effect follows the established migration pattern:
- Extends AnimatedGraphicsTab with category 'Misc'
- Proper Image disposal in dispose() and before recreation
- No Color disposal (modern SWT)
- Localized strings in examples_graphics.properties
- $NON-NLS-1$ markers on all resource string keys
- EPL-2.0 header with original author credits

Contributes to eclipse-platform#3189

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@vogella vogella force-pushed the migrate-5-oldschool-effects branch from fa5dcf4 to ba45223 Compare April 7, 2026 06:41
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 7, 2026

Test Results

  170 files  + 3    170 suites  +3   25m 16s ⏱️ - 1m 30s
4 679 tests + 1  4 658 ✅ + 2   21 💤 ±0  0 ❌  - 1 
6 592 runs  +37  6 437 ✅ +36  155 💤 +2  0 ❌  - 1 

Results for commit ba45223. ± Comparison against base commit 9e86574.

@vogella vogella marked this pull request as ready for review April 7, 2026 09:42
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