private void createViewer(Composite parent) {
// Add perspective list.
list = new TableViewer(parent, SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL
| SWT.BORDER);
list.getTable().setFont(parent.getFont());
list.setLabelProvider(new PerspectiveLabelProvider());
list.setContentProvider(new PerspContentProvider());
list.addFilter(activityViewerFilter);
list.setComparator(new ViewerComparator());
list.setInput(perspReg);
list.addSelectionChangedListener(this);