本文整理匯總了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() {
}
});
}
}
}
示例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() {
}
});
}
}
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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()
{
}
});
}
}
}