本文整理汇总了Java中org.eclipse.debug.core.ILaunchConfiguration.launch方法的典型用法代码示例。如果您正苦于以下问题:Java ILaunchConfiguration.launch方法的具体用法?Java ILaunchConfiguration.launch怎么用?Java ILaunchConfiguration.launch使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.debug.core.ILaunchConfiguration
的用法示例。
在下文中一共展示了ILaunchConfiguration.launch方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setup
import org.eclipse.debug.core.ILaunchConfiguration; //导入方法依赖的package包/类
@BeforeClass
public static void setup() throws Exception {
openCoverageView();
JavaProjectKit project = new JavaProjectKit();
project.enableJava5();
final IPackageFragmentRoot root = project.createSourceFolder();
final IPackageFragment fragment = project.createPackage(root, "example");
project.createCompilationUnit(fragment, "Example.java",
"package example; class Example { public static void main(String[] args) throws Exception { Thread.sleep(30000); } }");
JavaProjectKit.waitForBuild();
ILaunchConfiguration launchConfiguration = project.createLaunchConfiguration("example.Example");
launch1 = launchConfiguration.launch(CoverageTools.LAUNCH_MODE, null);
launch2 = launchConfiguration.launch(CoverageTools.LAUNCH_MODE, null);
}
示例2: getDeployArtifact
import org.eclipse.debug.core.ILaunchConfiguration; //导入方法依赖的package包/类
@Override
protected IPath getDeployArtifact(IPath safeWorkingDirectory, IProgressMonitor monitor)
throws CoreException {
SubMonitor subMonitor = SubMonitor.convert(monitor, 100);
try {
ILaunchConfiguration config = createMavenPackagingLaunchConfiguration(project);
ILaunch launch = config.launch("run", subMonitor.newChild(10));
if (!waitUntilLaunchTerminates(launch, subMonitor.newChild(90))) {
throw new OperationCanceledException();
}
return getFinalArtifactPath(project);
} catch (InterruptedException ex) {
throw new OperationCanceledException();
}
}
开发者ID:GoogleCloudPlatform,项目名称:google-cloud-eclipse,代码行数:17,代码来源:FlexMavenPackagedProjectStagingDelegate.java
示例3: execute
import org.eclipse.debug.core.ILaunchConfiguration; //导入方法依赖的package包/类
public void execute(LauncherElement element) {
try {
ILaunchConfiguration configuration = DebugPlugin.getDefault().getLaunchManager().getLaunchConfiguration(element.getId());
configuration.launch(ILaunchManager.DEBUG_MODE, new NullProgressMonitor());
} catch (CoreException e) {
e.printStackTrace();
}
}