path = (activeProject.getProject().getLocation()
xDocPath = (activeProject.getProject().getLocation()
    public void selectionChanged(IWorkbenchPart part, ISelection selection) {        if (selection instanceof IStructuredSelection) {            Object first = ((IStructuredSelection) selection).getFirstElement();            IResource resource = (IResource) first;            if (resource instanceof IProject) {                activeProject = (IProject) resource;                projectName = activeProject.getProject().getName();                path = (activeProject.getProject().getLocation()                        .toString()                        + java.io.File.separator                        + Utilities.getPathToXDocs()                        + java.io.File.separator + getFilename());                document = DOMUtilities.loadDOM(path);                treeViewer.setInput(document);            }        }    }