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


Java DebugProcessImpl.getRequestsManager方法代码示例

本文整理汇总了Java中com.intellij.debugger.engine.DebugProcessImpl.getRequestsManager方法的典型用法代码示例。如果您正苦于以下问题:Java DebugProcessImpl.getRequestsManager方法的具体用法?Java DebugProcessImpl.getRequestsManager怎么用?Java DebugProcessImpl.getRequestsManager使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.intellij.debugger.engine.DebugProcessImpl的用法示例。


在下文中一共展示了DebugProcessImpl.getRequestsManager方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: disableBreakpoints

import com.intellij.debugger.engine.DebugProcessImpl; //导入方法依赖的package包/类
public void disableBreakpoints(@NotNull final DebugProcessImpl debugProcess) {
  final List<Breakpoint> breakpoints = getBreakpoints();
  if (!breakpoints.isEmpty()) {
    final RequestManagerImpl requestManager = debugProcess.getRequestsManager();
    for (Breakpoint breakpoint : breakpoints) {
      breakpoint.markVerified(requestManager.isVerified(breakpoint));
      requestManager.deleteRequest(breakpoint);
    }
    SwingUtilities.invokeLater(new Runnable() {
      @Override
      public void run() {
        updateBreakpointsUI();
      }
    });
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:17,代码来源:BreakpointManager.java

示例2: disableBreakpoints

import com.intellij.debugger.engine.DebugProcessImpl; //导入方法依赖的package包/类
public void disableBreakpoints(@NotNull final DebugProcessImpl debugProcess)
{
	final List<Breakpoint> breakpoints = getBreakpoints();
	if(!breakpoints.isEmpty())
	{
		final RequestManagerImpl requestManager = debugProcess.getRequestsManager();
		for(Breakpoint breakpoint : breakpoints)
		{
			breakpoint.markVerified(requestManager.isVerified(breakpoint));
			requestManager.deleteRequest(breakpoint);
		}
		SwingUtilities.invokeLater(new Runnable()
		{
			@Override
			public void run()
			{
				updateBreakpointsUI();
			}
		});
	}
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:22,代码来源:BreakpointManager.java

示例3: calcIcon

import com.intellij.debugger.engine.DebugProcessImpl; //导入方法依赖的package包/类
private Icon calcIcon(@Nullable DebugProcessImpl debugProcess) {
  final boolean muted = debugProcess != null && isMuted(debugProcess);
  if (!isEnabled()) {
    return getDisabledIcon(muted);
  }

  myInvalidMessage = "";

  if (!isValid()) {
    return getInvalidIcon(muted);
  }

  if (debugProcess == null) {
    return getSetIcon(muted);
  }

  final RequestManagerImpl requestsManager = debugProcess.getRequestsManager();

  final boolean isVerified = myCachedVerifiedState || requestsManager.isVerified(this);

  final String warning = requestsManager.getWarning(this);
  if (warning != null) {
    myInvalidMessage = warning;
    if (!isVerified) {
      return getInvalidIcon(muted);
    }
    return getVerifiedWarningsIcon(muted);
  }

  if (isVerified) {
    return getVerifiedIcon(muted);
  }

  return getSetIcon(muted);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:36,代码来源:BreakpointWithHighlighter.java

示例4: createRequest

import com.intellij.debugger.engine.DebugProcessImpl; //导入方法依赖的package包/类
public void createRequest(DebugProcessImpl debugProcess) {
  DebuggerManagerThreadImpl.assertIsManagerThread();
  if (!shouldCreateRequest(debugProcess)) {
    return;
  }
  try {
    RequestManagerImpl requestManager = debugProcess.getRequestsManager();
    if (isWatchEntry()) {
      MethodEntryRequest entryRequest = MethodBreakpoint.findRequest(debugProcess, MethodEntryRequest.class, this);
      if (entryRequest == null) {
        entryRequest = requestManager.createMethodEntryRequest(this);
      }
      else {
        entryRequest.disable();
      }
      entryRequest.addClassFilter(getClassPattern());
      debugProcess.getRequestsManager().enableRequest(entryRequest);
    }
    if (isWatchExit()) {
      MethodExitRequest exitRequest = MethodBreakpoint.findRequest(debugProcess, MethodExitRequest.class, this);
      if (exitRequest == null) {
        exitRequest = requestManager.createMethodExitRequest(this);
      }
      else {
        exitRequest.disable();
      }
      exitRequest.addClassFilter(getClassPattern());
      debugProcess.getRequestsManager().enableRequest(exitRequest);
    }
  }
  catch (Exception e) {
    LOG.debug(e);
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:35,代码来源:WildcardMethodBreakpoint.java

示例5: calcIcon

import com.intellij.debugger.engine.DebugProcessImpl; //导入方法依赖的package包/类
private Icon calcIcon(@Nullable DebugProcessImpl debugProcess) {
  final boolean muted = debugProcess != null && isMuted(debugProcess);
  if (!ENABLED) {
    return getDisabledIcon(muted);
  }

  myInvalidMessage = "";

  if (!isValid()) {
    return getInvalidIcon(muted);
  }

  if (debugProcess == null) {
    return getSetIcon(muted);
  }

  final RequestManagerImpl requestsManager = debugProcess.getRequestsManager();

  final boolean isVerified = myCachedVerifiedState || requestsManager.isVerified(this);

  final String warning = requestsManager.getWarning(this);
  if (warning != null) {
    myInvalidMessage = warning;
    if (!isVerified) {
      return getInvalidIcon(muted);
    }
    return getVerifiedWarningsIcon(muted);
  }

  if (isVerified) {
    return getVerifiedIcon(muted);
  }

  return getSetIcon(muted);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:36,代码来源:BreakpointWithHighlighter.java

示例6: createRequest

import com.intellij.debugger.engine.DebugProcessImpl; //导入方法依赖的package包/类
public void createRequest(DebugProcessImpl debugProcess) {
  DebuggerManagerThreadImpl.assertIsManagerThread();
  if (!ENABLED || !debugProcess.isAttached() || debugProcess.areBreakpointsMuted() || !debugProcess.getRequestsManager().findRequests(this).isEmpty()) {
    return;
  }
  try {
    RequestManagerImpl requestManager = debugProcess.getRequestsManager();
    if (WATCH_ENTRY) {
      MethodEntryRequest entryRequest = (MethodEntryRequest)findRequest(debugProcess, MethodEntryRequest.class);
      if (entryRequest == null) {
        entryRequest = requestManager.createMethodEntryRequest(this);
      }
      else {
        entryRequest.disable();
      }
      entryRequest.addClassFilter(myClassPattern);
      debugProcess.getRequestsManager().enableRequest(entryRequest);
    }
    if (WATCH_EXIT) {
      MethodExitRequest exitRequest = (MethodExitRequest)findRequest(debugProcess, MethodExitRequest.class);
      if (exitRequest == null) {
        exitRequest = requestManager.createMethodExitRequest(this);
      }
      else {
        exitRequest.disable();
      }
      exitRequest.addClassFilter(myClassPattern);
      debugProcess.getRequestsManager().enableRequest(exitRequest);
    }
  }
  catch (Exception e) {
    LOG.debug(e);
  }
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:35,代码来源:WildcardMethodBreakpoint.java

示例7: createLocationBreakpointRequest

import com.intellij.debugger.engine.DebugProcessImpl; //导入方法依赖的package包/类
static void createLocationBreakpointRequest(@NotNull FilteredRequestor requestor, @Nullable Location location, @NotNull DebugProcessImpl debugProcess)
{
	if(location != null)
	{
		RequestManagerImpl requestsManager = debugProcess.getRequestsManager();
		requestsManager.enableRequest(requestsManager.createBreakpointRequest(requestor, location));
	}
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:9,代码来源:BreakpointWithHighlighter.java

示例8: createRequestForPreparedClass

import com.intellij.debugger.engine.DebugProcessImpl; //导入方法依赖的package包/类
protected void createRequestForPreparedClass(@NotNull DebugProcessImpl debugProcess, @NotNull ReferenceType classType) {
  try {
    boolean hasMethod = false;
    for (Iterator iterator = classType.allMethods().iterator(); iterator.hasNext();) {
      Method method = (Method)iterator.next();
      String signature = method.signature();
      String name = method.name();

      if (getMethodName().equals(name) && mySignature.getName(debugProcess).equals(signature)) {
        hasMethod = true;
        break;
      }
    }

    if(!hasMethod) {
      debugProcess.getRequestsManager().setInvalid(
        this, DebuggerBundle.message("error.invalid.breakpoint.method.not.found", classType.name())
      );
      return;
    }

    RequestManagerImpl requestManager = debugProcess.getRequestsManager();
    if (isWatchEntry()) {
      MethodEntryRequest entryRequest = findRequest(debugProcess, MethodEntryRequest.class, this);
      if (entryRequest == null) {
        entryRequest = requestManager.createMethodEntryRequest(this);
      }
      else {
        entryRequest.disable();
      }
      //entryRequest.addClassFilter(myClassQualifiedName);
      // use addClassFilter(ReferenceType) in order to stop on subclasses also!
      entryRequest.addClassFilter(classType);
      debugProcess.getRequestsManager().enableRequest(entryRequest);
    }
    if (isWatchExit()) {
      MethodExitRequest exitRequest = findRequest(debugProcess, MethodExitRequest.class, this);
      if (exitRequest == null) {
        exitRequest = requestManager.createMethodExitRequest(this);
      }
      else {
        exitRequest.disable();
      }
      //exitRequest.addClassFilter(myClassQualifiedName);
      exitRequest.addClassFilter(classType);
      debugProcess.getRequestsManager().enableRequest(exitRequest);
    }
  }
  catch (Exception e) {
    LOG.debug(e);
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:53,代码来源:MethodBreakpoint.java

示例9: createRequestForPreparedClass

import com.intellij.debugger.engine.DebugProcessImpl; //导入方法依赖的package包/类
protected void createRequestForPreparedClass(@NotNull DebugProcessImpl debugProcess, @NotNull ReferenceType classType) {
  try {
    boolean hasMethod = false;
    for (Iterator iterator = classType.allMethods().iterator(); iterator.hasNext();) {
      Method method = (Method)iterator.next();
      String signature = method.signature();
      String name = method.name();

      if (myMethodName.equals(name) && mySignature.getName(debugProcess).equals(signature)) {
        hasMethod = true;
        break;
      }
    }

    if(!hasMethod) {
      debugProcess.getRequestsManager().setInvalid(
        this, DebuggerBundle.message("error.invalid.breakpoint.method.not.found", classType.name())
      );
      return;
    }

    RequestManagerImpl requestManager = debugProcess.getRequestsManager();
    if (WATCH_ENTRY) {
      MethodEntryRequest entryRequest = (MethodEntryRequest)findRequest(debugProcess, MethodEntryRequest.class);
      if (entryRequest == null) {
        entryRequest = requestManager.createMethodEntryRequest(this);
      }
      else {
        entryRequest.disable();
      }
      //entryRequest.addClassFilter(myClassQualifiedName);
      // use addClassFilter(ReferenceType) in order to stop on subclasses also!
      entryRequest.addClassFilter(classType);
      debugProcess.getRequestsManager().enableRequest(entryRequest);
    }
    if (WATCH_EXIT) {
      MethodExitRequest exitRequest = (MethodExitRequest)findRequest(debugProcess, MethodExitRequest.class);
      if (exitRequest == null) {
        exitRequest = requestManager.createMethodExitRequest(this);
      }
      else {
        exitRequest.disable();
      }
      //exitRequest.addClassFilter(myClassQualifiedName);
      exitRequest.addClassFilter(classType);
      debugProcess.getRequestsManager().enableRequest(exitRequest);
    }
  }
  catch (Exception e) {
    LOG.debug(e);
  }
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:53,代码来源:MethodBreakpoint.java

示例10: calcIcon

import com.intellij.debugger.engine.DebugProcessImpl; //导入方法依赖的package包/类
private Icon calcIcon(@Nullable DebugProcessImpl debugProcess)
{
	final boolean muted = debugProcess != null && isMuted(debugProcess);
	if(!isEnabled())
	{
		return getDisabledIcon(muted);
	}

	myInvalidMessage = "";

	if(!isValid())
	{
		return getInvalidIcon(muted);
	}

	if(debugProcess == null)
	{
		return getSetIcon(muted);
	}

	final RequestManagerImpl requestsManager = debugProcess.getRequestsManager();

	final boolean isVerified = myCachedVerifiedState || requestsManager.isVerified(this);

	final String warning = requestsManager.getWarning(this);
	if(warning != null)
	{
		myInvalidMessage = warning;
		if(!isVerified)
		{
			return getInvalidIcon(muted);
		}
		return getVerifiedWarningsIcon(muted);
	}

	if(isVerified)
	{
		return getVerifiedIcon(muted);
	}

	return getSetIcon(muted);
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:43,代码来源:BreakpointWithHighlighter.java

示例11: createRequestForPreparedClassOriginal

import com.intellij.debugger.engine.DebugProcessImpl; //导入方法依赖的package包/类
private void createRequestForPreparedClassOriginal(@NotNull DebugProcessImpl debugProcess, @NotNull ReferenceType classType)
{
	try
	{
		boolean hasMethod = false;
		for(Method method : classType.allMethods())
		{
			String signature = method.signature();
			String name = method.name();

			if(getMethodName().equals(name) && mySignature.getName(debugProcess).equals(signature))
			{
				hasMethod = true;
				break;
			}
		}

		if(!hasMethod)
		{
			debugProcess.getRequestsManager().setInvalid(this, DebuggerBundle.message("error.invalid.breakpoint.method.not.found", classType.name()));
			return;
		}

		RequestManagerImpl requestManager = debugProcess.getRequestsManager();
		if(isWatchEntry())
		{
			MethodEntryRequest entryRequest = findRequest(debugProcess, MethodEntryRequest.class, this);
			if(entryRequest == null)
			{
				entryRequest = requestManager.createMethodEntryRequest(this);
			}
			else
			{
				entryRequest.disable();
			}
			//entryRequest.addClassFilter(myClassQualifiedName);
			// use addClassFilter(ReferenceType) in order to stop on subclasses also!
			entryRequest.addClassFilter(classType);
			debugProcess.getRequestsManager().enableRequest(entryRequest);
		}
		if(isWatchExit())
		{
			MethodExitRequest exitRequest = findRequest(debugProcess, MethodExitRequest.class, this);
			if(exitRequest == null)
			{
				exitRequest = requestManager.createMethodExitRequest(this);
			}
			else
			{
				exitRequest.disable();
			}
			//exitRequest.addClassFilter(myClassQualifiedName);
			exitRequest.addClassFilter(classType);
			debugProcess.getRequestsManager().enableRequest(exitRequest);
		}
	}
	catch(Exception e)
	{
		LOG.debug(e);
	}
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:62,代码来源:MethodBreakpoint.java

示例12: createRequest

import com.intellij.debugger.engine.DebugProcessImpl; //导入方法依赖的package包/类
@Override
public void createRequest(DebugProcessImpl debugProcess)
{
	DebuggerManagerThreadImpl.assertIsManagerThread();
	if(!shouldCreateRequest(debugProcess))
	{
		return;
	}
	if(isEmulated())
	{
		createOrWaitPrepare(debugProcess, getClassPattern());
	}
	else
	{
		try
		{
			RequestManagerImpl requestManager = debugProcess.getRequestsManager();
			if(isWatchEntry())
			{
				MethodEntryRequest entryRequest = MethodBreakpoint.findRequest(debugProcess, MethodEntryRequest.class, this);
				if(entryRequest == null)
				{
					entryRequest = requestManager.createMethodEntryRequest(this);
				}
				else
				{
					entryRequest.disable();
				}
				entryRequest.addClassFilter(getClassPattern());
				debugProcess.getRequestsManager().enableRequest(entryRequest);
			}
			if(isWatchExit())
			{
				MethodExitRequest exitRequest = MethodBreakpoint.findRequest(debugProcess, MethodExitRequest.class, this);
				if(exitRequest == null)
				{
					exitRequest = requestManager.createMethodExitRequest(this);
				}
				else
				{
					exitRequest.disable();
				}
				exitRequest.addClassFilter(getClassPattern());
				debugProcess.getRequestsManager().enableRequest(exitRequest);
			}
		}
		catch(Exception e)
		{
			LOG.debug(e);
		}
	}
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:53,代码来源:WildcardMethodBreakpoint.java


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