Index: NewHibernateMappingPreviewPage.java =================================================================== --- NewHibernateMappingPreviewPage.java (revision 28039) +++ NewHibernateMappingPreviewPage.java (working copy) @@ -211,13 +211,12 @@ if (fileSrc.isDirectory()) { return false; } - final IPath basePath = proj.getResource().getParent().getLocation(); final IPath projPath = proj.getResource().getLocation(); final IPath place2Gen = getRootPlace2Gen().append(proj.getElementName()); IPath filePathFrom = new Path(fileSrc.getPath()); IPath filePathTo = filePathFrom.makeRelativeTo(place2Gen); + final IPath filePathTo_Show = (new Path(proj.getElementName())).append(filePathTo); filePathTo = projPath.append(filePathTo); - final IPath filePathTo_Show = filePathTo.makeRelativeTo(basePath); File fileOrig = filePathTo.toFile(); if (fileOrig.exists()) { final IPath filePathTo_Proj = filePathTo.makeRelativeTo(projPath);