當前位置: 首頁>>代碼示例>>Java>>正文


Java DebuggerContext.getDebugProcess方法代碼示例

本文整理匯總了Java中com.intellij.debugger.DebuggerContext.getDebugProcess方法的典型用法代碼示例。如果您正苦於以下問題:Java DebuggerContext.getDebugProcess方法的具體用法?Java DebuggerContext.getDebugProcess怎麽用?Java DebuggerContext.getDebugProcess使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在com.intellij.debugger.DebuggerContext的用法示例。


在下文中一共展示了DebuggerContext.getDebugProcess方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: actionPerformed

import com.intellij.debugger.DebuggerContext; //導入方法依賴的package包/類
public void actionPerformed(AnActionEvent e) {
  DebuggerTreeNodeImpl selectedNode = (DebuggerTreeNodeImpl)((DebuggerUtilsEx)DebuggerUtils.getInstance()).getSelectedNode(e.getDataContext());
  if(selectedNode == null) return;
  
  if(!isPrimitiveArray(selectedNode)) return;

  final DebuggerContext debuggerContext = DebuggerUtils.getInstance().getDebuggerContext(e.getDataContext());
  if(debuggerContext == null || debuggerContext.getDebugProcess() == null) return;

  for(Enumeration children = selectedNode.children(); children.hasMoreElements(); ) {
    final DebuggerTreeNode child = (DebuggerTreeNode)children.nextElement();
    if(child.getDescriptor() instanceof ValueDescriptor) {
      debuggerContext.getDebugProcess().getManagerThread().invokeCommand(new SuspendContextCommand() {
        public SuspendContext getSuspendContext() {
          return debuggerContext.getSuspendContext();
        }

        public void action() {
          child.setRenderer(myRenderer);
        }

        public void commandCancelled() {
        }
      });
    }
  }
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:28,代碼來源:ShowAllAs.java

示例2: actionPerformed

import com.intellij.debugger.DebuggerContext; //導入方法依賴的package包/類
public void actionPerformed(AnActionEvent e) {
  DebuggerTreeNode selectedNode = ((DebuggerUtilsEx)DebuggerUtils.getInstance()).getSelectedNode(e.getDataContext());
  if(selectedNode == null) return;
  
  if(!isPrimitiveArray(selectedNode)) return;

  final DebuggerContext debuggerContext = DebuggerUtils.getInstance().getDebuggerContext(e.getDataContext());
  if(debuggerContext == null || debuggerContext.getDebugProcess() == null) return;

  for(Enumeration children = selectedNode.children(); children.hasMoreElements(); ) {
    final DebuggerTreeNode child = (DebuggerTreeNode)children.nextElement();
    if(child.getDescriptor() instanceof ValueDescriptor) {
      debuggerContext.getDebugProcess().getManagerThread().invokeCommand(new SuspendContextCommand() {
        public SuspendContext getSuspendContext() {
          return debuggerContext.getSuspendContext();
        }

        public void action() {
          child.setRenderer(myRenderer);
        }

        public void commandCancelled() {
        }
      });
    }
  }
}
 
開發者ID:lshain-android-source,項目名稱:tools-idea,代碼行數:28,代碼來源:ShowAllAs.java

示例3: getContext

import com.intellij.debugger.DebuggerContext; //導入方法依賴的package包/類
protected final PsiElement getContext(Project project, DebuggerContext context) {
  DebugProcess process = context.getDebugProcess();
  GlobalSearchScope scope = process != null ? process.getSearchScope() : GlobalSearchScope.allScope(project);
  return DebuggerUtils.findClass(getClassName(), project, scope);
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:6,代碼來源:CompoundReferenceRenderer.java

示例4: getChildValueExpression

import com.intellij.debugger.DebuggerContext; //導入方法依賴的package包/類
public PsiElement getChildValueExpression(DebuggerTreeNode node, DebuggerContext context) throws EvaluateException {
  final Value parentValue = ((ValueDescriptor)node.getParent().getDescriptor()).getValue();
  final DebugProcessImpl debugProcess = (DebugProcessImpl)context.getDebugProcess();
  return debugProcess.getDefaultRenderer(parentValue).getChildValueExpression(node, context);
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:6,代碼來源:ToStringRenderer.java

示例5: getChildValueExpression

import com.intellij.debugger.DebuggerContext; //導入方法依賴的package包/類
public PsiExpression getChildValueExpression(DebuggerTreeNode node, DebuggerContext context) throws EvaluateException {
  final Value parentValue = ((ValueDescriptor)node.getParent().getDescriptor()).getValue();
  final DebugProcessImpl debugProcess = (DebugProcessImpl)context.getDebugProcess();
  return debugProcess.getDefaultRenderer(parentValue).getChildValueExpression(node, context);
}
 
開發者ID:lshain-android-source,項目名稱:tools-idea,代碼行數:6,代碼來源:ToStringRenderer.java

示例6: getContext

import com.intellij.debugger.DebuggerContext; //導入方法依賴的package包/類
protected final PsiElement getContext(Project project, DebuggerContext context)
{
	DebugProcess process = context.getDebugProcess();
	GlobalSearchScope scope = process != null ? process.getSearchScope() : GlobalSearchScope.allScope(project);
	return DebuggerUtils.findClass(getClassName(), project, scope);
}
 
開發者ID:consulo,項目名稱:consulo-java,代碼行數:7,代碼來源:CompoundTypeRenderer.java

示例7: actionPerformed

import com.intellij.debugger.DebuggerContext; //導入方法依賴的package包/類
public void actionPerformed(AnActionEvent e)
{
	DebuggerTreeNodeImpl selectedNode = (DebuggerTreeNodeImpl) ((DebuggerUtilsEx) DebuggerUtils.getInstance()).getSelectedNode(e.getDataContext
			());
	if(selectedNode == null)
	{
		return;
	}

	if(!isPrimitiveArray(selectedNode))
	{
		return;
	}

	final DebuggerContext debuggerContext = DebuggerUtils.getInstance().getDebuggerContext(e.getDataContext());
	if(debuggerContext == null || debuggerContext.getDebugProcess() == null)
	{
		return;
	}

	for(Enumeration children = selectedNode.children(); children.hasMoreElements(); )
	{
		final DebuggerTreeNode child = (DebuggerTreeNode) children.nextElement();
		if(child.getDescriptor() instanceof ValueDescriptor)
		{
			debuggerContext.getDebugProcess().getManagerThread().invokeCommand(new SuspendContextCommand()
			{
				public SuspendContext getSuspendContext()
				{
					return debuggerContext.getSuspendContext();
				}

				public void action()
				{
					child.setRenderer(myRenderer);
				}

				public void commandCancelled()
				{
				}
			});
		}
	}
}
 
開發者ID:consulo,項目名稱:consulo-java,代碼行數:45,代碼來源:ShowAllAs.java


注:本文中的com.intellij.debugger.DebuggerContext.getDebugProcess方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。