本文整理汇总了Java中com.intellij.xdebugger.frame.XExecutionStack类的典型用法代码示例。如果您正苦于以下问题:Java XExecutionStack类的具体用法?Java XExecutionStack怎么用?Java XExecutionStack使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
XExecutionStack类属于com.intellij.xdebugger.frame包,在下文中一共展示了XExecutionStack类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: updateFrames
import com.intellij.xdebugger.frame.XExecutionStack; //导入依赖的package包/类
private void updateFrames(final XExecutionStack executionStack) {
if (mySelectedStack == executionStack) {
return;
}
if (mySelectedStack != null) {
getOrCreateBuilder(mySelectedStack).stop();
}
mySelectedStack = executionStack;
if (executionStack != null) {
StackFramesListBuilder builder = getOrCreateBuilder(executionStack);
builder.initModel(myFramesList.getModel());
builder.start();
XStackFrame topFrame = executionStack.getTopFrame();
if (topFrame != null) {
myFramesList.setSelectedValue(topFrame, true);
onFrameSelected(executionStack, topFrame);
}
}
}
示例2: getActiveExecutionStack
import com.intellij.xdebugger.frame.XExecutionStack; //导入依赖的package包/类
@Nullable
@Override
public XExecutionStack getActiveExecutionStack()
{
if(myActiveThreadId == -1)
{
return null;
}
for(DotNetExecutionStack executionStack : myExecutionStacks)
{
if(executionStack.getThreadProxy().getId() == myActiveThreadId)
{
return executionStack;
}
}
return null;
}
示例3: getEvaluator
import com.intellij.xdebugger.frame.XExecutionStack; //导入依赖的package包/类
@Nullable
public static XDebuggerEvaluator getEvaluator(final XSuspendContext suspendContext) {
XExecutionStack executionStack = suspendContext.getActiveExecutionStack();
if (executionStack != null) {
XStackFrame stackFrame = executionStack.getTopFrame();
if (stackFrame != null) {
return stackFrame.getEvaluator();
}
}
return null;
}
示例4: showExecutionPoint
import com.intellij.xdebugger.frame.XExecutionStack; //导入依赖的package包/类
@Override
public void showExecutionPoint() {
if (mySuspendContext != null) {
XExecutionStack executionStack = mySuspendContext.getActiveExecutionStack();
if (executionStack != null) {
XStackFrame topFrame = executionStack.getTopFrame();
if (topFrame != null) {
setCurrentStackFrame(executionStack, topFrame, true);
myDebuggerManager.showExecutionPosition();
}
}
}
}
示例5: setCurrentStackFrame
import com.intellij.xdebugger.frame.XExecutionStack; //导入依赖的package包/类
@Override
public void setCurrentStackFrame(@NotNull XExecutionStack executionStack, @NotNull XStackFrame frame, boolean isTopFrame) {
if (mySuspendContext == null) return;
boolean frameChanged = myCurrentStackFrame != frame;
myCurrentExecutionStack = executionStack;
myCurrentStackFrame = frame;
myIsTopFrame = isTopFrame;
activateSession();
if (frameChanged) {
myDispatcher.getMulticaster().stackFrameChanged();
}
}
示例6: customize
import com.intellij.xdebugger.frame.XExecutionStack; //导入依赖的package包/类
@Override
public void customize(JList list, XExecutionStack value, int index, boolean selected, boolean hasFocus) {
if (value != null) {
setText(value.getDisplayName());
setIcon(value.getIcon());
}
else if (index >= 0) {
setText("Loading...");
}
}
示例7: getOrCreateBuilder
import com.intellij.xdebugger.frame.XExecutionStack; //导入依赖的package包/类
private StackFramesListBuilder getOrCreateBuilder(XExecutionStack executionStack, XDebugSession session) {
StackFramesListBuilder builder = myBuilders.get(executionStack);
if (builder == null) {
builder = new StackFramesListBuilder(executionStack, session);
myBuilders.put(executionStack, builder);
}
return builder;
}
示例8: addExecutionStacks
import com.intellij.xdebugger.frame.XExecutionStack; //导入依赖的package包/类
private void addExecutionStacks(List<? extends XExecutionStack> executionStacks) {
for (XExecutionStack executionStack : executionStacks) {
if (!myExecutionStacks.contains(executionStack)) {
//noinspection unchecked
myThreadComboBox.addItem(executionStack);
myExecutionStacks.add(executionStack);
}
}
}
示例9: updateFrames
import com.intellij.xdebugger.frame.XExecutionStack; //导入依赖的package包/类
private void updateFrames(final XExecutionStack executionStack, @NotNull XDebugSession session) {
if (mySelectedStack != null) {
getOrCreateBuilder(mySelectedStack, session).stop();
}
mySelectedStack = executionStack;
if (executionStack != null) {
StackFramesListBuilder builder = getOrCreateBuilder(executionStack, session);
myListenersEnabled = false;
builder.initModel(myFramesList.getModel());
myListenersEnabled = !builder.start();
}
}
示例10: getExecutionStacks
import com.intellij.xdebugger.frame.XExecutionStack; //导入依赖的package包/类
@Override
public XExecutionStack[] getExecutionStacks() {
final Collection<PyThreadInfo> threads = myDebugProcess.getThreads();
if (threads.size() < 1) {
return XExecutionStack.EMPTY_ARRAY;
}
else {
XExecutionStack[] stacks = new XExecutionStack[threads.size()];
int i = 0;
for (PyThreadInfo thread : threads) {
stacks[i++] = new PyExecutionStack(myDebugProcess, thread);
}
return stacks;
}
}
示例11: getExecutionStacks
import com.intellij.xdebugger.frame.XExecutionStack; //导入依赖的package包/类
@Override
public XExecutionStack[] getExecutionStacks() {
return new XExecutionStack[]{
getActiveExecutionStack(),
getSourceStack()
};
}
示例12: SquirrelSuspendContext
import com.intellij.xdebugger.frame.XExecutionStack; //导入依赖的package包/类
public SquirrelSuspendContext(@NotNull SquirrelProcessSnapshot snapshot) {
myExecutionStacks = new XExecutionStack[snapshot.getStack().size()];
int activeStackIdx = 0;
for (int i = 0; i < snapshot.getStack().size(); i++) {
SquirrelCall call = snapshot.getStack().get(i);
myExecutionStacks[i] = new SquirrelExecutionStack(call, snapshot);
}
myActiveStackIdx = activeStackIdx;
}
示例13: ordinary
import com.intellij.xdebugger.frame.XExecutionStack; //导入依赖的package包/类
@Test
public void ordinary() {
final TheRXStackFrame first = new TheRXStackFrame(
new TheRStackFrame(
new TheRLocation("abc", 2),
new IllegalTheRVarsLoader(),
new IllegalTheRDebuggerEvaluator()
),
null,
ExecutorServices.ILLEGAL_EXECUTOR
);
final TheRXStackFrame second = new TheRXStackFrame(
new TheRStackFrame(
new TheRLocation("def", 1),
new IllegalTheRVarsLoader(),
new IllegalTheRDebuggerEvaluator()
),
null,
ExecutorServices.ILLEGAL_EXECUTOR
);
final TheRXSuspendContext context = new TheRXSuspendContext(Arrays.asList(first, second));
final XExecutionStack stack = context.getActiveExecutionStack();
final MockXStackFrameContainer container = new MockXStackFrameContainer();
stack.computeStackFrames(1, container);
assertEquals(Collections.singletonList(second), container.getResult());
assertEquals(first, stack.getTopFrame());
}
示例14: showExecutionPoint
import com.intellij.xdebugger.frame.XExecutionStack; //导入依赖的package包/类
@Override
public void showExecutionPoint() {
if (mySuspendContext != null) {
XExecutionStack executionStack = mySuspendContext.getActiveExecutionStack();
if (executionStack != null) {
XStackFrame topFrame = executionStack.getTopFrame();
if (topFrame != null) {
setCurrentStackFrame(executionStack, topFrame);
myDebuggerManager.showExecutionPosition();
}
}
}
}
示例15: setCurrentStackFrame
import com.intellij.xdebugger.frame.XExecutionStack; //导入依赖的package包/类
@Override
public void setCurrentStackFrame(@NotNull XExecutionStack executionStack, @NotNull XStackFrame frame) {
if (mySuspendContext == null) return;
boolean frameChanged = myCurrentStackFrame != frame;
myCurrentExecutionStack = executionStack;
myCurrentStackFrame = frame;
activateSession();
if (frameChanged) {
myDispatcher.getMulticaster().stackFrameChanged();
}
}