本文整理了Java中org.eclipse.debug.core.Launch
类的一些代码示例,展示了Launch
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Launch
类的具体详情如下:
包路径:org.eclipse.debug.core.Launch
类名称:Launch
[英]A launch is the result of launching a debug session and/or one or more system processes. This class provides a public implementation of ILaunch
for client use.
Clients may instantiate this class. Clients may subclass this class.
[中]启动是启动调试会话和/或一个或多个系统进程的结果。此类提供ILaunch
的公共实现供客户端使用。
客户端可以实例化这个类。客户端可以将该类划分为子类。
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.launching
/**
* Returns a launch object to use when launching the given launch configuration in the given mode. The returned launch object is preconfigured to
* use {@link AdvancedSourceLookupDirector} as the source locator.
*/
public static ILaunch createAdvancedLaunch(ILaunchConfiguration configuration, String mode) throws CoreException {
return new Launch(configuration, mode, createSourceLocator(AdvancedSourceLookupDirector.ID, configuration));
}
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jdt.launching
Launch launch = new Launch(null, ILaunchManager.RUN_MODE, null);
if (monitor.isCanceled()) {
return map;
IProcess[] processes = launch.getProcesses();
if (processes.length != 1) {
abort(NLS.bind(LaunchingMessages.AbstractVMInstall_0, runner), null, IJavaLaunchConfigurationConstants.ERR_INTERNAL_ERROR);
if (!launch.isTerminated()) {
launch.terminate();
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.debug.core
@Override
public void handleDebugEvents(DebugEvent[] events) {
for (int i = 0; i < events.length; i++) {
DebugEvent event = events[i];
if (event.getKind() == DebugEvent.TERMINATE) {
Object object = event.getSource();
ILaunch launch = null;
if (object instanceof IProcess) {
launch = ((IProcess)object).getLaunch();
} else if (object instanceof IDebugTarget) {
launch = ((IDebugTarget)object).getLaunch();
}
if (this.equals(launch)) {
if (isTerminated()) {
fireTerminate();
}
}
}
}
}
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.debug.core
IDebugTarget[] targets = getDebugTargets();
for (int i = 0; i < targets.length; i++) {
IDebugTarget target= targets[i];
IProcess[] processes = getProcesses();
for (int i = 0; i < processes.length; i++) {
IProcess process = processes[i];
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jdt.launching
try {
p = DebugPlugin.exec(cmdLine, null);
IProcess process = DebugPlugin.newProcess(new Launch(null, ILaunchManager.RUN_MODE, null), p, "JRE Install Detection"); //$NON-NLS-1$
for (int i= 0; i < 600; i++) {
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.launching
Launch launch = new Launch(null, ILaunchManager.RUN_MODE, null);
if (monitor.isCanceled()) {
return map;
IProcess[] processes = launch.getProcesses();
if (processes.length != 1) {
abort(NLS.bind(LaunchingMessages.AbstractVMInstall_0, runner), null, IJavaLaunchConfigurationConstants.ERR_INTERNAL_ERROR);
if (!launch.isTerminated()) {
launch.terminate();
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jdt.launching
IProcess process = DebugPlugin.newProcess(new Launch(null, ILaunchManager.RUN_MODE, null), p, "Library Detection"); //$NON-NLS-1$
for (int i= 0; i < 600; i++) {
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.launching
try {
p = DebugPlugin.exec(cmdLine, null);
IProcess process = DebugPlugin.newProcess(new Launch(null, ILaunchManager.RUN_MODE, null), p, "JRE Install Detection"); //$NON-NLS-1$
for (int i= 0; i < 600; i++) {
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.launching
IProcess process = DebugPlugin.newProcess(new Launch(null, ILaunchManager.RUN_MODE, null), p, "Library Detection"); //$NON-NLS-1$
process.setAttribute(IProcess.ATTR_CMDLINE, String.join(" ", cmdLine)); //$NON-NLS-1$
for (int i= 0; i < 600; i++) {
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui
wc.setAttribute(IDebugUIConstants.ATTR_PRIVATE, true);
ILaunch newLaunch= new Launch(wc, ILaunchManager.RUN_MODE, null);
IProcess iprocess= DebugPlugin.newProcess(newLaunch, process, JavadocExportMessages.JavadocWizard_javadocprocess_label);
iprocess.setAttribute(IProcess.ATTR_CMDLINE, buf.toString());
代码示例来源:origin: org.eclipse/org.eclipse.ajdt.ui
wc.setAttribute(IDebugUIConstants.ATTR_PRIVATE, true);
ILaunch newLaunch = new Launch(wc, ILaunchManager.RUN_MODE,
null);
代码示例来源:origin: eclipse/aCute
try {
ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
ILaunch newLaunch = new Launch(null, ILaunchManager.RUN_MODE, null);
代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui
wc.setAttribute(IDebugUIConstants.ATTR_PRIVATE, true);
ILaunch newLaunch= new Launch(wc, ILaunchManager.RUN_MODE, null);
IProcess iprocess= DebugPlugin.newProcess(newLaunch, process, JavadocExportMessages.JavadocWizard_javadocprocess_label);
iprocess.setAttribute(IProcess.ATTR_CMDLINE, buf.toString());
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
wc.setAttribute(IDebugUIConstants.ATTR_PRIVATE, true);
ILaunch newLaunch= new Launch(wc, ILaunchManager.RUN_MODE, null);
IProcess iprocess= DebugPlugin.newProcess(newLaunch, process, JavadocExportMessages.JavadocWizard_javadocprocess_label);
iprocess.setAttribute(IProcess.ATTR_CMDLINE, buf.toString());
代码示例来源:origin: org.eclipse/org.eclipse.jst.server.tomcat.core
VMRunnerConfiguration config = new VMRunnerConfiguration("org.eclipse.jst.server.tomcat.core.internal.ClassDetector", new String[] { file.getAbsolutePath() });
config.setProgramArguments(new String[] { "com.sun.tools.javac.Main" });
ILaunch launch = new Launch(null, ILaunchManager.RUN_MODE, null);
try {
vmRunner.run(config, launch, null);
代码示例来源:origin: org.eclipse.platform/org.eclipse.debug.ui
launch = new Launch(flaunchConfiguration, fMode, null);
} else {
代码示例来源:origin: sdbg/sdbg
/**
* Create a temporary launch with the given id and name. This launch is not yet registered with
* the ILaunchManager.
*
* @param id
* @param name
* @return
* @throws CoreException
*/
public static ILaunch createTemporaryLaunch(String id, String name) throws CoreException {
ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager();
ILaunchConfigurationType type = manager.getLaunchConfigurationType(id);
ILaunchConfigurationWorkingCopy launchConfig = type.newInstance(
null,
manager.generateLaunchConfigurationName(name));
// TODO(devoncarew): is this necessary?
launchConfig.delete();
SDBGSourceLookupDirector sourceLookupDirector = new SDBGSourceLookupDirector();
sourceLookupDirector.initializeDefaults(launchConfig);
return new Launch(launchConfig, ILaunchManager.DEBUG_MODE, sourceLookupDirector);
}
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.debug.core
launch = new Launch(this, mode, null);
} else {
内容来源于网络,如有侵权,请联系作者删除!