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


Java DebuggerAction類代碼示例

本文整理匯總了Java中com.intellij.debugger.actions.DebuggerAction的典型用法代碼示例。如果您正苦於以下問題:Java DebuggerAction類的具體用法?Java DebuggerAction怎麽用?Java DebuggerAction使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


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

示例1: loadRenderers

import com.intellij.debugger.actions.DebuggerAction; //導入依賴的package包/類
private void loadRenderers() {
  getManagerThread().invoke(new DebuggerCommandImpl() {
    @Override
    protected void action() throws Exception {
      try {
        final NodeRendererSettings rendererSettings = NodeRendererSettings.getInstance();
        for (final NodeRenderer renderer : rendererSettings.getAllRenderers()) {
          if (renderer.isEnabled()) {
            myRenderers.add(renderer);
          }
        }
      }
      finally {
        DebuggerInvocationUtil.swingInvokeLater(myProject, new Runnable() {
          @Override
          public void run() {
            final DebuggerSession session = mySession;
            if (session != null && session.isAttached()) {
              session.refresh(true);
              DebuggerAction.refreshViews(mySession.getXDebugSession());
            }
          }
        });
      }
    }
  });
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:28,代碼來源:DebugProcessImpl.java

示例2: InspectPanel

import com.intellij.debugger.actions.DebuggerAction; //導入依賴的package包/類
public InspectPanel(Project project, DebuggerStateManager stateManager, @NotNull NodeDescriptorImpl inspectDescriptor) {
  super(project, stateManager);

  getInspectTree().setInspectDescriptor(inspectDescriptor);

  add(ScrollPaneFactory.createScrollPane(getInspectTree()), BorderLayout.CENTER);
  registerDisposable(DebuggerAction.installEditAction(getInspectTree(), DebuggerActions.EDIT_NODE_SOURCE));

  overrideShortcut(getInspectTree(), DebuggerActions.COPY_VALUE, CommonShortcuts.getCopy());
  setUpdateEnabled(true);
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:12,代碼來源:InspectPanel.java

示例3: ThreadsPanel

import com.intellij.debugger.actions.DebuggerAction; //導入依賴的package包/類
public ThreadsPanel(Project project, final DebuggerStateManager stateManager) {
  super(project, stateManager);

  final Disposable disposable = DebuggerAction.installEditAction(getThreadsTree(), DebuggerActions.EDIT_FRAME_SOURCE);
  registerDisposable(disposable);

  getThreadsTree().addKeyListener(new KeyAdapter() {
    @Override
    public void keyPressed(KeyEvent e) {
      if (e.getKeyCode() == KeyEvent.VK_ENTER && getThreadsTree().getSelectionCount() == 1) {
        DebuggerTreeNodeImpl node = (DebuggerTreeNodeImpl)getThreadsTree().getLastSelectedPathComponent();
        if (node != null) {
          NodeDescriptorImpl descriptor = node.getDescriptor();
          if (descriptor instanceof StackFrameDescriptorImpl) {
            selectFrame(node);
          }
        }
      }
    }
  });
  add(ScrollPaneFactory.createScrollPane(getThreadsTree()), BorderLayout.CENTER);
  stateManager.addListener(new DebuggerContextListener() {
    @Override
    public void changeEvent(@NotNull DebuggerContextImpl newContext, DebuggerSession.Event event) {
      if (DebuggerSession.Event.ATTACHED == event || DebuggerSession.Event.RESUME == event) {
        startLabelsUpdate();
      }
      else if (DebuggerSession.Event.PAUSE == event || DebuggerSession.Event.DETACHED == event || DebuggerSession.Event.DISPOSE == event) {
        myUpdateLabelsAlarm.cancelAllRequests();
      }
      if (DebuggerSession.Event.DETACHED == event || DebuggerSession.Event.DISPOSE == event) {
        stateManager.removeListener(this);
      }
    }
  });
  startLabelsUpdate();
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:38,代碼來源:ThreadsPanel.java

示例4: ThreadsPanel

import com.intellij.debugger.actions.DebuggerAction; //導入依賴的package包/類
public ThreadsPanel(Project project, final DebuggerStateManager stateManager) {
  super(project, stateManager);

  final Disposable disposable = DebuggerAction.installEditAction(getThreadsTree(), DebuggerActions.EDIT_FRAME_SOURCE);
  registerDisposable(disposable);

  getThreadsTree().addKeyListener(new KeyAdapter() {
    public void keyPressed(KeyEvent e) {
      if (e.getKeyCode() == KeyEvent.VK_ENTER && getThreadsTree().getSelectionCount() == 1) {
        DebuggerTreeNodeImpl node = (DebuggerTreeNodeImpl)getThreadsTree().getLastSelectedPathComponent();
        if (node != null) {
          NodeDescriptorImpl descriptor = node.getDescriptor();
          if (descriptor instanceof StackFrameDescriptorImpl) {
            selectFrame(node);
          }
        }
      }
    }
  });
  add(ScrollPaneFactory.createScrollPane(getThreadsTree()), BorderLayout.CENTER);
  stateManager.addListener(new DebuggerContextListener() {
    public void changeEvent(DebuggerContextImpl newContext, int event) {
      if (DebuggerSession.EVENT_ATTACHED == event || DebuggerSession.EVENT_RESUME == event) {
        startLabelsUpdate();
      }
      else if (DebuggerSession.EVENT_PAUSE == event || DebuggerSession.EVENT_DETACHED == event || DebuggerSession.EVENT_DISPOSE == event) {
        myUpdateLabelsAlarm.cancelAllRequests();
      }
      if (DebuggerSession.EVENT_DETACHED == event || DebuggerSession.EVENT_DISPOSE == event) {
        stateManager.removeListener(this);
      }
    }
  });
  startLabelsUpdate();
}
 
開發者ID:lshain-android-source,項目名稱:tools-idea,代碼行數:36,代碼來源:ThreadsPanel.java

示例5: reloadRenderers

import com.intellij.debugger.actions.DebuggerAction; //導入依賴的package包/類
private void reloadRenderers()
{
	getManagerThread().invoke(new DebuggerCommandImpl()
	{
		@Override
		public Priority getPriority()
		{
			return Priority.HIGH;
		}

		@Override
		protected void action() throws Exception
		{
			myNodeRenderersMap.clear();
			myRenderers.clear();
			try
			{
				NodeRendererSettings.getInstance().getAllRenderers().stream().filter(NodeRenderer::isEnabled).forEachOrdered(myRenderers::add);
			}
			finally
			{
				DebuggerInvocationUtil.swingInvokeLater(myProject, () ->
				{
					final DebuggerSession session = mySession;
					if(session != null && session.isAttached())
					{
						DebuggerAction.refreshViews(mySession.getXDebugSession());
					}
				});
			}
		}
	});
}
 
開發者ID:consulo,項目名稱:consulo-java,代碼行數:34,代碼來源:DebugProcessImpl.java

示例6: getSelectedNode

import com.intellij.debugger.actions.DebuggerAction; //導入依賴的package包/類
@Override
public DebuggerTreeNode getSelectedNode(DataContext context) {
  return DebuggerAction.getSelectedNode(context);
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:5,代碼來源:DebuggerUtilsImpl.java

示例7: getDebuggerContext

import com.intellij.debugger.actions.DebuggerAction; //導入依賴的package包/類
@Override
public DebuggerContextImpl getDebuggerContext(DataContext context) {
  return DebuggerAction.getDebuggerContext(context);
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:5,代碼來源:DebuggerUtilsImpl.java

示例8: WatchPanel

import com.intellij.debugger.actions.DebuggerAction; //導入依賴的package包/類
public WatchPanel(Project project, DebuggerStateManager stateManager) {
  super(project, stateManager);
  add(createTreePanel(getWatchTree()), BorderLayout.CENTER);
  registerDisposable(DebuggerAction.installEditAction(getWatchTree(), DebuggerActions.EDIT_NODE_SOURCE));
  overrideShortcut(getWatchTree(), DebuggerActions.COPY_VALUE, CommonShortcuts.getCopy());
}
 
開發者ID:lshain-android-source,項目名稱:tools-idea,代碼行數:7,代碼來源:WatchPanel.java

示例9: getSelectedNode

import com.intellij.debugger.actions.DebuggerAction; //導入依賴的package包/類
public DebuggerTreeNode getSelectedNode(DataContext context) {
  return DebuggerAction.getSelectedNode(context);
}
 
開發者ID:lshain-android-source,項目名稱:tools-idea,代碼行數:4,代碼來源:DebuggerUtilsImpl.java

示例10: getDebuggerContext

import com.intellij.debugger.actions.DebuggerAction; //導入依賴的package包/類
public DebuggerContextImpl getDebuggerContext(DataContext context) {
  return DebuggerAction.getDebuggerContext(context);
}
 
開發者ID:lshain-android-source,項目名稱:tools-idea,代碼行數:4,代碼來源:DebuggerUtilsImpl.java

示例11: ThreadsPanel

import com.intellij.debugger.actions.DebuggerAction; //導入依賴的package包/類
public ThreadsPanel(Project project, final DebuggerStateManager stateManager)
{
	super(project, stateManager);

	final Disposable disposable = DebuggerAction.installEditAction(getThreadsTree(), DebuggerActions.EDIT_FRAME_SOURCE);
	registerDisposable(disposable);

	getThreadsTree().addKeyListener(new KeyAdapter()
	{
		@Override
		public void keyPressed(KeyEvent e)
		{
			if(e.getKeyCode() == KeyEvent.VK_ENTER && getThreadsTree().getSelectionCount() == 1)
			{
				DebuggerTreeNodeImpl node = (DebuggerTreeNodeImpl) getThreadsTree().getLastSelectedPathComponent();
				if(node != null)
				{
					NodeDescriptorImpl descriptor = node.getDescriptor();
					if(descriptor instanceof StackFrameDescriptorImpl)
					{
						selectFrame(node);
					}
				}
			}
		}
	});
	add(ScrollPaneFactory.createScrollPane(getThreadsTree()), BorderLayout.CENTER);
	stateManager.addListener(new DebuggerContextListener()
	{
		@Override
		public void changeEvent(@NotNull DebuggerContextImpl newContext, DebuggerSession.Event event)
		{
			if(DebuggerSession.Event.ATTACHED == event || DebuggerSession.Event.RESUME == event)
			{
				startLabelsUpdate();
			}
			else if(DebuggerSession.Event.PAUSE == event || DebuggerSession.Event.DETACHED == event || DebuggerSession.Event.DISPOSE == event)
			{
				myUpdateLabelsAlarm.cancelAllRequests();
			}
			if(DebuggerSession.Event.DETACHED == event || DebuggerSession.Event.DISPOSE == event)
			{
				stateManager.removeListener(this);
			}
		}
	});
	startLabelsUpdate();
}
 
開發者ID:consulo,項目名稱:consulo-java,代碼行數:49,代碼來源:ThreadsPanel.java

示例12: getSelectedNode

import com.intellij.debugger.actions.DebuggerAction; //導入依賴的package包/類
@Override
public DebuggerTreeNode getSelectedNode(DataContext context)
{
	return DebuggerAction.getSelectedNode(context);
}
 
開發者ID:consulo,項目名稱:consulo-java,代碼行數:6,代碼來源:DebuggerUtilsImpl.java

示例13: getDebuggerContext

import com.intellij.debugger.actions.DebuggerAction; //導入依賴的package包/類
@Override
public DebuggerContextImpl getDebuggerContext(DataContext context)
{
	return DebuggerAction.getDebuggerContext(context);
}
 
開發者ID:consulo,項目名稱:consulo-java,代碼行數:6,代碼來源:DebuggerUtilsImpl.java

示例14: VariablesPanel

import com.intellij.debugger.actions.DebuggerAction; //導入依賴的package包/類
public VariablesPanel(Project project, DebuggerStateManager stateManager, Disposable parent) {
  super(project, stateManager);
  setBorder(null);


  final FrameVariablesTree frameTree = getFrameTree();

  add(ScrollPaneFactory.createScrollPane(frameTree), BorderLayout.CENTER);
  registerDisposable(DebuggerAction.installEditAction(frameTree, DebuggerActions.EDIT_NODE_SOURCE));

  overrideShortcut(frameTree, DebuggerActions.COPY_VALUE, CommonShortcuts.getCopy());
  overrideShortcut(frameTree, DebuggerActions.SET_VALUE, new CustomShortcutSet(KeyStroke.getKeyStroke(KeyEvent.VK_F2, 0)));

  new ValueNodeDnD(myTree, parent);
}
 
開發者ID:lshain-android-source,項目名稱:tools-idea,代碼行數:16,代碼來源:VariablesPanel.java


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