Open GoogleCodeExporter opened 9 years ago
Please, write 'tarlog-plugins' instead of 'Tarlog' next time :)
Unfortunately (or may be fortunately) I'm not using jazz source control, so I
won't
be able to validate, test and fix this Issue.
If you can contribute a fix, I'll be happy to apply it.
Original comment by tarlog
on 14 Dec 2009 at 12:01
The issue is with handling of authority URIs. Below change in
TreeSelectionAction.handleResource should fix the issue
protected void handleResource(IResource resource) {
URI locationURI = resource.getLocationURI();
if(locationURI.getAuthority()!=null)
{
try {
locationURI = new URI(locationURI.getQuery());
} catch (URISyntaxException e) {
//raise a NPE
int i = 100/0;
}
}
File file = new File(locationURI);
String absolutePath = file.getAbsolutePath();
doAction(absolutePath);
}
Not sure how can I contribute to trunk :( how I can become a contributing
member?
Original comment by rajanika...@gmail.com
on 18 Feb 2011 at 7:18
Hi... I tried what rajanika had but it didn't fix the issue.
My change is
protected void handleResource(IResource resource) {
IPath iFilePath = resource.getLocation();
File file = iFilePath.toFile();
String absolutePath = file.getAbsolutePath();
doAction(absolutePath);
}
This worked for me
Original comment by wingy3...@gmail.com
on 20 Mar 2012 at 6:42
Original issue reported on code.google.com by
hermans....@gmail.com
on 14 Dec 2009 at 11:32