EA-66645 - IE: JavaExecutionStack.calcIcon - error 15

This commit is contained in:
Egor.Ushakov
2015-03-19 15:59:55 +03:00
parent 4256f57774
commit 4e5a5bd442
3 changed files with 13 additions and 4 deletions
@@ -58,7 +58,7 @@ public class JavaExecutionStack extends XExecutionStack {
if (current) {
return AllIcons.Debugger.ThreadCurrent;
}
else if (threadProxy.getThreadReference().isAtBreakpoint()) {
else if (threadProxy.isAtBreakpoint()) {
return AllIcons.Debugger.ThreadAtBreakpoint;
}
else if (threadProxy.isSuspended()) {
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2014 JetBrains s.r.o.
* Copyright 2000-2015 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -303,4 +303,13 @@ public final class ThreadReferenceProxyImpl extends ObjectReferenceProxyImpl imp
return false;
}
}
public boolean isAtBreakpoint() {
try {
return getThreadReference().isAtBreakpoint();
} catch (InternalException e) {
LOG.info(e);
}
return false;
}
}
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2009 JetBrains s.r.o.
* Copyright 2000-2015 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -100,7 +100,7 @@ public class ThreadDescriptorImpl extends NodeDescriptorImpl implements ThreadDe
}
myIsExpandable = calcExpandable(myIsSuspended);
mySuspendContext = SuspendManagerUtil.getSuspendContextForThread(suspendContext, thread);
myIsAtBreakpoint = suspendManager != null? SuspendManagerUtil.findContextByThread(suspendManager, thread) != null : thread.getThreadReference().isAtBreakpoint();
myIsAtBreakpoint = suspendManager != null? SuspendManagerUtil.findContextByThread(suspendManager, thread) != null : thread.isAtBreakpoint();
myIsCurrent = suspendContext != null? suspendContext.getThread() == thread : false;
myIsFrozen = suspendManager != null? suspendManager.isFrozen(thread) : myIsSuspended;
}