diff options
author | Michael Valenta | 2002-06-25 20:09:56 +0000 |
---|---|---|
committer | Michael Valenta | 2002-06-25 20:09:56 +0000 |
commit | 77325bebb694270d5601796dc3d33b51299af4ae (patch) | |
tree | 7d2d5cadcb180f44f7ef37b0ce0c2a91cfe26990 | |
parent | e8bdf888917d50cf263795ed8ff885c341a3b2c0 (diff) | |
download | eclipse.platform.team-77325bebb694270d5601796dc3d33b51299af4ae.tar.gz eclipse.platform.team-77325bebb694270d5601796dc3d33b51299af4ae.tar.xz eclipse.platform.team-77325bebb694270d5601796dc3d33b51299af4ae.zip |
20799: Launching external editors from CVS Repositories page does not work
-rw-r--r-- | bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/OpenLogEntryAction.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/OpenLogEntryAction.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/OpenLogEntryAction.java index 67d0619ed..97691414e 100644 --- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/OpenLogEntryAction.java +++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/OpenLogEntryAction.java @@ -86,7 +86,15 @@ public class OpenLogEntryAction extends TeamAction { id = descriptor.getId(); } try { - page.openEditor(new RemoteFileEditorInput(file), id); + try { + page.openEditor(new RemoteFileEditorInput(file), id); + } catch (PartInitException e) { + if (id.equals("org.eclipse.ui.DefaultTextEditor")) { //$NON-NLS-1$ + throw e; + } else { + page.openEditor(new RemoteFileEditorInput(file), "org.eclipse.ui.DefaultTextEditor"); //$NON-NLS-1$ + } + } } catch (PartInitException e) { throw new InvocationTargetException(e); } |