Bug 531895 - Replace usage of IDE#getEditorDescriptor(IFile)
Change-Id: I7c9967ccb3b7443e37432c338de0f8656649c708
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
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 487b48d..e77b9df 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 @@
// 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;