summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorViolaine Batthish2013-05-13 13:04:28 (EDT)
committerChris Recoskie2013-05-13 13:04:28 (EDT)
commita2edc4a5718b1ca2ec7478da4aee81db1b8d5d48 (patch)
tree60f1e309b42ae58b392571e07d40fcf1c053f765
parent4b1f9aa1108c2e345a563d64b294accfbecbbd8e (diff)
downloadorg.eclipse.ptp-a2edc4a5718b1ca2ec7478da4aee81db1b8d5d48.zip
org.eclipse.ptp-a2edc4a5718b1ca2ec7478da4aee81db1b8d5d48.tar.gz
org.eclipse.ptp-a2edc4a5718b1ca2ec7478da4aee81db1b8d5d48.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();