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


Java ILaunchConfiguration.getWorkingCopy方法代码示例

本文整理汇总了Java中org.eclipse.debug.core.ILaunchConfiguration.getWorkingCopy方法的典型用法代码示例。如果您正苦于以下问题:Java ILaunchConfiguration.getWorkingCopy方法的具体用法?Java ILaunchConfiguration.getWorkingCopy怎么用?Java ILaunchConfiguration.getWorkingCopy使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.eclipse.debug.core.ILaunchConfiguration的用法示例。


在下文中一共展示了ILaunchConfiguration.getWorkingCopy方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: enable

import org.eclipse.debug.core.ILaunchConfiguration; //导入方法依赖的package包/类
public static void enable(ILaunchConfiguration config) throws CoreException {
  if(config instanceof ILaunchConfigurationWorkingCopy) {
    enable((ILaunchConfigurationWorkingCopy) config);
  } else {
    ILaunchConfigurationWorkingCopy wc = config.getWorkingCopy();
    enable(wc);
    wc.doSave();
  }
}
 
开发者ID:fbricon,项目名称:wildfly-hive,代码行数:10,代码来源:MavenRuntimeClasspathProvider.java

示例2: launch

import org.eclipse.debug.core.ILaunchConfiguration; //导入方法依赖的package包/类
public static void launch(NgCommand ngCommand, IProject project, String mode) throws CoreException {
	String workingDir = AngularCLILaunchHelper.getWorkingDir(project);
	String operation = ngCommand.name().toLowerCase();

	// Check if configuration already exists
	ILaunchConfiguration ngConfiguration = chooseLaunchConfiguration(workingDir, operation);
	if (ngConfiguration != null) {
		ILaunchConfigurationWorkingCopy wc = ngConfiguration.getWorkingCopy();
		// Update nodejs file path if needed
		if (wc.getAttribute(AngularCLILaunchConstants.NODE_FILE_PATH, (String) null) == null) {
			updateNodeFilePath(project, wc);
		}
		// Update ng file path
		if (wc.getAttribute(AngularCLILaunchConstants.NG_FILE_PATH, (String) null) == null) {
			updateNgFilePath(project, wc);
		}
		ngConfiguration = wc.doSave();
		DebugUITools.launch(ngConfiguration, mode);
	} else {
		// Creating Launch Configuration from scratch
		ILaunchConfigurationWorkingCopy newConfiguration = createEmptyLaunchConfiguration(project.getName(),
				operation);
		// nodejs file to use
		updateNodeFilePath(project, newConfiguration);
		// ng file to use
		updateNgFilePath(project, newConfiguration);
		newConfiguration.setAttribute(AngularCLILaunchConstants.WORKING_DIR, workingDir);
		newConfiguration.setAttribute(AngularCLILaunchConstants.OPERATION, operation);
		// newConfiguration.setAttribute(AngularCLILaunchConstants.OPERATION_PARAMETERS,
		// "--live-reload-port 65535");
		newConfiguration.doSave();
		DebugUITools.launch(newConfiguration, mode);
	}
}
 
开发者ID:angelozerr,项目名称:angular-eclipse,代码行数:35,代码来源:AngularCLILaunchHelper.java

示例3: disable

import org.eclipse.debug.core.ILaunchConfiguration; //导入方法依赖的package包/类
public static void disable(ILaunchConfiguration config) throws CoreException {
  ILaunchConfigurationWorkingCopy wc = config.getWorkingCopy();
  wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_CLASSPATH_PROVIDER, (String) null);
  wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_SOURCE_PATH_PROVIDER, (String) null);
  wc.doSave();
}
 
开发者ID:fbricon,项目名称:wildfly-hive,代码行数:7,代码来源:MavenRuntimeClasspathProvider.java


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