fLocationViewer = new TableViewer(parent, SWT.NONE);
fLocationViewer= new LocationViewer(parent);
    private void createLocationViewer(Composite parent) {        fLocationViewer = new TableViewer(parent, SWT.NONE);        fLocationViewer.setContentProvider(new ArrayContentProvider());        fLocationViewer.setLabelProvider(new LocationLabelProvider());        fLocationViewer.setInput(new ArrayList());        fLocationViewer.getControl().addKeyListener(createKeyListener());        JavaUIHelp.setHelp(fLocationViewer, IJavaHelpContextIds.CALL_HIERARCHY_VIEW);        fOpenLocationAction = new OpenLocationAction(getSite());        fLocationViewer.addOpenListener(new IOpenListener() {                public void open(OpenEvent event) {                    fOpenLocationAction.run();                }            });        //        fListViewer.addDoubleClickListener(this);        MenuManager menuMgr = new MenuManager(); //$NON-NLS-1$        menuMgr.setRemoveAllWhenShown(true);        menuMgr.addMenuListener(new IMenuListener() {                /* (non-Javadoc)                 * @see org.eclipse.jface.action.IMenuListener#menuAboutToShow(org.eclipse.jface.action.IMenuManager)                 */                public void menuAboutToShow(IMenuManager manager) {                    fillContextMenu(manager);                }            });        fLocationContextMenu = menuMgr.createContextMenu(fLocationViewer.getControl());        fLocationViewer.getControl().setMenu(fLocationContextMenu);        // Register viewer with site. This must be done before making the actions.        getSite().registerContextMenu(menuMgr, fLocationViewer);    }