本文整理匯總了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();
}
}