Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 102866 | Differences between
and this patch

Collapse All | Expand All

(-)eclipseAdaptor/src/org/eclipse/core/runtime/adaptor/EclipseStarter.java (+16 lines)
Lines 454-459 Link Here
454
			}
454
			}
455
		};
455
		};
456
		context.registerService(Runnable.class.getName(), handler, properties);
456
		context.registerService(Runnable.class.getName(), handler, properties);
457
458
		// register the output stream to the launcher if it exists
459
		try {
460
			Method method = endSplashHandler.getClass().getMethod(
461
					"getOutputStream", new Class[0]); //$NON-NLS-1$
462
			Object outputStream = method
463
					.invoke(endSplashHandler, new Object[0]);
464
			if (outputStream instanceof OutputStream) {
465
				Dictionary osProperties = new Hashtable();
466
				osProperties.put("name", "splashstream"); //$NON-NLS-1$//$NON-NLS-2$
467
				context.registerService(OutputStream.class.getName(),
468
						outputStream, osProperties);
469
			}
470
		} catch (Exception ex) {
471
			// ignore
472
		} 
457
	}
473
	}
458
474
459
	private static URL searchForBundle(String name, String parent) throws MalformedURLException {
475
	private static URL searchForBundle(String name, String parent) throws MalformedURLException {

Return to bug 102866