[Tests] Do not dispose SWT system colors

This is probably the reason for the following (on first sight unrelated)
test failure:
java.lang.IllegalArgumentException: Argument not valid
	at org.eclipse.swt.SWT.error(SWT.java:4704)
	at org.eclipse.swt.SWT.error(SWT.java:4638)
	at org.eclipse.swt.SWT.error(SWT.java:4609)
	at org.eclipse.swt.graphics.GC.setForeground(GC.java:3266)
	at org.eclipse.swt.custom.CTabFolderRenderer.drawSelected(CTabFolderRenderer.java:1487)
	at org.eclipse.swt.custom.CTabFolderRenderer.draw(CTabFolderRenderer.java:637)
	at org.eclipse.swt.custom.CTabFolder.onPaint(CTabFolder.java:2085)
	at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(Native
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4446)
	at org.eclipse.swt.tests.junit.Test_org_eclipse_swt_custom_CTabFolder.processEvents(Test_org_eclipse_swt_custom_CTabFolder.java:295)
	at org.eclipse.swt.tests.junit.Test_org_eclipse_swt_custom_CTabFolder.test_chevronAppearanceChanged(Test_org_eclipse_swt_custom_CTabFolder.java:261)

Change-Id: Ie7b8cea8ce273627cca5bac09aead58affdfdc89
Signed-off-by: Paul Pazderski <paul-eclipse@ppazderski.de>
1 file changed
tree: 5cf9ca11f5762c9c3ad29f977ed8f6c897fe8130
  1. bundles/
  2. container/
  3. examples/
  4. features/
  5. local-build/
  6. tests/
  7. .gitignore
  10. NOTICE
  11. pom.xml
  12. README.md

Contributing to SWT

Thanks for your interest in this project.

Developer resources:

See the following description for how to contribute a feature or a bug fix to SWT.

Information regarding source code management, builds, coding standards, and more and be found under the following link.

Contributor License Agreement:

Before your contribution can be accepted by the project, you need to create and electronically sign the Eclipse Foundation Contributor License Agreement (CLA).


Contact the project developers via the project's “dev” list.

Search for bugs:

This project uses Bugzilla to track ongoing development and issues.

Create a new bug:

Be sure to search for existing bugs before you create another one. Remember that contributions are always welcome!