if (PreferenceConstants.getPreferenceStore().getBoolean(PreferenceConstants.EDITOR_SYNC_OUTLINE_ON_CURSOR_MOVE)) { Shell shell= getSite().getShell(); if (shell != null && !shell.isDisposed()) { shell.getDisplay().asyncExec(new Runnable() { public void run() { synchronizeOutlinePageSelection(); } }); }
Shell shell= getSite().getShell(); if (shell != null && !shell.isDisposed()) { shell.getDisplay().asyncExec(new Runnable() { public void run() { selectionChanged(); } });
	public void reconciled(CompilationUnit ast, boolean cancelled, boolean forced) {		// Always notify AST provider		JavaPlugin.getDefault().getASTProvider().reconciled(ast, getInputJavaElement());				// Notify listeners		synchronized (fReconcilingListeners) {			Object[] listeners = fReconcilingListeners.getListeners();			for (int i = 0, length= listeners.length; i < length; ++i)				((IJavaReconcilingListener)listeners[i]).reconciled(ast, cancelled, forced);		}				// Update Java Outline page selection		if (!forced && !cancelled) {			if (PreferenceConstants.getPreferenceStore().getBoolean(PreferenceConstants.EDITOR_SYNC_OUTLINE_ON_CURSOR_MOVE)) {				Shell shell= getSite().getShell();				if (shell != null && !shell.isDisposed()) {					shell.getDisplay().asyncExec(new Runnable() {						public void run() {							synchronizeOutlinePageSelection();						}					});				}			}		}	}