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


Java ILaunchConfiguration.launch方法代码示例

本文整理汇总了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);
}
 
开发者ID:eclipse,项目名称:eclemma,代码行数:19,代码来源:DumpExecutionDataTest.java

示例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();
	}
}
 
开发者ID:dakaraphi,项目名称:eclipse-plugin-commander,代码行数:9,代码来源:LaunchProvider.java


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