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