repositoryDragSourceListener = new RepositoryDragSourceListener(); treeViewer.addDragSupport( DND.DROP_LINK | DND.DROP_DEFAULT, new Transfer[] { RemoteResourceTransfer.getInstance()}, repositoryDragSourceListener);  treeViewer.addSelectionChangedListener( new ISelectionChangedListener() { public void selectionChanged( SelectionChangedEvent event) { repositoryDragSourceListener.updateSelection( (IStructuredSelection) event.getSelection()); } });
	protected void initializeListeners() {        getSite().getWorkbenchWindow().getSelectionService().addPostSelectionListener(this);		treeViewer.addSelectionChangedListener(removeRootAction);                // when F5 is pressed, refresh this view        treeViewer.getControl().addKeyListener(new KeyAdapter() {            public void keyPressed(KeyEvent event) {                if (event.keyCode == SWT.F5) {/*                    IStructuredSelection selection = (IStructuredSelection)getViewer().getSelection();                     if (selection.size() == 1)                     {                         getViewer().refresh(selection.getFirstElement());                          }        */                                       refreshAction.run();                }            }        });                treeViewer.addDoubleClickListener(new IDoubleClickListener() {            public void doubleClick(DoubleClickEvent e) {                handleDoubleClick(e);            }        });        	}