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


Java IExternalToolConstants.EMPTY_STRING属性代码示例

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


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

示例1: updateNgCommand

protected void updateNgCommand(ILaunchConfiguration configuration) {
	String command = IExternalToolConstants.EMPTY_STRING;
	try {
		command = configuration.getAttribute(AngularCLILaunchConstants.OPERATION,
				IExternalToolConstants.EMPTY_STRING);
	} catch (CoreException ce) {
		AngularCLIPlugin.logError(ce, "Error while reading ng configuration");
	}
	commandsCommbo.setText(command);
}
 
开发者ID:angelozerr,项目名称:angular-eclipse,代码行数:10,代码来源:MainTab.java

示例2: updateArguments

private void updateArguments(ILaunchConfiguration configuration) {
	String arguments = IExternalToolConstants.EMPTY_STRING;
	try {
		arguments = configuration.getAttribute(AngularCLILaunchConstants.OPERATION_PARAMETERS,
				IExternalToolConstants.EMPTY_STRING);
	} catch (CoreException ce) {
		AngularCLIPlugin.logError(ce, "Error while reading ng configuration");
	}
	this.argumentsField.setText(arguments);
}
 
开发者ID:angelozerr,项目名称:angular-eclipse,代码行数:10,代码来源:MainTab.java

示例3: updateWorkingDirectory

/**
 * Updates the working directory widgets to match the state of the given
 * launch configuration.
 */
protected void updateWorkingDirectory(ILaunchConfiguration configuration) {
	String workingDir = IExternalToolConstants.EMPTY_STRING;
	try {
		workingDir = configuration.getAttribute(IExternalToolConstants.ATTR_WORKING_DIRECTORY,
				IExternalToolConstants.EMPTY_STRING);
	} catch (CoreException ce) {
		TypeScriptUIPlugin.log("Error while reading ng configuration", ce);
	}
	workDirectoryField.setText(workingDir);
}
 
开发者ID:angelozerr,项目名称:typescript.java,代码行数:14,代码来源:AbstractMainTab.java

示例4: generateCommandLine

private String generateCommandLine(String[] commandLine) {
	if (commandLine.length < 1) {
		return IExternalToolConstants.EMPTY_STRING;
	}
	StringBuilder buf = new StringBuilder();
	for (int i = 0; i < commandLine.length; i++) {
		buf.append(' ');
		char[] characters = commandLine[i].toCharArray();
		StringBuilder command = new StringBuilder();
		boolean containsSpace = false;
		for (int j = 0; j < characters.length; j++) {
			char character = characters[j];
			if (character == '\"') {
				command.append('\\');
			} else if (character == ' ') {
				containsSpace = true;
			}
			command.append(character);
		}
		if (containsSpace) {
			buf.append('\"');
			buf.append(command);
			buf.append('\"');
		} else {
			buf.append(command);
		}
	}
	return buf.toString();
}
 
开发者ID:angelozerr,项目名称:jsbuild-eclipse,代码行数:29,代码来源:JSBuildFileLaunchConfigurationDelegate.java


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