1
0
Fork 0
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:
Pawel Piech 2009-05-19 19:02:31 +00:00
parent b67b5182ff
commit 9fba81c108

View file

@ -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