try { editingScriptStarted(); setSelection(reference, !isActivePart()); } finally { editingScriptEnded(); }
setSelection(reference, !isActivePart());
	protected void doSelectionChanged(SelectionChangedEvent event) {						ISourceReference reference= null;				ISelection selection= event.getSelection();		Iterator iter= ((IStructuredSelection) selection).iterator();		while (iter.hasNext()) {			Object o= iter.next();			if (o instanceof ISourceReference) {				reference= (ISourceReference) o;				break;			}		}		if (!isActivePart() && JavaPlugin.getActivePage() != null)			JavaPlugin.getActivePage().bringToTop(this);					try {			editingScriptStarted();			setSelection(reference, !isActivePart());		} finally {			editingScriptEnded();		}	}