Control ctrl= fViewer.getControl(); if (ctrl != null && !ctrl.isDisposed()){  if (fViewer.testFindItem(element) == null) fViewer.add(parent, element);
if (fViewer.testFindItem(element) == null) fViewer.add(parent, element);
	protected void postAdd(final Object parent, final Object element) {		postRunnable(new Runnable() {			public void run() {				Control ctrl= fViewer.getControl();				if (ctrl != null && !ctrl.isDisposed()){					// TODO workaround for 39754 New projects being added to the TreeViewer twice					if (fViewer.testFindItem(element) == null) 						fViewer.add(parent, element);				}			}		});	}