IWorkspaceRunnable runnable= new IWorkspaceRunnable() { public void run(IProgressMonitor monitor) throws CoreException { JavaRuntime.initializeJREVariables(monitor); } }; try { getWorkspace().run(runnable, null); } catch (CoreException e) { log(e); }
	public void startup() {		IAdapterManager manager= Platform.getAdapterManager();		manager.registerAdapters(new JavaElementAdapterFactory(), IJavaElement.class);		manager.registerAdapters(new MarkerAdapterFactory(), IMarker.class);		manager.registerAdapters(new EditorInputAdapterFactory(), IEditorInput.class);		manager.registerAdapters(new ResourceAdapterFactory(), IResource.class);				IWorkspaceRunnable runnable= new IWorkspaceRunnable() {			public void run(IProgressMonitor monitor) throws CoreException {				JavaRuntime.initializeJREVariables(monitor);			}		};		try {			getWorkspace().run(runnable, null);		} catch (CoreException e) {			log(e);		}		try {			JavaDocLocations.loadJavadocLocations();		} catch (CoreException e) {			log(e);		}			}