Bug 279658 [UI] ResourceUtility has unused methods
In org.eclipse.e4.ui.workbench.swt.ResourceUtility, the methods - getGradientColors() - getColor() and field - private ColorRegistry COLOR_REGISTRY all appear unused. In a config with CSS, it handles gradients, colors, and the color registry (although the latter is worth discussing), so I'm not sure the purpose of the methods here.
tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/application/UIStartupTest.java
.get(IServiceConstants.ACTIVE_PART_ID));
				context.set(IServiceConstants.ACTIVE_PART, parts[1]);
				while (display.readAndDispatch())
					;
				assertEquals(parts[1].getElementId(), context
						.get(IServiceConstants.ACTIVE_PART_ID));
			}
		});
	}
	public void test_SwitchActivePartsInContext2() throws Exception {
		final IEclipseContext context = getActiveChildContext(application);
		final MPart[] parts = getTwoParts();
		Realm.runWithDefault(SWTObservables.getRealm(display), new Runnable() {
			public void run() {
				EPartService service = (EPartService) context
						.get(EPartService.class.getName());
				service.activate(parts[0]);
				while (display.readAndDispatch())
					;
				assertEquals(parts[0].getElementId(), context
						.get(IServiceConstants.ACTIVE_PART_ID));
				service.activate(parts[1]);
				while (display.readAndDispatch())
					;
				assertEquals(parts[1].getElementId(), context
						.get(IServiceConstants.ACTIVE_PART_ID));
			}
		});
	}