Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2002-06-24 17:03:46 -0400
committerMichael Valenta2002-06-24 17:03:46 -0400
commitdd21c5d38acc75fbc90d64d60f32bba6348cde4c (patch)
tree8daf32770ea3856f914570c28bcfbf4bafaed11e
parentfc536518545b3f453a80308c6793651b55bece59 (diff)
downloadeclipse.platform.team-dd21c5d38acc75fbc90d64d60f32bba6348cde4c.tar.gz
eclipse.platform.team-dd21c5d38acc75fbc90d64d60f32bba6348cde4c.tar.xz
eclipse.platform.team-dd21c5d38acc75fbc90d64d60f32bba6348cde4c.zip
Committing fix for bug 20799 to branch pending approvalbug20799
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/OpenRemoteFileAction.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/OpenRemoteFileAction.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/OpenRemoteFileAction.java
index 87ce63ce1..915e523eb 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/OpenRemoteFileAction.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/OpenRemoteFileAction.java
@@ -95,7 +95,15 @@ public class OpenRemoteFileAction extends TeamAction {
id = descriptor.getId();
}
try {
- page.openEditor(new RemoteFileEditorInput(files[i]), id);
+ try {
+ page.openEditor(new RemoteFileEditorInput(files[i]), id);
+ } catch (PartInitException e) {
+ if (id.equals("org.eclipse.ui.DefaultTextEditor")) { //$NON-NLS-1$
+ throw e;
+ } else {
+ page.openEditor(new RemoteFileEditorInput(files[i]), "org.eclipse.ui.DefaultTextEditor"); //$NON-NLS-1$
+ }
+ }
} catch (PartInitException e) {
throw new InvocationTargetException(e);
}

Back to the top