fgTypeCacherThread= new TypeCacher(fgSizeHint, INITIAL_DELAY, null); fgTypeCacherThread.start(); fgDeltaListener= new TypeCacheDeltaListener(); JavaCore.addElementChangedListener(fgDeltaListener);
if (DEBUG) System.err.println("initialize"); Display d= Display.getDefault(); if (d != null) d.asyncExec( new Runnable() { public void run() { if (DEBUG) System.err.println("starting thread"); fgTypeCacherThread= new TypeCacher(fgSizeHint, INITIAL_DELAY, null); fgTypeCacherThread.start(); fgDeltaListener= new TypeCacheDeltaListener(); JavaCore.addElementChangedListener(fgDeltaListener); } } );
	public static void initialize() {		fgTypeCacherThread= new TypeCacher(fgSizeHint, INITIAL_DELAY, null);		fgTypeCacherThread.start();		fgDeltaListener= new TypeCacheDeltaListener();		JavaCore.addElementChangedListener(fgDeltaListener);	}