summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorViolaine Batthish2013-05-13 13:04:28 (EDT)
committer Chris Recoskie2013-05-13 13:13:29 (EDT)
commitcf6b528c330afa076c52052ce7a3af2846b05094 (patch)
treece55cf32dd0a76bcf25ab6ab0388d3e82c72fc79
parentd710c6b4ab8a2e577c57493d4053086f9d58186a (diff)
downloadorg.eclipse.ptp-cf6b528c330afa076c52052ce7a3af2846b05094.zip
org.eclipse.ptp-cf6b528c330afa076c52052ce7a3af2846b05094.tar.gz
org.eclipse.ptp-cf6b528c330afa076c52052ce7a3af2846b05094.tar.bz2
Bug 407350 - Opening a file that has been deleted in the Remote Type
Hierarchy view generates an error Updated patch from Violaine.
-rwxr-xr-xrdt/org.eclipse.ptp.rdt.ui/src/org/eclipse/ptp/internal/rdt/ui/callhierarchy/RemoteCHViewPart.java2
-rwxr-xr-xrdt/org.eclipse.ptp.rdt.ui/src/org/eclipse/ptp/internal/rdt/ui/typehierarchy/RemoteTHViewPart.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/rdt/org.eclipse.ptp.rdt.ui/src/org/eclipse/ptp/internal/rdt/ui/callhierarchy/RemoteCHViewPart.java b/rdt/org.eclipse.ptp.rdt.ui/src/org/eclipse/ptp/internal/rdt/ui/callhierarchy/RemoteCHViewPart.java
index 27b9066..f509ff1 100755
--- a/rdt/org.eclipse.ptp.rdt.ui/src/org/eclipse/ptp/internal/rdt/ui/callhierarchy/RemoteCHViewPart.java
+++ b/rdt/org.eclipse.ptp.rdt.ui/src/org/eclipse/ptp/internal/rdt/ui/callhierarchy/RemoteCHViewPart.java
@@ -631,7 +631,7 @@ public class RemoteCHViewPart extends ViewPart {
CUIPlugin.log(e);
}
}
- IEditorPart editor = EditorUtility.openInEditor(input);
+ IEditorPart editor = EditorUtility.openInEditor(elem.getLocationURI(), cproject);
if(editor instanceof ITextEditor && elem instanceof ISourceReference) {
ISourceReference sr = (ISourceReference) elem;
int offset = sr.getSourceRange().getIdStartPos();
diff --git a/rdt/org.eclipse.ptp.rdt.ui/src/org/eclipse/ptp/internal/rdt/ui/typehierarchy/RemoteTHViewPart.java b/rdt/org.eclipse.ptp.rdt.ui/src/org/eclipse/ptp/internal/rdt/ui/typehierarchy/RemoteTHViewPart.java
index e494354..98e6b85 100755
--- a/rdt/org.eclipse.ptp.rdt.ui/src/org/eclipse/ptp/internal/rdt/ui/typehierarchy/RemoteTHViewPart.java
+++ b/rdt/org.eclipse.ptp.rdt.ui/src/org/eclipse/ptp/internal/rdt/ui/typehierarchy/RemoteTHViewPart.java
@@ -878,7 +878,7 @@ public class RemoteTHViewPart extends ViewPart implements ITHModelPresenter {
CUIPlugin.log(e);
}
}
- IEditorPart editor = EditorUtility.openInEditor(input);
+ IEditorPart editor = EditorUtility.openInEditor(elem.getLocationURI(), cproject);
if (editor instanceof ITextEditor && elem instanceof ISourceReference) {
ISourceReference sr = (ISourceReference) elem;
int offset = sr.getSourceRange().getIdStartPos();