本文整理汇总了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();
}
}
示例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);
}
}
示例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();
}