changePathsViewer.addSelectionChangedListener(new ISelectionChangedListener() { public void selectionChanged(SelectionChangedEvent event) { selection = changePathsViewer.getSelection(); } });
    public void createAffectedPathsViewer(int layout) {      for( int i = 0; i < toggleAffectedPathsLayoutActions.length; i++) {        ToggleAffectedPathsLayoutAction action = toggleAffectedPathsLayoutActions[i];        action.setChecked(layout==action.getLayout());      }            if(innerSashForm!=null) {        innerSashForm.dispose();      }      if(changePathsViewer!=null) {        changePathsViewer.getControl().dispose();      }            innerSashForm = new SashForm(sashForm, SWT.HORIZONTAL);      switch(layout) {        case ISVNUIConstants.LAYOUT_COMPRESSED:          changePathsViewer = new ChangePathsTreeViewer(innerSashForm);          changePathsViewer.setContentProvider(new ChangePathsTreeContentProvider(this));          break;        default:          changePathsViewer = new ChangePathsTableProvider(innerSashForm);          changePathsViewer.setContentProvider(new ChangePathsTableContentProvider(this));          break;      }            changePathsViewer.getControl().addListener(SWT.DefaultSelection, new Listener() {            public void handleEvent(Event e) {                getOpenChangedPathAction().run();            }        });            textViewer = createText(innerSashForm);      setViewerVisibility();      innerSashForm.layout();      sashForm.layout();            updatePanels(tableHistoryViewer.getSelection());    }