org.eclipse.core.runtime.Platform.inDebugMode()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(3.8k)|赞(0)|评价(0)|浏览(100)

本文整理了Java中org.eclipse.core.runtime.Platform.inDebugMode()方法的一些代码示例,展示了Platform.inDebugMode()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Platform.inDebugMode()方法的具体详情如下:
包路径:org.eclipse.core.runtime.Platform
类名称:Platform
方法名:inDebugMode

Platform.inDebugMode介绍

[英]Returns true if the platform is currently running in debug mode. The platform is typically put in debug mode using the "-debug" command line argument.

Clients are also able to acquire the EnvironmentInfo service and query it to see if they are in debug mode.
[中]如果平台当前正在调试模式下运行,则返回true。通常使用“-debug”命令行参数将平台置于调试模式。
客户端还可以获取EnvironmentInfo服务并查询它,以查看它们是否处于调试模式。

代码示例

代码示例来源:origin: org.eclipse/org.eclipse.jst.j2ee.ejb.annotation.model

/**
 * @return true if the platform is debugging
 */
public static boolean isDebugging() {
  return Platform.inDebugMode();
}

代码示例来源:origin: org.eclipse/org.eclipse.jst.jsp.core

/**
 * @return true if the platform is debugging
 */
public static boolean isDebugging() {
  return Platform.inDebugMode();
}

代码示例来源:origin: pulse00/Twig-Eclipse-Plugin

/**
 * @return true if the platform is debugging
 */
public static boolean isDebugging() {
  return Platform.inDebugMode();
}

代码示例来源:origin: angelozerr/angularjs-eclipse

/**
 * @return true if the platform is debugging
 */
public static boolean isDebugging() {
  return Platform.inDebugMode();
}

代码示例来源:origin: org.eclipse/org.eclipse.wst.xml.core

/**
 * @return true if the platform is debugging
 */
public static boolean isDebugging() {
  return Platform.inDebugMode();
}

代码示例来源:origin: org.eclipse/org.eclipse.wst.xml.ui

/**
 * @return true if the platform is debugging
 */
public static boolean isDebugging() {
  return Platform.inDebugMode();
}

代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui

/**
 * @return true if the platform is debugging
 */
public static boolean isDebugging() {
  return Platform.inDebugMode();
}

代码示例来源:origin: org.eclipse/org.eclipse.wst.html.core

/**
 * @return true if the platform is debugging
 */
public static boolean isDebugging() {
  return Platform.inDebugMode();
}

代码示例来源:origin: org.eclipse/org.eclipse.wst.css.core

/**
 * @return true if the platform is debugging
 */
public static boolean isDebugging() {
  return Platform.inDebugMode();
}

代码示例来源:origin: pdt-eg/Core-Plugin

/**
 * @return true if the platform is debugging
 */
public static boolean isDebugging() {
  return Platform.inDebugMode();
}

代码示例来源:origin: org.eclipse.net4j/util

public OSGiPlatform(Object systemContext)
{
 this.systemContext = (BundleContext)systemContext;
 try
 {
  setDebugging(Platform.inDebugMode());
 }
 catch (Throwable ignore)
 {
 }
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.e4.ui.workbench

/**
 * Creates a new workbench logger
 */
@Inject
public WorkbenchLogger(@Optional @Named("logger.bundlename") String bundleName) {
  super();
  this.bundleName = bundleName == null ? Activator.PI_WORKBENCH : bundleName;
  isDebugEnabled = Platform.inDebugMode();
}

代码示例来源:origin: rombert/ereviewboard

public void trace(TraceLocation location, String message) {
  if (!Platform.inDebugMode())
    return;
  String debugOption = Platform.getDebugOption(PLUGIN_ID + "/debug" + location.getPrefix());
  
  if ( !Boolean.parseBoolean(debugOption) ) 
    return;
  getLog().log(new Status(IStatus.INFO, PLUGIN_ID, message));
}

代码示例来源:origin: org.eclipse/org.eclipse.ant.core

if (Platform.inDebugMode()) {
  String[] args = (String[]) argArray;
  String[] newArgs = new String[args.length + 1];

代码示例来源:origin: eclipse/eclipse.jdt.ls

/**
 * Has no effect, and always returns with {@code false} if the JDT LS has been
 * started from the source either in debug or development mode. If the
 * {@code CLIENT_HOST} and {@code CLIENT_PORT} environment variables are set and
 * the {@link JDTEnvironmentUtils#SOCKET_STREAM_DEBUG socket.stream.debug} is
 * set to {@code true}, the the server will start with plain socket connection
 * and will wait until the client connects.
 */
public static boolean inSocketStreamDebugMode() {
  return Boolean.parseBoolean(Environment.get(SOCKET_STREAM_DEBUG, "false")) && (Platform.inDebugMode() || Platform.inDevelopmentMode()) && getClientHost() != null && getClientPort() != null;
}

相关文章