I tried your plugin using ExamDiff Pro. When I diff two files ExamDiff cannot find the files because the path starts in the workspace directory. My project is not in the workspace directory. Is there any way to work around this?
Hmmm. The plugin was written with Eclipse Projects in mind. I'll have to look at it and see if anything can be done.
so here i have an solution for this problem:
change line 81 in file LaunchExternalDiffTool.
//old: IPath path = ResourcesPlugin.getWorkspace().getRoot().getRawLocation();
//new: by DG
IProject project = ((IResource) myList.get(0)).getProject();
IPath path = project.getRawLocation().addTrailingSeparator();
path1 = path1.removeFirstSegments(1);
path2 = path2.removeFirstSegments(1);
So you have an reference to the local project dir. Independent form the workspace.
Just wondering if this was implemented as I am having the same issue.
I placed compiled plugin in the tracker for thoose who don't have time to fidle with rebuilding plugin.
It is exact daniel_gue's patch .
Thank you daniel.
Is there any chance of this fix being implemented in the main branch of the tool? I recently fixed this myself and only noticed it had already had a fix when I came back to the site to raise a bug.
Incidentally I fixed the issue as follows which I think is a slight improvement on the above fix as it's simpler.
< IPath path1 = firstResource.getFullPath();
< IPath path2 = secondResource.getFullPath();
> IPath path1 = firstResource.getLocation();
> IPath path2 = secondResource.getLocation();
< IPath path = ResourcesPlugin.getWorkspace().getRoot().getRawLocation();
< // MessageDialog.openInformation(
< // shell,
< // "External diff Tool Plug-in",
< // "Path: " + path);
< String firstArg = path.toString() + path1.toString();
< String secondArg = path.toString() + path2.toString();
> String firstArg = path1.toString();
> String secondArg = path2.toString();
Thanks https://sourceforge.net/users/adrianissott/ I followed your steps and created a download in google projects http://code.google.com/p/external-diff-tool-eclipse-plugin-patch/.