1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-22 14:12:10 +02:00

Move away of deprecated IDE.getEditorDescriptor method.

Change-Id: Id7e61518276a5cf1f9395ada03c8168d1a5a0920
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
This commit is contained in:
Alexander Kurtakov 2019-10-11 00:57:50 +03:00
parent dbaf7ae694
commit 7cd94f8f91

View file

@ -575,7 +575,7 @@ public class EditorUtility {
*/ */
public static String getEditorID(String name) { public static String getEditorID(String name) {
try { try {
IEditorDescriptor descriptor = IDE.getEditorDescriptor(name); IEditorDescriptor descriptor = IDE.getEditorDescriptor(name, true, false);
if (descriptor != null) { if (descriptor != null) {
return descriptor.getId(); return descriptor.getId();
} }