当前位置: 首页>>代码示例>>Java>>正文


Java XExecutionStack类代码示例

本文整理汇总了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);
    }
  }
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:21,代码来源:XFramesView.java

示例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;
}
 
开发者ID:consulo,项目名称:consulo-dotnet,代码行数:18,代码来源:DotNetSuspendContext.java

示例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;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:12,代码来源:XDebuggerUtilImpl.java

示例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();
      }
    }
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:14,代码来源:XDebugSessionImpl.java

示例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();
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:15,代码来源:XDebugSessionImpl.java

示例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...");
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:ThreadComboBoxRenderer.java

示例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;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:XFramesView.java

示例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);
    }
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:XFramesView.java

示例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();
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:14,代码来源:XFramesView.java

示例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;
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:16,代码来源:PySuspendContext.java

示例11: getExecutionStacks

import com.intellij.xdebugger.frame.XExecutionStack; //导入依赖的package包/类
@Override
public XExecutionStack[] getExecutionStacks() {
  return new XExecutionStack[]{
    getActiveExecutionStack(),
    getSourceStack()
  };
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:8,代码来源:XsltDebugProcess.java

示例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;
}
 
开发者ID:shvetsgroup,项目名称:squirrel-lang-idea-plugin,代码行数:10,代码来源:SquirrelSuspendContext.java

示例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());
}
 
开发者ID:ktisha,项目名称:TheRPlugin,代码行数:31,代码来源:TheRXSuspendContextTest.java

示例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();
      }
    }
  }
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:14,代码来源:XDebugSessionImpl.java

示例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();
  }
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:14,代码来源:XDebugSessionImpl.java


注:本文中的com.intellij.xdebugger.frame.XExecutionStack类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。