Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2019-10-10 17:57:50 -0400
committerAlexander Kurtakov2019-10-10 17:57:50 -0400
commit7cd94f8f91b4c48e06b11f2520ef30454d7aaddc (patch)
treedbeb6fd4d16c03f09e30c9952bc62c5185e872f1
parentdbaf7ae6941ee8691157d1c3995ebfc9ed9340ae (diff)
downloadorg.eclipse.cdt-7cd94f8f91b4c48e06b11f2520ef30454d7aaddc.tar.gz
org.eclipse.cdt-7cd94f8f91b4c48e06b11f2520ef30454d7aaddc.tar.xz
org.eclipse.cdt-7cd94f8f91b4c48e06b11f2520ef30454d7aaddc.zip
Move away of deprecated IDE.getEditorDescriptor method.
Change-Id: Id7e61518276a5cf1f9395ada03c8168d1a5a0920 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/util/EditorUtility.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/util/EditorUtility.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/util/EditorUtility.java
index 3f7204bedf..e6afd16731 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/util/EditorUtility.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/util/EditorUtility.java
@@ -575,7 +575,7 @@ public class EditorUtility {
*/
public static String getEditorID(String name) {
try {
- IEditorDescriptor descriptor = IDE.getEditorDescriptor(name);
+ IEditorDescriptor descriptor = IDE.getEditorDescriptor(name, true, false);
if (descriptor != null) {
return descriptor.getId();
}

Back to the top