mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 14:12:10 +02:00
Fixed bug in last checkin.
This commit is contained in:
parent
b67b5182ff
commit
9fba81c108
1 changed files with 12 additions and 10 deletions
|
@ -226,16 +226,18 @@ public class MemoryBrowser extends ViewPart implements IDebugContextListener, IL
|
|||
handleDebugContextChanged(((StructuredSelection) selection).getFirstElement());
|
||||
}
|
||||
|
||||
private boolean isBug145635Patched() {
|
||||
Type[] managerTypes = DebugUITools.getDebugContextManager().getClass().getGenericInterfaces();
|
||||
for (int i = 0; i < managerTypes.length; i++) {
|
||||
|
||||
if ("org.eclipse.debug.ui.contexts.IBug145635Marker".equals(managerTypes[i].getClass().getName()) ) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
private boolean isBug145635Patched() {
|
||||
Type[] managerTypes = DebugUITools.getDebugContextManager().getClass().getGenericInterfaces();
|
||||
for (int i = 0; i < managerTypes.length; i++) {
|
||||
if (managerTypes[i] instanceof Class) {
|
||||
Class clazz = (Class)managerTypes[i];
|
||||
if ("org.eclipse.debug.ui.contexts.IBug145635Marker".equals(clazz.getName()) ) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the presentation context id for this view. Used to support the
|
||||
|
|
Loading…
Add table
Reference in a new issue