Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarsten Thoms2018-03-02 05:11:30 +0000
committerKarsten Thoms2018-03-02 05:11:30 +0000
commit40637379e4dccde9a1736e8103ba143ae8a8be4d (patch)
tree852e8225a2724e0edf754b26f4fd0afaa6061d8c
parent2df4e713c2e9b6cf0a6f554c2f44797cb33e566c (diff)
downloadeclipse.platform.team-40637379e4dccde9a1736e8103ba143ae8a8be4d.tar.gz
eclipse.platform.team-40637379e4dccde9a1736e8103ba143ae8a8be4d.tar.xz
eclipse.platform.team-40637379e4dccde9a1736e8103ba143ae8a8be4d.zip
Bug 531895 - Replace usage of IDE#getEditorDescriptor(IFile)
Change-Id: I7c9967ccb3b7443e37432c338de0f8656649c708 Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/history/RevisionAnnotationController.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/history/RevisionAnnotationController.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/history/RevisionAnnotationController.java
index 487b48d10..e77b9df76 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/history/RevisionAnnotationController.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/history/RevisionAnnotationController.java
@@ -95,12 +95,12 @@ public abstract class RevisionAnnotationController {
// No existing editor references found, try to open a new editor for the file
try {
- IEditorDescriptor descrptr = IDE.getEditorDescriptor(file);
+ IEditorDescriptor descrptr = IDE.getEditorDescriptor(file, true, true);
// Try to open the associated editor only if its an internal editor
// Also, if a non-text editor is already open, there is no need to try and open
// an editor since the open will find the non-text editor
if (descrptr.isInternal() && openEditors.length == 0){
- IEditorPart part = page.openEditor(input, IDE.getEditorDescriptor(file).getId(), true, IWorkbenchPage.MATCH_INPUT);
+ IEditorPart part = page.openEditor(input, IDE.getEditorDescriptor(file, true, true).getId(), true, IWorkbenchPage.MATCH_INPUT);
AbstractDecoratedTextEditor te = findTextEditorPart(page, part, input);
if (te != null)
return te;

Back to the top