Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Johnston2011-01-27 17:01:43 +0000
committerJeff Johnston2011-01-27 17:01:43 +0000
commit303a2871e1ac24762f273f5415dfb97744856cd2 (patch)
tree87fcab90b1c8df0a5c978d970cd7631c155e342f /changelog/org.eclipse.linuxtools.changelog.core/src
parentda5ffc2d657019f6e5a2fd77377521ecef8d0da4 (diff)
downloadorg.eclipse.linuxtools-303a2871e1ac24762f273f5415dfb97744856cd2.tar.gz
org.eclipse.linuxtools-303a2871e1ac24762f273f5415dfb97744856cd2.tar.xz
org.eclipse.linuxtools-303a2871e1ac24762f273f5415dfb97744856cd2.zip
2011-01-27 Jeff Johnston <jjohnstn@redhat.com>
Bug #332621 * src/org/eclipse/linuxtools/changelog/core/editors/GNUHyperlinkDetector.java (getDocumentLocation): Use the location of the ChangeLog directly rather than calculating from the workspace-root.
Diffstat (limited to 'changelog/org.eclipse.linuxtools.changelog.core/src')
-rw-r--r--changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/changelog/core/editors/GNUHyperlinkDetector.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/changelog/core/editors/GNUHyperlinkDetector.java b/changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/changelog/core/editors/GNUHyperlinkDetector.java
index c9bea21e5b..24c78ba64e 100644
--- a/changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/changelog/core/editors/GNUHyperlinkDetector.java
+++ b/changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/changelog/core/editors/GNUHyperlinkDetector.java
@@ -183,8 +183,7 @@ public class GNUHyperlinkDetector extends AbstractHyperlinkDetector {
IFileEditorInput test = (IFileEditorInput) cc;
IFile loc = test.getFile();
- IPath docLoc = new Path(WorkspaceRoot
- + loc.getFullPath().toOSString());
+ IPath docLoc = loc.getLocation();
docLoc = docLoc.removeLastSegments(1);
return docLoc;

Back to the top