當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。